1 (edited by jfstoke 2023-03-30 09:01:02)

Topic: Embedded support of NTP

I've been trying (and failing) to do an NTP query using the same ESP8266 as RemoteXY is using. In my case I have a Mega that is using a serial port with an ESP01. Would it be possible to include NTP updates in the standard RemoteXY code?

What I suggest is:
* Add two new properties to the "WiFi connection" section of the GUI: NTP Pool, and update interval.
* Add an unsigned long int to the RemoteXY data structure: UTC_time
* Add a boolean or uint8_t to the RemoteXY data structure: time_updated_flag
* The RemoteXY routine performs an NTP query every update interval, and sets the flag to true or 1

The hosting program would keep the responsibility of noticing that the time_updated_flag has been set, and then converting the new UTC_time to the local time zone with or without summer time.