From: David N. <dno...@ya...> - 2006-01-02 07:19:49
|
This site has output that would be very easy to parse: http://www.saltwatertides.com/pickpred.html I will help write a script to do this if you are still interested. =20 David=20 ----- Original Message -----=20 From: Joey French=20 To: mis...@li...=20 Sent: Wednesday, December 28, 2005 7:24 AM Subject: Re: [mh] Moonrise and moonset, tide information. Alright, so I checked out the app that was posted earlier, and have = searched the web for some similiar things and came acrooss this guy, = which looks like it can give me the info I need, but I need you guys' = input. Does this app look like something that MH can easily get my = variable from, i.e., $Moonrise, $Moonset, $High_tide, $Low_tide? This = program has a lot of modes to output data in a ton of formats, but I = don't know perl or MH well enough to know if this will be a good = "companion" program to have running along side it and feeding it info.=20 Also, based on the fact that I have only been working with perl for = like a month, do you guys think that trying to tie these two up together = would be a real undertaking for me? Or is this simply overkill, and I = need to find a simpler way to get the data in?=20 On 12/27/05, Joey French <joe...@gm...> wrote: Ooh, nice. I will have to check this out when I get back home. = Thanks a ton! Joey On 12/27/05, Neil Cherry < nc...@co...> wrote: Tim Sailer wrote: > On Tue, December 27, 2005 11:25, Joey French said:=20 >> Hmmm, a bit over my head, but i think i may have the jist of = what you >> said. >> Here's a question, though. When setting up a script to get this >> information, >> what do you do if the page maintainer changes their format? = Does this=20 >> affect >> the way MH gets the info? Can a script like this be "ported" to = another >> url >> to get the same info if need be? Is there another bit of code = that I can >=20 > Yes. The exact format is not that important. > >> look at/ butcher/ toy with to get this going (besides the one = you >> suggested, >> I am checking it now). >> >> So, just to recount from my end, you say I should 1) make a = script that=20 >> finds the relevant numbers, and only the numbers, that indicate = the time >> of >> moonrise based on the html code, and set all of this as a = variable. 2) set > > Sorta. Write a script to get the info, and set variables with = the values.=20 > Update as often as needed. > >> up a script that triggers an event based on the time relation = to this >> variable (number). I think I got what you mean I will look at = the links >> you=20 >> suggested to learn more about this. > > Right. Keep the two separate. First, get your info in one = script. Then, > write the script that will do what you want based on the info = the other > collected.=20 A possible solution is to grab the 2 programs off my web page, compile them and see if they give you acceptable information. http://home.comcast.net/~ncherry/#weather=20 They are the "Sunrise/Sunset programs" and the potm.c. I know they compile under Unix. I would not expect too many problems having them compile under Windows (Borland Turbo C for instance). You could them call these programs like this:=20 my $str =3D `potm`; -- Linux Home Automation Neil Cherry = nc...@li... http://www.linuxha.com/ Main site=20 http://linuxha.blogspot.com/ My HA Blog http://home.comcast.net/~ncherry/ Backup site ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through = log files for problems? Stop! Download the new AJAX search engine that = makes searching your log files as easy as surfing the web. DOWNLOAD = SPLUNK!=20 http://ads.osdn.com/?ad_id=3D7637&alloc_id=3D16865&op=3Dclick ________________________________________________________ To unsubscribe from this list, go to: = http://sourceforge.net/mail/?group_id=3D1365 |