Skip to content

Commit 27d3ed5

Browse files
committed
Switch to city ids
1 parent bcb504e commit 27d3ed5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

PyPortal_AlarmClock/code.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
import displayio
2828

2929
# Set up where we'll be fetching data from
30-
DATA_SOURCE = 'http://api.openweathermap.org/data/2.5/weather?q='+secrets['weather_location']
30+
DATA_SOURCE = 'http://api.openweathermap.org/data/2.5/weather?id='+secrets['city_id']
3131
DATA_SOURCE += '&appid='+secrets['openweather_token']
3232
# You'll need to get a token from openweather.org, looks like 'b6907d289e10d714a6e88b30761fae22'
3333
DATA_LOCATION = []

0 commit comments

Comments
 (0)