diff options
author | Nick White <git@njw.name> | 2021-02-05 13:59:27 +0000 |
---|---|---|
committer | Nick White <git@njw.name> | 2021-02-05 13:59:27 +0000 |
commit | 43c0e2ac6fad7779b2560041b60e8ece937360b3 (patch) | |
tree | a82c00cb1054b6dd9fd72fbfa3f1add4ba367acc | |
parent | 8cfb6dbbf6ea6cea1e90f49b005d504d91d48894 (diff) | |
download | weather-43c0e2ac6fad7779b2560041b60e8ece937360b3.tar.bz2 weather-43c0e2ac6fad7779b2560041b60e8ece937360b3.zip |
Complete the weather type to english description mapping
-rw-r--r-- | weather.go | 14 |
1 files changed, 13 insertions, 1 deletions
@@ -100,26 +100,38 @@ type WeatherParams struct { WT int // Weather Type } -// TODO: complete this mapping var TypeDescription = map[int]string{ 0: "Clear Sky", 1: "Sunny", 2: "Partly Cloudy", 3: "Sunny Intervals", + 4: "Unknown", 5: "Mist", + 6: "Fog", 7: "Light Cloud", 8: "Thick Cloud", 9: "Light Rain Showers", 10: "Light Rain Showers", 11: "Drizzle", 12: "Light Rain", + 13: "Heavy Rain Showers", 14: "Heavy Rain Showers", 15: "Heavy Rain", + 16: "Sleet Showers", + 17: "Sleet Showers", 18: "Sleet", 19: "Hail Showers", 20: "Hail Showers", + 21: "Hail", + 22: "Light Snow Showers", + 23: "Light Snow Showers", + 24: "Light Snow", + 25: "Heavy Snow Showers", + 26: "Heavy Snow Showers", + 27: "Heavy Snow", 28: "Thundery Showers", 29: "Thundery Showers", + 30: "Thunder", } // Our prefered struct |