module documentation

NTP sync module for Stick firmware, with timezones and automatic ntp sync.

Function get_time_timezoned Gets timezoned time, gets timezone from NVS (or cache)
Function sync Sync ntp time
Function sync_interactive Sync time with NTP with GUI
Function wrong_time_support Checks if time is setup correctly on your device, if no it shows a popup.
Variable n_settings Undocumented
Variable t_index_ttl Undocumented
Variable t_ttl_new Undocumented
Variable timezone_map Undocumented
Function _WAIT_FOR_NEW_SECOND Undocumented
def get_time_timezoned(bypass_cache: bool = False):

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)

def sync(host: str = 'time.google.com') -> bool:

Sync ntp time Args: host (str, optional): NTP server hostname, default is google ntp servers. Returns: bool: True if success, False if failed.

def sync_interactive(host: str = 'time.google.com'):

Sync time with NTP with GUI Args: host (str, optional): NTP server hostname, default is google ntp servers.

def wrong_time_support():

Checks if time is setup correctly on your device, if no it shows a popup.

n_settings =

Undocumented

t_index_ttl: int =

Undocumented

t_ttl_new: int =

Undocumented

timezone_map: dict =

Undocumented

def _WAIT_FOR_NEW_SECOND():

Undocumented