From 65640246f33453537f6a2333bf615c04098a2c9f Mon Sep 17 00:00:00 2001 From: Elis Hirwing Date: Sat, 4 Nov 2017 14:31:44 +0100 Subject: [PATCH] Filter out advertisement --- src/statusscreen/Weather.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/statusscreen/Weather.go b/src/statusscreen/Weather.go index 4f00ba2..f763dbf 100644 --- a/src/statusscreen/Weather.go +++ b/src/statusscreen/Weather.go @@ -27,7 +27,9 @@ func (weather *Weather) GetOutput() []string { } } - return strings.Split(weather.lastResponse, "\n") + parts := strings.Split(weather.lastResponse, "\n") + + return parts[:len(parts)-5] } func (weather *Weather) getWeather() (string, error) {