weather: Display only sunrise/set hour
This commit is contained in:
parent
b985ea7a92
commit
9236ded404
@ -186,6 +186,7 @@ class WeatherSunModule:
|
|||||||
for icon, info in infos.items():
|
for icon, info in infos.items():
|
||||||
if info == "":
|
if info == "":
|
||||||
continue
|
continue
|
||||||
|
info = info.strftime("%H:%M:%S")
|
||||||
icon = Image.open(os.path.join(config.icons_dir, "weather", "wi-" + icon + ".png")).resize((height, height))
|
icon = Image.open(os.path.join(config.icons_dir, "weather", "wi-" + icon + ".png")).resize((height, height))
|
||||||
image.paste(icon, (int(align),0), icon)
|
image.paste(icon, (int(align),0), icon)
|
||||||
align += height + 2
|
align += height + 2
|
||||||
|
Loading…
x
Reference in New Issue
Block a user