ddhr.org | 2005 | 06 | 28 about | archives | comments | rss

Weather XML Tue, Jun 28, 2005
Weather.com (no I will not link to you) provides a free service (amazing) for getting an XML version of a weather forecast.  They say you have to sign up and get a license key, but you really don't have to do that.  Here's how to use it:

http://xoap.weather.com/weather/local/ZIPCODE?FUNCTION

Replace ZIPCODE with, obviously, your 5-digit zipcode (you can also use a city code, something like USNJ0232) and replace FUNCTION with any of the following:  dayd, dayf, cc, hbhf

For example:
Hopatcong, NJ (07843)
10 day forecast - http://xoap.weather.com/weather/local/07843?dayd=10
10 day detailed forecast - http://xoap.weather.com/weather/local/07843?dayf=10
Current conditions - http://xoap.weather.com/weather/local/07843?cc=*
24 hour hourly forecast - http://xoap.weather.com/weather/local/07843?hbhf=24

The reason why I'm mentioning this and the reason why it's so great is that you can avoid the ad-filled universe that you encounter when you go to weather.com, and you can just get the information you want.  All that needs to be done is to make a XSL file to display the XML, and this is what I'm currently working on. #technology


← older post 107 of 3123 newer →