Closed diplix closed 8 months ago
Yes, it seems so. The reason for crash is a change I made to make the precipitation duration and precipitation probability available in hourly mode. Normally this error shouldn't occur, but as two network requests are done for this there might be a timing issue. It seems like I need to handle this more gracefully. Thanks for reaching out!
Version v2.0.4 should fix this.
Still same behavior in 2.0.4.
Still same behavior in 2.0.4.
can confirm.
Hm, same log files also?
i reverted to 2.0.2 when i became aware of the issue and did not look at the logs of 2.0.4. but i assumed the same error. looking at the history i see 10 minute gaps instead of 5 minute gaps, so the timing seems to have changed.
however, thinking about it, why not keep it all clean and mark sensors that are not available with hourly forecasts or certain stations as such? there is a clean and properly functioning workaround by configuring both a service with „force hourly“ and one without it and combining them as needed. i’m also thinking about stations that lack certain data (like Irradiance in #86).
missing sensor are marked as „unknown“ until version 2.0.2, why not mark them as „unavailable“ (once those sensors are activated), or even better, not show data/sensors at all that are not offered by certain dwd stations or forecast methods?
i’m happy to help document this in the readme.
however, thinking about it, why not keep it all clean and mark sensors that are not available with hourly forecasts or certain stations as such? there is a clean and properly functioning workaround by configuring both a service with „force hourly“ and one without it and combining them as needed.
I have implemented this.
i’m also thinking about stations that lack certain data (like Irradiance in #86). missing sensor are marked as „unknown“ until version 2.0.2, why not mark them as „unavailable“ (once those sensors are activated), or even better, not show data/sensors at all that are not offered by certain dwd stations or forecast methods?
This is a bit of a problem, because before data fetching I don't know which data is available. And the setup of the sensors happens async which means, I couln't check if the data point is available during setup without updating the whole data for the setup of each new sensor.
i’m happy to help document this in the readme.
Help is always welcome :)
This error might be due to missing data points in the future. I can try to avoid this by checking how much date keys are available. I'll fix this tomorrow.
Hopefully the new version removes this error.
seems to work for me now, no unavailable sensors anymore. thanks! i hope to find some time soon to make up to my promise to make some notes to the readme.
Glad to hear this! And thanks for the PR!
since version 2.0.3 i see regular errors like this for my force_hourly dwd weather instance (6 hour forcast continues to work flawlessly — no unavailable sensors at any time).
sensors are „unavailable“ and recover aftre 5 minutes (next update). you can see those 5 minute „outages“ in history as well:
i have a feeling it’s rather some kind of timeout / timing issue, rather than a network problem since the pattern is too regular.