I was wondering if there is an API that provides weather information in XML format, providing only City and Country.
It's even better if it has a way to return results based on IP Address.
I was wondering if there is an API that provides weather information in XML format, providing only City and Country.
It's even better if it has a way to return results based on IP Address.
I developed a weather gadget for my company using the Yahoo weather RSS feed. You have to supply the WOEID to get the forecast. Its pretty easy.
I use a sed script. wget -q -O - http://newsrss.bbc.co.uk/weather/forecast/2302/Next3DaysRSS.xml?area=HP6 | grep title | sed -e "s/<[^>]*>//g" -e "s/ °//g" | egrep "^[A-Z]" | sed -e 's/°/°/g'
To get weather for my workplace.