Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

is instead of == and API #5

Open
alemarengo opened this issue Aug 17, 2022 · 2 comments
Open

is instead of == and API #5

alemarengo opened this issue Aug 17, 2022 · 2 comments

Comments

@alemarengo
Copy link

alemarengo commented Aug 17, 2022

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
Copy link
Author

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.

@DerekCaelin
Copy link
Owner

DerekCaelin commented Aug 17, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants