Open pachieh opened 6 months ago
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!
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.
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.