Skip to content

Instantly share code, notes, and snippets.

@joshualyon
Last active December 22, 2020 16:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joshualyon/7bb3b2a9e2a6801ff673bf4c1e159452 to your computer and use it in GitHub Desktop.
Save joshualyon/7bb3b2a9e2a6801ff673bf4c1e159452 to your computer and use it in GitHub Desktop.
SharpTools Weather Tile Icon Mappings
{
"chanceflurries": {"weatherIcon": "snow-wind"},
"chancerain": {"weatherIcon": "rain"},
"chancesleet": {"weatherIcon": "sleet"},
"chancesnow": {"weatherIcon": "snow"},
"chancetstorms": {"weatherIcon": "thunderstorm"},
"clear": {"weatherIcon": "day-sunny"},
"cloudy": {"weatherIcon": "day-cloudy"},
"flurries": {"weatherIcon": "snow-wind"},
"fog": {"weatherIcon": "day-fog"},
"hazy": {"weatherIcon": "day-haze"},
"mostlycloudy": {"weatherIcon": "day-cloudy"},
"mostlysunny": {"weatherIcon": "day-sunny"},
"partlycloudy": {"weatherIcon": "day-cloudy"},
"partlysunny": {"weatherIcon": "day-sunny"},
"rain": {"weatherIcon": "showers"},
"sleet": {"weatherIcon": "sleet"},
"snow": {"weatherIcon": "snow"},
"sunny": {"weatherIcon": "day-sunny"},
"tstorms": {"weatherIcon": "thunderstorm"},
"nt_chanceflurries": {"weatherIcon": "night-alt-snow-wind"},
"nt_chancerain": {"weatherIcon": "night-alt-rain"},
"nt_chancesleet": {"weatherIcon": "night-alt-sleet"},
"nt_chancesnow": {"weatherIcon": "night-alt-snow"},
"nt_chancetstorms": {"weatherIcon": "night-alt-thunderstorm"},
"nt_clear": {"weatherIcon": "night-clear"},
"nt_cloudy": {"weatherIcon": "night-alt-cloudy"},
"nt_flurries": {"weatherIcon": "night-alt-snow-wind"},
"nt_fog": {"weatherIcon": "night-fog"},
"nt_hazy": {"weatherIcon": "night-alt-cloud-windy"},
"nt_mostlycloudy": {"weatherIcon": "night-alt-cloudy"},
"nt_mostlysunny": {"weatherIcon": "night-clear"},
"nt_partlycloudy": {"weatherIcon": "night-alt-cloudy"},
"nt_partlysunny": {"weatherIcon": "night-clear"},
"nt_sleet": {"weatherIcon": "night-alt-sleet"},
"nt_rain": {"weatherIcon": "night-alt-rain"},
"nt_snow": {"weatherIcon": "night-alt-snow"},
"nt_sunny": {"weatherIcon": "night-clear"},
"nt_tstorms": {"weatherIcon": "night-alt-thunderstorm"},
"00": { "weatherIcon": "tornado", "description": "tornado", "dayOrNight": "both" },
"01": { "weatherIcon": "hurricane", "description": "Tropical Storm", "dayOrNight": "both" } ,
"02": { "weatherIcon": "hurricane", "description": "Hurricane", "dayOrNight": "both" } ,
"03": { "weatherIcon": "thunderstorm", "description": "Strong Storms", "dayOrNight": "both" } ,
"04": { "weatherIcon": "thunderstorm", "description": "Thunder and Hail", "dayOrNight": "both" } ,
"05": { "weatherIcon": "sleet", "description": "Rain to Snow Showers", "dayOrNight": "both" } ,
"06": { "weatherIcon": "sleet", "description": "Rain / Sleet", "dayOrNight": "both" } ,
"07": { "weatherIcon": "sleet", "description": "Wintry Mix Snow / Sleet", "dayOrNight": "both" } ,
"08": { "weatherIcon": "sleet", "description": "Freezing Drizzle", "dayOrNight": "both" } ,
"09": { "weatherIcon": "showers", "description": "Drizzle", "dayOrNight": "both" } ,
"10": { "weatherIcon": "sleet", "description": "Freezing Rain", "dayOrNight": "both" } ,
"11": { "weatherIcon": "showers", "description": "Light Rain", "dayOrNight": "both" } ,
"12": { "weatherIcon": "rain", "description": "Rain", "dayOrNight": "both" } ,
"13": { "weatherIcon": "snow-wind", "description": "Scattered Flurries", "dayOrNight": "both" } ,
"14": { "weatherIcon": "snow", "description": "Light Snow", "dayOrNight": "both" } ,
"15": { "weatherIcon": "snow-wind", "description": "Blowing / Drifting Snow", "dayOrNight": "both" } ,
"16": { "weatherIcon": "snow", "description": "Snow", "dayOrNight": "both" } ,
"17": { "weatherIcon": "sleet", "description": "Hail", "dayOrNight": "both" } ,
"18": { "weatherIcon": "sleet", "description": "Sleet", "dayOrNight": "both" } ,
"19": { "weatherIcon": "strong-wind", "description": "Blowing Dust / Sandstorm", "dayOrNight": "both" } ,
"20": { "weatherIcon": "fog", "description": "Foggy", "dayOrNight": "both" } ,
"21": { "weatherIcon": "strong-wind", "description": "Haze / Windy", "dayOrNight": "both" } ,
"22": { "weatherIcon": "strong-wind", "description": "Smoke / Windy", "dayOrNight": "both" } ,
"23": { "weatherIcon": "strong-wind", "description": "Breezy", "dayOrNight": "both" } ,
"24": { "weatherIcon": "strong-wind", "description": "Blowing Spray / Windy", "dayOrNight": "both" } ,
"25": { "weatherIcon": "strong-wind", "description": "Frigid / Ice Crystals", "dayOrNight": "both" } ,
"26": { "weatherIcon": "cloudy", "description": "Cloudy", "dayOrNight": "both" } ,
"27": { "weatherIcon": "cloudy", "description": "Mostly Cloudy", "dayOrNight": "both" } ,
"28": { "weatherIcon": "day-cloudy", "description": "Mostly Cloudy", "dayOrNight": "day" } ,
"29": { "weatherIcon": "night-alt-cloudy", "description": "Partly Cloudy", "dayOrNight": "night" } ,
"30": { "weatherIcon": "day-cloudy", "description": "Partly Cloudy", "dayOrNight": "day" } ,
"31": { "weatherIcon": "night-clear", "description": "Clear", "dayOrNight": "night" } ,
"32": { "weatherIcon": "day-sunny", "description": "Sunny", "dayOrNight": "day" } ,
"33": { "weatherIcon": "night-clear", "description": "Fair / Mostly Clear", "dayOrNight": "night" } ,
"34": { "weatherIcon": "day-sunny", "description": "Fair / Mostly Sunny", "dayOrNight": "day" } ,
"35": { "weatherIcon": "sleet", "description": "Mixed Rain & Hail", "dayOrNight": "day" } ,
"36": { "weatherIcon": "day-sunny", "description": "Hot", "dayOrNight": "day" } ,
"37": { "weatherIcon": "thunderstorm", "description": "Isolated Thunderstorms", "dayOrNight": "day" } ,
"38": { "weatherIcon": "thunderstorm", "description": "Thunderstorms", "dayOrNight": "both" } ,
"39": { "weatherIcon": "rain", "description": "Scattered Showers", "dayOrNight": "day" } ,
"40": { "weatherIcon": "rain", "description": "Heavy Rain", "dayOrNight": "both" } ,
"41": { "weatherIcon": "rain", "description": "Scattered Snow Showers", "dayOrNight": "day" } ,
"42": { "weatherIcon": "snow-wind", "description": "Heavy Snow", "dayOrNight": "both" } ,
"43": { "weatherIcon": "snow-wind", "description": "Blizzard", "dayOrNight": "both" } ,
"44": { "weatherIcon": "na", "description": "Not Available (N/A)", "dayOrNight": "both" } ,
"45": { "weatherIcon": "night-alt-rain", "description": "Scattered Showers", "dayOrNight": "night" } ,
"46": { "weatherIcon": "night-alt-sleet", "description": "Scattered Snow Showers", "dayOrNight": "night" } ,
"47": { "weatherIcon": "night-alt-thunderstorm", "description": "Scattered Thunderstorms", "dayOrNight": "both" }
}
@joshualyon
Copy link
Author

joshualyon commented Dec 22, 2020

Updated to include both Weather Underground style icon codes and The Weather Company (weather.com) style codes.

Weather Underground

Weather Underground codes are in a descriptive format:

chanceflurries, chancerain, clear, cloudy

There are also night time variants with nt_ prefixed:

nt_chanceflurries, nt_chancerain, nt_clear, nt_cloudy

The Weather Company

The Weather Company codes are numeric:

06 = sleet
12 = rain

In the file above, the definition for each of these is expanded to include a description and indication of it the icon is intended for day, night, or both to make it easier to understand their usages.

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