Tekforums

Chat => Entertainment & Technology => Topic started by: Electroguard on January 08, 2009, 15:50:52 PM

Title: International weather script
Post by: Electroguard on January 08, 2009, 15:50:52 PM
Id like to get weather forecast info for Bordeaux into a web page.

Id prefer to use a PHP or VB script rather the widely available company-bannered weather widgets.
Ive seen some relatively simple PHP scripts for getting USA weather by zip code from RSS streams, and I suspect it should be quite eazy peazy to do similar for a worldwide city (using an RSS provider offering world wide weather data - many appear to be USA only), but Im afraid Im too ignorant of AJAX and RSS to know how to go about doing it... the problem being that different weather stream providers seem to use different tags in their RSS streams, therefore a script written to request an RSS feed from a USA-only provider wont be compatible for a different international weather stream provider.

Im sure many people must have done this already though, so can anyone point me to a relatively simple PHP script using an international RSS feed that would enable me to display weather info for Bordeaux please?

Title: Re:International weather script
Post by: Cypher on January 21, 2009, 22:06:09 PM
Its amazing what you get when you type in "weather feeds in php" in google.

http://www.mattsscripts.co.uk/mweather.htm
Title: Re:International weather script
Post by: Clock'd 0Ne on January 31, 2009, 15:39:25 PM
I recently installed a number off RSS feeds from http://www.wunderground.com for a client, they cover the universe.
Title: Re:International weather script
Post by: Electroguard on February 08, 2009, 11:17:27 AM
I had already tried Matts Weather but as far as I could see it just uses airport METAR reports intended primarily for pilots for providing current weather situations at a destination rather than an advance weather forecast... not much point for my purposes of course, where I can simply look outside to see the current weather situation.

I checked the RSS feeds link but didnt find any PHP scripts for their feeds, only their pre-defined weather widgets.

Sorry I havent been able to respond to you both earlier, but irony of all ironys... we had a hurricane gusting 190kph 2 weeks ago that did great damage including taking down our phone and internet for a fortnight.

I suppose pre-emptive forecasting wouldnt have made much difference to the outcome anyway, and with no useful PHP script for International RSS weather feed to be able to use, have pretty much given up on the idea.
Thanks for both of your replies anyway guys.