Re:I tried to adjust the time on my alarm clock
by heeen2 on Monday November 04, 2019 @02:44PM
(#21445611)
I built a clock from a vfd display and an esp8266 WiFi module just for fun. Since the esp8266 does not have a rtc module and no battery backup it gets it's time from ntp at boot and then every couple hours.
[ Parent
| on HN ]
Re:I tried to adjust the time on my alarm clock
by adamrmcd on Monday November 04, 2019 @05:31PM
(#21447332)
I've done something similar with an esp8266 + 14segment alphanumeric display[1].
That being said, NTP only returns GMT. You still have to hardcode your timezone and whether DST is active or not, right?
Re:I tried to adjust the time on my alarm clock
by heeen2 on Tuesday November 05, 2019 @03:32AM
(#21450643)
yes, just as I hardcoded my wifi credentials. DST can be hardcoded as the range of date that DST has been active historically at your location to automate that, baring discussions of abolishing DST or such.
https://github.com/heeen/vfd-clock
looking back at the code, doesn't seem like I handled DST though. I would probably use something like wifimanager now to allow dynamically configuring wifi and other things