Showing posts with label API. Show all posts
Showing posts with label API. Show all posts

Pipes, JavaScript and the Weather

0 comments

Weather_temp

Using Yahoo's Pipes, I've managed to display the temperature and weather from a JSON feed.

'Pipes is a powerful composition tool to aggregate, manipulate, and mashup content from around the web.

Like Unix pipes, simple commands can be combined together to create output that meets your needs:
  • combine many feeds into one, then sort, filter and translate it.
  • geocode your favorite feeds and browse the items on an interactive map.
  • power widgets/badges on your web site.
  • grab the output of any Pipes as RSS, JSON, KML, and other formats.'
Now not only does the background image change, the temperature and weather text also changes too.

This will now be integrated into my client site which I'm currently developing.

Posted via email from City&Wool's Posterous

Ever Wondered What the Weather's Like in Colwyn Bay?

0 comments

Weather

By clicking on the link above you've just found out the weather in Colwyn Bay, North Wales. This is thanks to an RSS feed from the Yahoo API and some jQuery to change the div's class according to the weather!

Thanks to an article on Line25 entitled Style Your Site According to the Weather with jQuery and some extra code from this article - http://lawrence.ecorp.net/inet/samples/regexp-format.php to make sure it also removes forward slashes from the RSS feed, I have worked out how I will integrate my weather display into the Colwyn Bay Hockey Club website.

I'm also hoping to pull the temperature from the RSS feed too so you know what type of weather it is and how hot/cold it is too.

Posted via email from City&Wool's Posterous