From 896dc480a52835750c434cbd443be63eeee3b39e Mon Sep 17 00:00:00 2001 From: jesopo Date: Mon, 25 Nov 2019 16:20:40 +0000 Subject: slightly nicer format for weather output --- modules/weather.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/weather.py b/modules/weather.py index d2caf9b5..2b950dfe 100644 --- a/modules/weather.py +++ b/modules/weather.py @@ -78,10 +78,10 @@ class Module(ModuleManager.BaseModule): wind_speed_m = "%sMPh" % round(0.6214*wind_speed, 1) if not nickname == None: - location_str = "%s: %s" % (nickname, location_str) + 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: -- cgit v1.3.1-10-gc9f91