weather: Display only sunrise/set hour

This commit is contained in:
nemunaire 2024-06-07 09:58:28 +02:00
parent b985ea7a92
commit 9236ded404

View File

@ -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