7#include "pico/aon_timer.h"
85 return aon_timer_is_running();
Defines the Event structure and related utilities for event messaging.
bool getLocationFromIp(std::string &tzName, float &lat, float &lon)
int timezoneOffsetSeconds
void applyFixedTimezoneOffset(int offsetSeconds, const char *stdName="UTC", const char *dstName="UTC")
Apply a fixed timezone offset.
void setTime(timespec *ts)
Set the system time using a timespec structure.
void detectAndApplyTimezone()
Detect and apply the timezone based on the current location or IP address.
void fetchAndApplyTimezoneFromOpenMeteo(float lat, float lon, const std::string &tzName)
Fetch and apply the timezone from OpenMeteo API using latitude and longitude.
void onNetworkReady()
hanles network ready event.
const char * getTimezoneName() const
Get the name of the current timezone.
bool isTimeSynced() const
Returns true if system time has been synced with NTP servers.
void setTimeFromEpoch(uint32_t epochSeconds)
Set the system time from an epoch timestamp (e.g. from SNTP)
int getTimezoneOffset() const
Get the current timezone offset in seconds.
void onHttpServerStarted()
bool syncTimeWithNtp(int timeoutSeconds=20)
Initialize the time manager.
std::string formatTimeWithZone(time_t rawTime=0) const
std::string currentTimeForTrace() const
Get the current time formatted as a string.
void start()
Start the time manager.