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>
@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