worldtimeapi.org replacement

For RTC breakouts, etc., use the Other Products from Adafruit forum

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
picofun
 
Posts: 23
Joined: Fri Jul 29, 2022 9:22 am

worldtimeapi.org replacement

Post by picofun »

worldtimeapi.org is frequently used to set the local time of a mcu. But it is known to be unreliable and also has rate-limiting, which is especially problematic during testing. Adafruit has it's own time-service, but you need to login and it is a cloud-service after all.

So I wrote my own timeapi-server (only a few lines of python3 code) which I deployed to Raspberry Pi running in my LAN. Now I have faster response-times and no more rate-limiting. The server mimics the response from worldtimeapi.org, so you can use it as a drop-in replacement.

If you are running a Raspberry Pi or simalar sbc, you might want to give it a try: https://github.com/bablokb/py-localtime-api.

Locked
Please be positive and constructive with your questions and comments.

Return to “Clock Kits (discontinued)”