summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--weather.go4
1 files changed, 3 insertions, 1 deletions
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)