Weather Podcasting
The Perl script parses the XML feed of Weather.com, and has three variables: locid (location ID; a ZIP code will work for US locations), dayf (how many days forward you want your forecast, up to 10 days; default is 2), and unit ("m" for metric, "s" or "e" for standard/English). Included in Jorge's post is his programming methodology and the source code.
You can test the script by putting the following URL in your RSS feed reader:
http://www.jorgev.com/cgi-bin/weather.cgi?locid=XXXXX&dayf=5&unit=e
Replace "XXXXX" with a valid ZIP code or city code. The result should be a five-day forecast for the location of your choice. The script also supposedly converts the text to audible speech in MP3 files, though the LAME encoder is necessary.
If nothing else, this is an interesting experiment in potential uses for RSS feeds and podcasts, and hopefully will serve as a inspiration to others.
Source: Gordon McLean
Listen to this article, or subscribe to the full podcast
Bookmark with del.icio.us << Home