v.0.7.3 time_utils ntp access

This commit is contained in:
tiijay
2025-11-14 12:39:47 +01:00
parent 37afe9e391
commit 22b656e68a
3 changed files with 33 additions and 6 deletions

View File

@@ -1,7 +1,7 @@
from app.display import NeoPixel_64x64
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.utils import show_system_load, sync_ntp_time, get_datetime_string, get_german_datetime
from app.web import Wlan
import time
@@ -13,6 +13,11 @@ if __name__ == '__main__':
wlan: Wlan = Wlan( )
wlan.connect( ssid="Wokwi-Wlan", password="12345678")
if sync_ntp_time():
time_str: str = get_datetime_string('time')
ger_time_str: str = get_german_datetime()
print( f"time is: {time_str[:5]} & german: {ger_time_str}" )
# font_checker : Font_Checker = Font_Checker( display)
# font_checker.fonts_check(pretty=False)