views:

2412

answers:

4

Anyone know of all the possible weather conditions Google's API will put out? I've got to match up my icons to the forecast, and I can't find a list of conditions.

+2  A: 

This was mentioned: http://www.blindmotion.com/?p=73 though it may not be complete, as it isn't something released by Google. It probably covers about 99% of cases though, barring random enhancements and releases to the weather api by Google staff.

CoderTao
+1  A: 

Here's the best list I could find: http://www.blindmotion.com/?p=73

You may want to consider alternate APIs that are formally supported and documented. Yahoo!'s [Weather RSS feed][1] is a handy, easy-to-use API. I use the [National Weather Service's API][2] for one of my projects because I need to pull the forecast for a specific time frame in the future and it lets me do that in a reasonably straightforward way.

Jim Lamb
Thanks for the info. I gave Coder the check mark as he most closely answered the question, but I am definately looking into another api... mostly because google doesn't go beyond a 4 day forecast and my spiffy little weather carousel doesn't look very cool with just four panels.
Jascha
I just noticed you gave the link too.. but coder was first.. gah, I hate having to decide on answers sometimes
Jascha
+1  A: 

That link was broken for me. Here's a list I found on another forum:

"Clear 
Cloudy 
Fog
Haze 
Light Rain
Mostly Cloudy 
Overcast 
Partly Cloudy
Rain 
Rain Showers 
Showers
Thunderstorm 
Chance of Showers 
Chance of Snow 
Chance of Storm 
Mostly Sunny
Partly Sunny 
Scattered Showers 
Sunny"
Emile
http://icq4ever.webzero.co.kr/tt/849
Jesse
After I posted this list, I decided to use it. Weird that there's a "Chance of Snow" but never "Snow." A philosophical statement? Or maybe the list was compiled using cities that were in the middle of their summer.
Emile
A: 

I've also found 2 more with some testing.

  • Snow Showers (snow.gif)
  • Isolated Thunderstorms (chance_of_strom.gif)
Alan