Weathertext is a short Python script that prints current weather information and forecasts gathered from NOAA, Yahoo!, and/or Google via the
pywapi library. It's primary intent is to be called by GeekTool or Growl to display the information on a Mac.
And here's a shell pipeline that puts the info in a Growl window:
~/bin/weathertext | /usr/local/bin/growlnotify -t Weather
Weather.cgi is a Python script that does basically the same thing as
weathertext but generates HTML intended for the iPhone instead of plain text. The main addition is a radar image set between the current conditions and the forecast.
Both these scripts are customized for where I live but can be easily changed by edited the lines that set
- the NOAA station's name;
- the zip code for Yahoo! weather; and
- the URL for the radar image.