Skip to content

Instantly share code, notes, and snippets.

@bzerangue
Created February 1, 2011 06:53
Show Gist options
  • Save bzerangue/805520 to your computer and use it in GitHub Desktop.
Save bzerangue/805520 to your computer and use it in GitHub Desktop.
Yahoo Weather Condition Codes
<?xml version="1.0" encoding="UTF-8"?>
<yahoo-weather-codes>
<code number="0" description="tornado"/>
<code number="1" description="tropical storm"/>
<code number="2" description="hurricane"/>
<code number="3" description="severe thunderstorms"/>
<code number="4" description="thunderstorms"/>
<code number="5" description="mixed rain and snow"/>
<code number="6" description="mixed rain and sleet"/>
<code number="7" description="mixed snow and sleet"/>
<code number="8" description="freezing drizzle"/>
<code number="9" description="drizzle"/>
<code number="10" description="freezing rain"/>
<code number="11" description="showers"/>
<code number="12" description="showers"/>
<code number="13" description="snow flurries"/>
<code number="14" description="light snow showers"/>
<code number="15" description="blowing snow"/>
<code number="16" description="snow"/>
<code number="17" description="hail"/>
<code number="18" description="sleet"/>
<code number="19" description="dust"/>
<code number="20" description="foggy"/>
<code number="21" description="haze"/>
<code number="22" description="smoky"/>
<code number="23" description="blustery"/>
<code number="24" description="windy"/>
<code number="25" description="cold"/>
<code number="26" description="cloudy"/>
<code number="27" description="mostly cloudy (night)"/>
<code number="28" description="mostly cloudy (day)"/>
<code number="29" description="partly cloudy (night)"/>
<code number="30" description="partly cloudy (day)"/>
<code number="31" description="clear (night)"/>
<code number="32" description="sunny"/>
<code number="33" description="fair (night)"/>
<code number="34" description="fair (day)"/>
<code number="35" description="mixed rain and hail"/>
<code number="36" description="hot"/>
<code number="37" description="isolated thunderstorms"/>
<code number="38" description="scattered thunderstorms"/>
<code number="39" description="scattered thunderstorms"/>
<code number="40" description="scattered showers"/>
<code number="41" description="heavy snow"/>
<code number="42" description="scattered snow showers"/>
<code number="43" description="heavy snow"/>
<code number="44" description="partly cloudy"/>
<code number="45" description="thundershowers"/>
<code number="46" description="snow showers"/>
<code number="47" description="isolated thundershowers"/>
<code number="3200" description="not available"/>
</yahoo-weather-codes>
@lbj96347
Copy link

Hey I found that Yahoo Weather current condition description are different with these.Is there a current condition code list?

@bzerangue
Copy link
Author

bzerangue commented Jun 21, 2012 via email

@lbj96347
Copy link

Thanks.I know this list.

I use yahoo weather api to build an app for notification in iPhone.

I record the api data everyday and I found an interesting thing.

Some weather conditions' description are different with the api list.

Such as today's weather description is : Thunderstorms Late

But in http://developer.yahoo.com/weather/ you couldn't find "Thunderstorms Late".

Because I should translate the weather description to Chinese so I need all conditions' description.

Besides,current condition's description are also can't be found in the api list.

I doubt that is there another api list of Yahoo weather?

@patrickberkeley
Copy link

@lbj96347 As far as I can tell the codes have changed. I haven't found an updated list yet...

@rafay-hasan
Copy link

Can anyone please tell me how can i retrieve the image of the respective condition code?? Like if the code is 20, then i know it's foggy, but is there any way to get the image of "foggy" condition.

@p-warner
Copy link

Yes- http://l.yimg.com/a/i/us/we/52/##.gif

Where ## is the number of the condition. For example if the current condition is drizzle (9). Then the correct image is http://l.yimg.com/a/i/us/we/52/9.gif

@vit001
Copy link

vit001 commented Jun 20, 2016

Yahoo weather condition codes are here: https://developer.yahoo.com/weather/documentation.html#codes

@mustanseriqbal1
Copy link

@rafay-hasan is it possible to get weather icon in large size?? because these images are very small in size..

@tofefinif
Copy link

tofefinif commented Jul 23, 2017

Followings are the latest condition codes

Code Description
0 tornado
1 tropical storm
2 hurricane
3 severe thunderstorms
4 thunderstorms
5 mixed rain and snow
6 mixed rain and sleet
7 mixed snow and sleet
8 freezing drizzle
9 drizzle
10 freezing rain
11 showers
12 showers
13 snow flurries
14 light snow showers
15 blowing snow
16 snow
17 hail
18 sleet
19 dust
20 foggy
21 haze
22 smoky
23 blustery
24 windy
25 cold
26 cloudy
27 mostly cloudy (night)
28 mostly cloudy (day)
29 partly cloudy (night)
30 partly cloudy (day)
31 clear (night)
32 sunny
33 fair (night)
34 fair (day)
35 mixed rain and hail
36 hot
37 isolated thunderstorms
38 scattered thunderstorms
39 scattered thunderstorms
40 scattered showers
41 heavy snow
42 scattered snow showers
43 heavy snow
44 partly cloudy
45 thundershowers
46 snow showers
47 isolated thundershowers
3200 not available

@anhtuank7c
Copy link

@tofefinif Thank

@butlerps
Copy link

butlerps commented Aug 8, 2017

FYI, current weather condition in Manchester is 'Scattered Showers' with a code of 39 which, when you look up on their table of weather conditions says 'Scattered Thunderstorms'

@CKGrafico
Copy link

CKGrafico commented Aug 30, 2017

I've made a TypeScript Enum

export enum WeatherCodes {
    Tornado,
    TropicalStorm,
    Hurricane,
    SevereThunderstorms,
    Thunderstorms,
    MixedRainSnow,
    MixedRainSleet,
    MixedSnowSleet,
    FreezingDrizzle,
    Drizzle,
    FreezingRain,
    ShowersNight,
    ShowersDay,
    SnowFlurries,
    LightSnowShowers,
    BlowingSnow,
    Snow,
    Hail,
    Sleet,
    Dust,
    Foggy,
    Haze,
    Smoky,
    Blustery,
    Windy,
    Cold,
    Cloudy,
    MostlyCloudyNight,
    MostlyCloudyDay,
    PartlyCloudyNight,
    PartlyCloudyDay,
    ClearNight,
    Sunny,
    FairNight,
    FairDay,
    MixedRainAndHail,
    Hot,
    IsolatedThunderstorms,
    ScatteredThunderstormsNight,
    ScatteredThunderstormsDay,
    ScatteredShowers,
    HeavySnowNight,
    ScatteredSnowShowers,
    HeavySnowDay,
    PartlyCloudy,
    Thundershowers,
    SnowShowers,
    IsolatedThundershowers,
    NotAvailable = 3200,
}

@sumimakito
Copy link

sumimakito commented Jan 9, 2018

I think Yahoo has changed their condition codes again.
And these changes are still undocumented AFAIK.
See the following screenshots.

2018-01-09 16 15 07
2018-01-09 16 15 28

Localization on such a mutable list seems to be painful. :-/

Copy link

ghost commented Jan 10, 2018

@kishansharma14300
Copy link

kishansharma14300 commented Jul 27, 2019

What is link of Yahoo weather Condition Icons.....?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment