DerekCaelin / raspi-weather

a weather application for the raspberry pi and the Pimorioni Inky pHAT.
62 stars 8 forks source link

is instead of == and API #5

Open alemarengo opened 2 years ago

alemarengo commented 2 years ago

Apart from the fact that there are several "is" instead of == to be corrected in your weather.py file, my wunderground api doesn't work at all. I keep receiving the error:

File "/home/Pimoroni/inky/weather.py", line 20, in APIKEY = fdd56a4a142a4d######a4a142a2d68df NameError: name 'fdd56a4a142a4d######a4a142a2d68df' is not defined

alemarengo commented 2 years ago

Actually, despite python syntax errors, I found difficult to understand how to read PWS data and API usage.

After a few tests, today, I am aware of this:

Thanks.

DerekCaelin commented 2 years ago

Thanks for sharing! It's cool to see this develop further.

I've been thinking of transitioning to an open service like Open Weather API: https://openweathermap.org/api