v.0.11.2 added beautyful soup bs4

This commit is contained in:
tiijay
2025-11-21 15:06:04 +00:00
parent 3a8fb95f4f
commit c27b97fc71
9 changed files with 73 additions and 60 deletions

View File

@@ -21,14 +21,14 @@ 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=True)
weather_checker.check(city=city, lang="de", test_mode=False)
print(f"Checked {city}")
await asyncio.sleep(3 * 60)
async def api_server_check_task(api_server_checker: API_Server_Checker):
while True:
rnd_item_id: int = random.randrange(4)
rnd_item_id: int = random.randrange(5)
api_server_checker.check(rnd_item_id)
await asyncio.sleep(10)
@@ -36,13 +36,9 @@ async def api_server_check_task(api_server_checker: API_Server_Checker):
async def print_time_task() -> None:
bottom_ypos = display.MATRIX_HEIGHT - display.font_height
simpleCnt: SimpleCounter = SimpleCounter()
digitalClock: DigitalClock = DigitalClock(display, 0, bottom_ypos)
while True:
dt1: str = get_datetime_string()
simpleCnt += 1
print(f"print_time_task running... {simpleCnt.value % 16} {dt1}")
while True:
await digitalClock.tick()
await asyncio.sleep(2)