API/Weather Condition Codes

From OpenWeatherMap
Jump to: navigation, search

Contents

Example

http://openweathermap.org/data/2.1/find/name?q=NY

{"message":"","cod":"200","type":"geonames_lang-name","calctime":0.0485,
"list":[

{"id":5128638,
"coord":{"lat":43.000351,"lon":-75.499901},
"name":"New York",
"main":{
    "temp":285,"temp_min":284.8,"temp_max":289.8,"pressure":999.16,"humidity":98.9},"dt":1347646686,"date":"2012-09-14 19:18:06","wind":{"speed":2.58,"deg":276,"gust":7.4},
    "rain":{"3h":4.8},
    "clouds":{"all":82},
    "weather":[{"id":501,"main":"Rain","description":"moderate rain","icon":"10d"}],
    "url":"http:\/\/openweathermap.org\/city\/5128638"
}]}

How to get icon URL

For code 501 - moderate rain icon = "10d" URL is

http://openweathermap.org/img/w/10d.png

Icon list

Day Night
01d.png 01n.png sky is clear
02d.png 02n.png few clouds
03d.png 03n.png scattered clouds
04d.png 04n.png broken clouds
09d.png 09n.png shower rain
10d.png 10n.png Rain
11d.png 11n.png Thunderstorm
13d.png 13n.png snow
50d.png 50n.png mist


Weather Condition Codes

Thunderstorm

ID Meaning Icon
200 thunderstorm with light rain 11d.png
201 thunderstorm with rain 11d.png
202 thunderstorm with heavy rain 11d.png
210 light thunderstorm 11d.png
211 thunderstorm 11d.png
212 heavy thunderstorm 11d.png
221 ragged thunderstorm 11d.png
230 thunderstorm with light drizzle 11d.png
231 thunderstorm with drizzle 11d.png
232 thunderstorm with heavy drizzle 11d.png

Drizzle

ID Meaning Icon
300 light intensity drizzle 09d.png
301 drizzle 09d.png
302 heavy intensity drizzle 09d.png
310 light intensity drizzle rain 09d.png
311 drizzle rain 09d.png
312 heavy intensity drizzle rain 09d.png
321 shower drizzle 09d.png

Rain

ID Meaning Icon
500 light rain 10d.png
501 moderate rain 10d.png
502 heavy intensity rain 10d.png
503 very heavy rain 10d.png
504 extreme rain 10d.png
511 freezing rain 13d.png
520 light intensity shower rain 09d.png
521 shower rain 09d.png
522 heavy intensity shower rain 09d.png


Snow

ID Meaning Icon
600 light snow 13d.png
601 snow 13d.png
602 heavy snow 13d.png
611 sleet 13d.png
621 shower snow 13d.png


Atmosphere

ID Meaning Icon
701 mist 50d.png
711 smoke 50d.png
721 haze 50d.png
731 Sand/Dust Whirls 50d.png
741 Fog 50d.png


Clouds

ID Meaning Icon
800 sky is clear 01d.png 01n.png
801 few clouds 02d.png 02n.png
802 scattered clouds 03d.png 03d.png
803 broken clouds 04d.png 03d.png
804 overcast clouds 04d.png 04d.png


Extreme

ID Meaning
900 tornado
901 tropical storm
902 hurricane
903 cold
904 hot
905 windy
906 hail
it:API/Weather_Condition_Codes
Personal tools
Namespaces

Variants
Actions
Navigation
In other languages
Toolbox