Weather icons

Example

http://api.openweathermap.org/data/2.5/weather?q=London

{
    "coord": {
        "lon": -0.13,
        "lat": 51.51
    },
    "weather": [
        {
            "id": 500,
            "main": "Rain",
            "description": "light rain",
            "icon": "10n"
        }
    ],
    "base": "cmc stations",
    "main": {
        "temp": 286.164,
        "pressure": 1017.58,
        "humidity": 96,
        "temp_min": 286.164,
        "temp_max": 286.164,
        "sea_level": 1027.69,
        "grnd_level": 1017.58
    },
    "wind": {
        "speed": 3.61,
        "deg": 165.001
    },
    "rain": {
        "3h": 0.185
    },
    "clouds": {
        "all": 80
    },
    "dt": 1446583128,
    "sys": {
        "message": 0.003,
        "country": "GB",
        "sunrise": 1446533902,
        "sunset": 1446568141
    },
    "id": 2643743,
    "name": "London",
    "cod": 200
}

How to get icon URL

For code 501 - moderate rain icon = "10d"
URL is
http://openweathermap.org/img/w/10d.png

Icon list

Day icon Night icon Description
01d.png 01n.png clear sky
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

Group 2xx: Thunderstorm

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

Group 3xx: Drizzle

ID Meaning Icon
300 light intensity drizzle 09d
301 drizzle 09d
302 heavy intensity drizzle 09d
310 light intensity drizzle rain 09d
311 drizzle rain 09d
312 heavy intensity drizzle rain 09d
313 shower rain and drizzle 09d
314 heavy shower rain and drizzle 09d
321 shower drizzle 09d

Group 5xx: Rain

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

Group 6xx: Snow

ID Meaning Icon
600 light snow [[file:13d.png]]
601 snow [[file:13d.png]]
602 heavy snow [[file:13d.png]]
611 sleet [[file:13d.png]]
612 shower sleet [[file:13d.png]]
615 light rain and snow [[file:13d.png]]
616 rain and snow [[file:13d.png]]
620 light shower snow [[file:13d.png]]
621 shower snow [[file:13d.png]]
622 heavy shower snow [[file:13d.png]]

Group 7xx: Atmosphere

ID Meaning Icon
701 mist [[file:50d.png]]
711 smoke [[file:50d.png]]
721 haze [[file:50d.png]]
731 sand, dust whirls [[file:50d.png]]
741 fog [[file:50d.png]]
751 sand [[file:50d.png]]
761 dust [[file:50d.png]]
762 volcanic ash [[file:50d.png]]
771 squalls [[file:50d.png]]
781 tornado [[file:50d.png]]

Group 800: Clear

ID Meaning Icon
800 clear sky [[file:01d.png]] [[file:01n.png]]

Group 80x: Clouds

ID Meaning Icon
801 few clouds [[file:02d.png]] [[file:02n.png]]
802 scattered clouds [[file:03d.png]] [[file:03d.png]]
803 broken clouds [[file:04d.png]] [[file:03d.png]]
804 overcast clouds [[file:04d.png]] [[file:04d.png]]

Group 90x: Extreme

ID Meaning
900 tornado
901 tropical storm
902 hurricane
903 cold
904 hot
905 windy
906 hail

Group 9xx: Additional

ID Meaning
951 calm
952 light breeze
953 gentle breeze
954 moderate breeze
955 fresh breeze
956 strong breeze
957 high wind, near gale
958 gale
959 severe gale
960 storm
961 violent storm
962 hurricane