You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
.pragma library
|
|
|
|
|
|
|
|
// https://github.com/chubin/wttr.in/blob/master/lib/constants.py
|
|
|
|
var weather_codes = {
|
|
|
|
"0": "Tornado",
|
|
|
|
"1": "Hurricane",
|
|
|
|
"2": "Hurricane",
|
|
|
|
"3": "ThunderyHeavyRain",
|
|
|
|
"4": "ThunderyHeavyRain",
|
|
|
|
"5": "LightSleet",
|
|
|
|
"6": "LightSleet",
|
|
|
|
"7": "LightSleet",
|
|
|
|
"8": "LightSleet",
|
|
|
|
"9": "Showers",
|
|
|
|
"10": "LightSleet",
|
|
|
|
"11": "LightRain",
|
|
|
|
"12": "HeavyRain",
|
|
|
|
"13": "SnowShowers",
|
|
|
|
"14": "LightSnow",
|
|
|
|
"15": "SnowShowers",
|
|
|
|
"16": "LightSnow",
|
|
|
|
"17": "Hail",
|
|
|
|
"18": "LightSleet",
|
|
|
|
"19": "Sandstorm",
|
|
|
|
"20": "Fog",
|
|
|
|
"21": "Fog",
|
|
|
|
"22": "Fog",
|
|
|
|
"23": "Breezy",
|
|
|
|
"24": "Breezy",
|
|
|
|
"25": "IceCrystals",
|
|
|
|
"26": "Cloudy",
|
|
|
|
"27": "VeryCloudy",
|
|
|
|
"28": "VeryCloudy",
|
|
|
|
"29": "PartlyCloudyNight",
|
|
|
|
"30": "PartlyCloudyDay",
|
|
|
|
"31": "Clear",
|
|
|
|
"32": "Sunny",
|
|
|
|
"33": "PartlyCloudyNight",
|
|
|
|
"34": "PartlyCloudyDay",
|
|
|
|
"35": "Hail",
|
|
|
|
"36": "Sunny",
|
|
|
|
"37": "ThunderyShowers",
|
|
|
|
"38": "ThunderyHeavyRain",
|
|
|
|
"39": "Showers",
|
|
|
|
"40": "HeavyRain",
|
|
|
|
"41": "SnowShowers",
|
|
|
|
"42": "HeavySnow",
|
|
|
|
"43": "HeavySnow",
|
|
|
|
"44": "Unknown",
|
|
|
|
"45": "Showers",
|
|
|
|
"46": "SnowShowers",
|
|
|
|
"47": "ThunderyShowers"
|
|
|
|
};
|