From: Joey F. <joe...@gm...> - 2005-12-28 15:24:12
|
Alright, so I checked out the app that was posted earlier, and have searche= d the web for some similiar things and came acrooss this guy<http://www.flaterco.com/xtide/>, 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. 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? 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: > > >> Hmmm, a bit over my head, but i think i may have the jist of what yo= u > > >> 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 thi= s > > > > >> 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 > > > > > > 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 > > >> 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. > > > Update as often as needed. > > > > > >> up a script that triggers an event based on the time relation to thi= s > > >> variable (number). I think I got what you mean I will look at the > > links > > >> you > > >> 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. > > > > 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 > > <http://home.comcast.net/%7Encherry/#weather> > > > > 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: > > > > my $str =3D `potm`; > > > > -- > > Linux Home Automation Neil Cherry nc...@li... > > http://www.linuxha.com/ Main site > > http://linuxha.blogspot.com/ My HA Blog > > http://home.comcast.net/~ncherry/ <http://home.comcast.net/%7Encherry/> > > 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! > > 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 > > > > > |