i use raspbary py zero 2 w with phat, and then run the program.
python3 /home/akio/Pimoroni/inky/examples/phat/weather-phat.py
But print time out error.How I can change? Please teach me.
Akio
Status code Unknown from https://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer/find: ERROR - HTTPSConnectionPool(host=‘geocode.arcgis.com’, port=443): Read timed out. (read timeout=5.0)
Traceback (most recent call last):
File “/home/akio/Pimoroni/inky/examples/phat/weather-phat.py”, line 112, in
weather = get_weather(location_string)
File “/home/akio/Pimoroni/inky/examples/phat/weather-phat.py”, line 73, in get_weather
res = requests.get(“https://api.open-meteo.com/v1/forecast?latitude=” + str(coords[0]) + “&longitude=” + str(coords[1]) + “¤t_weather=true”)
TypeError: ‘NoneType’ object is not subscriptable