From 79caca3370da877dfd1eae977c5a32837a373f17 Mon Sep 17 00:00:00 2001 From: Nick White Date: Mon, 23 Apr 2018 09:39:04 +0100 Subject: Add some more weather descriptions to the mapping --- weather.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/weather.go b/weather.go index 25142cd..741fd9d 100644 --- a/weather.go +++ b/weather.go @@ -107,6 +107,8 @@ var TypeDescription = map[int]string{ 2: "Partly Cloudy", 3: "Sunny Intervals", 7: "Light Cloud", + 8: "Thick Cloud", + 9: "Light Rain Showers", 12: "Light Rain", } @@ -227,7 +229,7 @@ func main() { for _, w := range weather { fmt.Printf("%s %s ", w.date, w.time) - fmt.Printf("%15s, Temp: %4.1f°C, ", TypeDescription[w.weathertype], w.temperature) + fmt.Printf("%18s, Temp: %4.1f°C, ", TypeDescription[w.weathertype], w.temperature) fmt.Printf("Rain: %2d%%, Wind: %4.1fmph\n", w.precipitation, w.windspeed) if *verbose { fmt.Printf(" %+v\n", w) -- cgit v1.2.3