Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions examples/api/weather.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""
'weather.py'
================================================
Dark Sky Hyperlocal for IO Plus
Apple WeatherKit example for IO Plus
with Adafruit IO API

Author(s): Brent Rubell for Adafruit Industries
Expand All @@ -26,8 +26,9 @@
# Create an instance of the REST client.
aio = Client(ADAFRUIT_IO_USERNAME, ADAFRUIT_IO_KEY)

# Grab the weather JSON
weather = aio.receive_weather(1234)
# Grab the weather JSON - Update location id to your location,
# see more details at https://io.adafruit.com/services/weather
weather = aio.receive_weather(1234) # <-- UPDATE LOCATION ID
weather = json.dumps(weather)
forecast = json.loads(weather)

Expand Down
2 changes: 1 addition & 1 deletion examples/api/weather_create_delete.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""
'weather_create_delete.py'
================================================
Create and Delete Weather Records
Create and Delete Weather Records (IO Plus)
with Adafruit IO API

Author(s): Brent Rubell for Adafruit Industries
Expand Down
Loading