You can also use Net::Telnet to check the weather from wunderground.com (they have a telnet interface which is all text). Here is the example from the Net::Telnet documentation which does just that:
my ($forecast, $t); use Net::Telnet (); $t = new Net::Telnet; $t->open("rainmaker.wunderground.com"); ## Wait for first prompt and "hit return". $t->waitfor('/continue:.*$/'); $t->print(""); ## Wait for second prompt and respond with city code. $t->waitfor('/city code.*$/'); $t->print("BRD"); ## Read and print the first page of forecast. ($forecast) = $t->waitfor('/[ \t]+press return to continue/i'); print $forecast; exit;
The only problem with this telnet interface is that they do not have Tupper Lake, NY as a location you can get info on. They have several location throughout NY that may or may not be nearby.
Update: Fixed a copy/paste error in the code segment above.
In reply to Re: Checking the Weather
by bfdi533
in thread Checking the Weather
by rand0mmm
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |