v.0.10.1 restapi/mock
This commit is contained in:
@@ -7,8 +7,7 @@ from utils import (
|
||||
get_datetime_string,
|
||||
get_german_datetime,
|
||||
) # Time-related functions
|
||||
from utils import SimpleCounter, colors
|
||||
import time
|
||||
from utils import SimpleCounter
|
||||
from utils.digital_clock import DigitalClock
|
||||
import uasyncio as asyncio # type: ignore
|
||||
from web import Wlan
|
||||
@@ -21,7 +20,7 @@ CITY_LIST: list[str] = sorted(
|
||||
async def weather_check_task(weather_checker: Weather_Checker):
|
||||
while True:
|
||||
for city in CITY_LIST:
|
||||
weather_checker.check(city=city, lang="de", test_mode=False)
|
||||
weather_checker.check(city=city, lang="de", test_mode=True)
|
||||
print(f"Checked {city}")
|
||||
await asyncio.sleep(3 * 60) # Non-blocking sleep
|
||||
|
||||
@@ -68,10 +67,5 @@ if __name__ == "__main__":
|
||||
display.set_font(font_5x7)
|
||||
weather_checker: Weather_Checker = Weather_Checker(display=display)
|
||||
|
||||
# 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()
|
||||
asyncio.run(main(weather_checker))
|
||||
|
||||
Reference in New Issue
Block a user