From 9236ded404c9f4dae8e67078ae6c7a95b3cfb65e Mon Sep 17 00:00:00 2001 From: Pierre-Olivier Mercier Date: Fri, 7 Jun 2024 09:58:28 +0200 Subject: [PATCH] weather: Display only sunrise/set hour --- modules/weather.py | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/weather.py b/modules/weather.py index e4e0905..b199024 100644 --- a/modules/weather.py +++ b/modules/weather.py @@ -186,6 +186,7 @@ class WeatherSunModule: for icon, info in infos.items(): if info == "": continue + info = info.strftime("%H:%M:%S") icon = Image.open(os.path.join(config.icons_dir, "weather", "wi-" + icon + ".png")).resize((height, height)) image.paste(icon, (int(align),0), icon) align += height + 2