Here’s a crazy idea, what would you do if you wanted to change the background picture of your website so it matches the weather. Luckily Its really easy, and I figured out all the hard bits for you.
UPDATE - Chris Heilmann over at the Yahoo! Developer Network Blog has made this even simpler through the use of YQL.
First of all we need a data source which will provide the weather for a particular location, we can grab this from the Yahoo Weather API. Using the code UKXX0117 which is for Reading, UK I can create the an RSS feed which you can see here http://weather.yahooapis.com/forecastrss?p=UKXX0117&u=c. Great but how can we process this RSS feed? That’s where Yahoo Pipes comes in, we can take in the RSS feed extract the data we need (item.yweather.condition) and export it as JSON.
Now we can access the JSON data for the weather in Reading here.
This will call the function weather passing through a weather status code as the parameter.
That is really it, you can do whatever you want with the data, here’s a quick example of how I would use it.