speedyg0nz / MagInkDash

E-Ink Magic Dashboard that runs off a battery powered Inkplate 10; displaying content from Google Calendar, OpenWeatherMap and OpenAI that are retrieved and rendered by a Raspberry Pi.
Apache License 2.0
116 stars 14 forks source link

Code not working #4

Open pachieh opened 6 months ago

pachieh commented 6 months ago

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 commented 3 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!

pachieh commented 3 months ago

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.