raspi-weather icon indicating copy to clipboard operation
raspi-weather copied to clipboard

is instead of == and API

Open alemarengo opened this issue 2 years ago • 2 comments

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 avatar Aug 17 '22 06:08 alemarengo

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:

  • wundermap is useful to choose a PWS if yours is inactive or, like in my case, I just have to read data without an active contribution
  • query and wquery have to be tweaked in case you'd want to show data in metric format
  • "Today: " row 65 have to be translated in your language and so a few other data in the code, so I decided to rewrite some variables on my own.

Thanks.

alemarengo avatar Aug 17 '22 13:08 alemarengo

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

DerekCaelin avatar Aug 17 '22 16:08 DerekCaelin