Skip to content

Commit a906b59

Browse files
author
brentru
committed
add time struct endpoint instead of clock
1 parent b835faf commit a906b59

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

adafruit_io/adafruit_io.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -274,9 +274,7 @@ def receive_time(self):
274274
Returns a struct_time from the Adafruit IO Server based on the device's IP address.
275275
https://circuitpython.readthedocs.io/en/latest/shared-bindings/time/__init__.html#time.struct_time
276276
"""
277-
path = self._compose_path('integrations/time/clock.json')
277+
path = self._compose_path('integrations/time/struct.json')
278278
time = self._get(path)
279-
print(time)
280-
print(time['wday'])
281279
return struct_time((time['year'], time['mon'], time['mday'], time['hour'],
282280
time['min'], time['sec'], time['wday'], time['yday'], time['isdst']))

0 commit comments

Comments
 (0)