It happens twice a year. At least one of my clocks is off by one hour because of Daylight Saving. This time, I'll be ready. Instead of hacking my old alarm clock, I built a clock using WeMos D1 Mini and couple of LED Matrix modules.
There are a lot of self setting clock projects out there, but I wanted to build something on my own. Instead of using https://worldclockapi.com/api/json/utc/now like I did in https://www.hackster.io/abouhatab/if-the-allegations-are-not-legit-you-m-aws-t-edukit-326d38 I decided to use http://worldtimeapi.org/api/ip to get the time. The main difference is getting local time directly instead of getting UTC then having to figure out the time difference. I didn't even have to send my public IP address.
I also used WiFiManager to avoid hard coding Wi-Fi credentials. I may add buttons later to adjust the clock manually (like my old alarm clock) if for some reason I have no internet.
Stay tuned.
Comments
Please log in or sign up to comment.