I made a syntax error, which I discovered when I went through Mike's code.
I disabled the sync_time
rtc = RTC()
connect_wifi() # Connect to Wi-Fi
# sync_time_with_ip_geolocation_api(rtc) # Sync time from the API
When I enabled the last line, it was running properly.
rtc = RTC()
connect_wifi() # Connect to Wi-Fi
sync_time_with_ip_geolocation_api(rtc) # Sync time from the API
Yvonne
I disabled the sync_time
rtc = RTC()
connect_wifi() # Connect to Wi-Fi
# sync_time_with_ip_geolocation_api(rtc) # Sync time from the API
When I enabled the last line, it was running properly.
rtc = RTC()
connect_wifi() # Connect to Wi-Fi
sync_time_with_ip_geolocation_api(rtc) # Sync time from the API
Yvonne
Statistics: Posted by lodv — Sat Mar 08, 2025 9:56 am