From 86520b31f988d4f50aeda3eb7eb23e2cafa0d6d2 Mon Sep 17 00:00:00 2001 From: Shreyas Minocha Date: Fri, 27 Nov 2020 02:32:40 +0530 Subject: [PATCH] Improve weather formatting MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Example: `14.8km/h/9.2mi/h` → `14.8km/h (9.2mi/h)` --- modules/weather.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/weather.py b/modules/weather.py index bd6b5e8b..fcc81d15 100644 --- a/modules/weather.py +++ b/modules/weather.py @@ -81,7 +81,7 @@ class Module(ModuleManager.BaseModule): location_str = "(%s) %s" % (nickname, location_str) event["stdout"].write( - "%s | %s/%s | %s | Humidity: %s | Wind: %s/%s" % ( + "%s | %s/%s | %s | Humidity: %s | Wind: %s (%s)" % ( location_str, celsius, fahrenheit, description, humidity, wind_speed_k, wind_speed_m)) else: