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.
worldtimeapi.org replacement
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
Please be positive and constructive with your questions and comments.