NTP sync module for Stick firmware, with timezones and automatic ntp sync.
Function | get |
Gets timezoned time, gets timezone from NVS (or cache) |
Function | sync |
Sync ntp time |
Function | sync |
Sync time with NTP with GUI |
Function | wrong |
Checks if time is setup correctly on your device, if no it shows a popup. |
Variable | n |
Undocumented |
Variable | t |
Undocumented |
Variable | t |
Undocumented |
Variable | timezone |
Undocumented |
Function | _WAIT |
Undocumented |
Gets timezoned time, gets timezone from NVS (or cache) Args: bypass_cache (bool, optional): Bypasses NVS cache if True Returns: tuple: (year, month, mday, hour, minute, second, weekday, yearday) - year (int): year (ex. 2025) - month (int): month (1–12) - mday (int): day of the month (1–31) - hour (int): hour (0–23) - minute (int): minute (0–59) - second (int): second (0–59) - weekday (int): weekday (0 = monday, 6 = sunday) - yearday (int): year day (1–366)
Sync ntp time Args: host (str, optional): NTP server hostname, default is google ntp servers. Returns: bool: True if success, False if failed.
Sync time with NTP with GUI Args: host (str, optional): NTP server hostname, default is google ntp servers.