#6972 (Weather data is not getting written to weather.pickle)
by Luc Saffre · in Developers · assigned to Luc Saffre
Kurzbeschreibung
Kinder
Kommentare
- 2 Monate ago von Luc Saffre about #6972 (Weather data is not getting written to weather.pickle) : Today there was another "Task System task #12 (get_weather_forecasts) failed", this time because the wttr.in service had answered a 500 error more than 3 times. I discovered that python_weather actually just sends a simple web request to wttr.in, which I could do directly rather than relying on pyth...
- 2 Monate ago von Luc Saffre about #6972 (Weather data is not getting written to weather.pickle) : The author answered on my issue. The python_weather package heavily uses enums, which I didn't yet know about. Enums are more efficient than choicelists, but they don't have translatable text labels.
- 2 Monate ago von Luc Saffre about #6972 (Weather data is not getting written to weather.pickle) : I consider starting a fork of python-weather for fixing these issues.
- 2 Monate, 1 Woche ago von Luc Saffre about #6972 (Weather data is not getting written to weather.pickle) : I reported this as an issue to the author: github.com/null8626/python-weather/issues/78
- 2 Monate, 1 Woche ago von Luc Saffre about #6972 (Weather data is not getting written to weather.pickle) : After re-applying my two manual patches, the error came back (so the upgrade was actually *not* yet the solution). But I then fixed this in my local copy by adding a third manual patch: Add four lines of code to python_weather/base.py:
if int(json['weatherCode']) == 146: json['weatherCod... - 2 Monate, 1 Woche ago von Luc Saffre Antwort auf Luc Saffre about #6972 (Weather data is not getting written to weather.pickle) : But after upgrading I have (of course) again #6946 (weather says ValueError: unconverted data remains: AM).
- 2 Monate, 1 Woche ago von Luc Saffre about #6972 (Weather data is not getting written to weather.pickle) (1 Antwort) : The release notes say "🟩 Add SMOKY_HAZE to Kind." on 2026-07-26.
- 2 Monate, 1 Woche ago von Luc Saffre about #6972 (Weather data is not getting written to weather.pickle) : python-weather is giving a new error message "ValueError: 125 is not a valid Kind". And then the message wasn't logged because the daemon user had no user_type.
- 2 Monate, 1 Woche ago von Luc Saffre about #6972 (Weather data is not getting written to weather.pickle) : Created new Ticket #6972 (Weather data is not getting written to weather.pickle).