Skip to content

TIME API URL change#228

Merged
ladyada merged 1 commit intoadafruit:mainfrom
mikeysklar:time-api-url
Feb 25, 2026
Merged

TIME API URL change#228
ladyada merged 1 commit intoadafruit:mainfrom
mikeysklar:time-api-url

Conversation

@mikeysklar
Copy link
Copy Markdown
Contributor

@mikeysklar mikeysklar commented Feb 18, 2026

Various guides and example code reference this http time setting website.

http://worldtimeapi.org/api/ip

It is no longer available. This PR is a one line change that switches to:

https://time.now/developer/api/ip

Unless there is another preferred source we should probably change this across the guides and github repos.

Adafruit CircuitPython 10.1.1 on 2026-02-17; Adafruit Matrix Portal M4 with samd51j19
>>>
soft reboot

Auto-reload is on. Simply save files over USB to run them or enter REPL to disable.
code.py output:
ESP32 local time
Fetching json from https://time.now/developer/api/ip
struct_time(tm_year=2026, tm_mon=2, tm_mday=18, tm_hour=12, tm_min=31, tm_sec=47, tm_wday=3, tm_yday=49, tm_isdst=False)

forum issue

@mikeysklar
Copy link
Copy Markdown
Contributor Author

@ladyada - If this change looks reasonable I can compile a list of other examples that are referencing the no longer available worldtimeapi.

@ladyada
Copy link
Copy Markdown
Member

ladyada commented Feb 18, 2026

yep thats fine

@mikeysklar
Copy link
Copy Markdown
Contributor Author

mikeysklar commented Feb 19, 2026

Thx @ladyada. These are the examples I found in the Adafruit Learning System repo that could use updates from worldtimeapi --> time.now. If its okay I'll submit a PR in that Repo and change them all in one push.

GitHub Repo Sketch / File Containing URL
PicoW_YBox3 PicoW_YBox3.ino
CircuitStonks settings.toml
ESP32_S2_Reverse_TFT_Digital_Clock code.py
Matrix_Portal_Moon_Clock code.py
CircuitPython_WeatherCloud settings.toml
MagTag_Project_Selector settings.toml
MagTag_NextBus code.py
MagTag_CountdownCelebration code.py
IoT_Environment_Sensor aio.py, settings.toml
PyPortal_WeeklyCountdown code.py
PyPortal_Smart_Switch code.py, settings.toml
PyPortal_Titano_Weather_Station settings.toml
PyPortal_Halloween_Countdown settings.toml
IoT_Party_Parrot settings.toml

@ladyada ladyada merged commit a36b788 into adafruit:main Feb 25, 2026
1 check passed
adafruit-adabot pushed a commit to adafruit/Adafruit_CircuitPython_Bundle that referenced this pull request Mar 13, 2026
Updating https://github.com/adafruit/Adafruit_CircuitPython_ESP32SPI to 11.1.1 from 11.1.0:
  > Merge pull request adafruit/Adafruit_CircuitPython_ESP32SPI#228 from mikeysklar/time-api-url

Updating https://github.com/adafruit/Adafruit_CircuitPython_Wiznet5k to 7.4.2 from 7.4.1:
  > Merge pull request adafruit/Adafruit_CircuitPython_Wiznet5k#189 from tekktrik/fix/example

Updating https://github.com/adafruit/Adafruit_CircuitPython_Bundle/circuitpython_library_list.md to NA from NA:
  > Added the following libraries: Adafruit_CircuitPython_AS7343
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants