v.0.11.0 ap-server & pico-client

This commit is contained in:
tiijay
2025-11-20 19:42:50 +01:00
parent 00c24110ee
commit 2233be7987
11 changed files with 213 additions and 21 deletions

View File

@@ -1,6 +1,6 @@
from display import NeoPixel_64x64
from display.fonts import font_5x7
from tryout import Font_Checker, Weather_Checker, Emoji_Checker
from tryout import Font_Checker, Weather_Checker, Emoji_Checker, API_Server_Checker
from utils import show_system_load
from utils import (
sync_ntp_time,
@@ -12,12 +12,12 @@ from utils.digital_clock import DigitalClock
import uasyncio as asyncio # type: ignore
from web import Wlan
CITY_LIST: list[str] = sorted(
["Großhansdorf", "Columbus", "London", "Ebeltoft", "Tokio"]
)
async def weather_check_task(weather_checker: Weather_Checker):
CITY_LIST: list[str] = sorted(
["Großhansdorf", "Columbus", "London", "Ebeltoft", "Tokio"]
)
while True:
for city in CITY_LIST:
weather_checker.check(city=city, lang="de", test_mode=True)
@@ -63,7 +63,9 @@ if __name__ == "__main__":
# emoji_checker : Emoji_Checker = Emoji_Checker(display)
# emoji_checker.check()
# tryout.weather_check(display, test_mode=False)
api_server_check_task: API_Server_Checker = API_Server_Checker()
api_server_check_task.check()
display.set_font(font_5x7)
weather_checker: Weather_Checker = Weather_Checker(display=display)