From 37afe9e391d1ded1ba01eb5ebe52dcbf04e66163 Mon Sep 17 00:00:00 2001 From: tiijay Date: Fri, 14 Nov 2025 11:39:17 +0100 Subject: [PATCH] v.0.7.2 loop over a city list --- main.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 72fc1e8..a8388b8 100644 --- a/main.py +++ b/main.py @@ -3,6 +3,9 @@ from app.display.fonts import font_5x7 from app.tryout import Font_Checker, Weather_Checker, Emoji_Checker from app.utils import show_system_load from app.web import Wlan +import time + +CITY_LIST: list[str]= ["Großhansdorf","Columbus", "London", "Ebeltoft", "Tokio"] # Programm Startpunkt if __name__ == '__main__': @@ -19,6 +22,10 @@ if __name__ == '__main__': # tryout.weather_check(display, test_mode=False) display.set_font(font_5x7) weather_checker: Weather_Checker = Weather_Checker( display=display) - weather_checker.check(city="Columbus", lang="de", test_mode=False) + + while True: + for city in sorted(CITY_LIST): + weather_checker.check(city=city, lang="de", test_mode=False) + time.sleep(5*60) # show_system_load()