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

Code not working #4

Open
pachieh opened this issue Feb 20, 2024 · 2 comments
Open

Code not working #4

pachieh opened this issue Feb 20, 2024 · 2 comments

Comments

@pachieh
Copy link

pachieh commented Feb 20, 2024

Running on a RaspPi Zero 2...

Every time I go to run main.py, it returns a KeyError: 'current' in line 22 of owm.py (curr_weather = data["current"]) which in turn causes issues in line 49 of main.py.

If I leave 'self' in the get_owm_weather and get_weather definitions, it then gives errors for missing a positional argument when running main.py.

I've tried reloading both main.py and owm.py with fresh copies but run also run into a ModuleNotFoundError for owm.owm; 'owm' is not a package.

No clue what's going on except things aren't working per your directions.

@SNTag
Copy link

SNTag commented Jun 7, 2024

I have the same issue. @pachieh did you resolve it?

Edit: it is an issue with the api! the url referenced under "owm/owm.py", function "get_owm_weather" requires a paid subscription.

Edit 2: the paid subscription appears to be free for the first 1K calls per day, but they need a card!

@pachieh
Copy link
Author

pachieh commented Jun 8, 2024

I have not been able to resolve it yet @SNTag . I'll probably start looking at it again in a week or so and see what's going on.

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