NTP time with DST and TZ help!!!!
Posted: Sat Oct 17, 2015 8:41 pm
Is there a way of Getting the current LOCAL time via GPS coordinates?|
There is a googlemaps discussion regarding this, but I really don't have the Web Coding skills to work out what to do.
An app on my android called Polyclock has a GPS/ TZ database which works on my Phone and Tablet to give me immediate access to local time by GPS alone.
I am assuming it would be too large a DB for humble microcontroller.
There must be a webservice to obtain local time somewhere?
I have an NTP derived working display on my ESP8266 and its able to return UTC quite nicely, then I add in TZ manually and then DST means I have to change the code twice a year. If I use the library for DST, you have to manually put in the dates of change, which means if DST starts/stops at a different date, then the code has to be re-flashed. Not really a universal solution.
Is there working code already out there? I've been looking for months now.
There is a googlemaps discussion regarding this, but I really don't have the Web Coding skills to work out what to do.
An app on my android called Polyclock has a GPS/ TZ database which works on my Phone and Tablet to give me immediate access to local time by GPS alone.
I am assuming it would be too large a DB for humble microcontroller.
There must be a webservice to obtain local time somewhere?
I have an NTP derived working display on my ESP8266 and its able to return UTC quite nicely, then I add in TZ manually and then DST means I have to change the code twice a year. If I use the library for DST, you have to manually put in the dates of change, which means if DST starts/stops at a different date, then the code has to be re-flashed. Not really a universal solution.
Is there working code already out there? I've been looking for months now.