I've managed to get the script running but not working (the m1001 version of the script) -- let me describe what I'm doing:
I went to
http://www.weather.com and gave my location as Chicago, IL. The URL of the page it returned was
http://weather.yahoo.com/forecast/USIL0228.html ; I assume the USIL0228 is what I need to enter as the $locationid value in the script.
Everything else is pretty straightforward and noted in earlier posts in this thread:
I set $display to the Soundbridge's IP address.
unitsID is f, direction has the English direction abbreviations.
Because I'm using OS X, I followed the warning (much appreciated!) to change the wget to curl:
$weatherdata = `curl -s -"http://weather.yahooapis.com/forecastrss?p=$locationid&u=$unitsid"`;
And I changed the to1date and to2date lines:
$to1date = $monname{substr($1, 3, 3)}."/".substr($1, 0, 2); # the date reformatted: "dd mmm" to "mm/dd"
(and similarly).
When I run the script, I get:
Is this merely the particular server that the script uses is down, even though Yahoo's weather Web page server is running? Or maybe I made an incorrect assumption about the location ID? (On the off chance the US wasn't necessary, I tried just IL0228, but it didn't work either.) Or can you folks who know your way around scripting spot something else I might've done?
Many thanks not only for any advice anyone might have but to all who've worked on the scripts. It's very cool and I have a feeling I'm not very far at all from getting it running.