jdejaegh / irm-kmi-ha

Home Assistant weather provider using data from Belgian IRM KMI 🇧🇪 🇱🇺 🇳🇱
MIT License
40 stars 0 forks source link

Could not get images for weather radar: Error fetching information. Keep the existing radar data. #36

Closed AndyVRD closed 3 months ago

AndyVRD commented 3 months ago

Describe the bug Keep getting this warning x times each hour.

Version Core 2024.5.5 Supervisor 2024.05.1 Operating System 12.3 Frontend 20240501.1

IRM KMI 0.2.14

Additional context Just installed the integration and getting the below error x times per hour. Could not get images for weather radar: Error fetching information. Keep the existing radar data.

Can it be releated that i use the camera entity in a picture-entity card?

type: picture-entity
show_state: false
show_name: false
entity: camera.radar_home
camera_view: live
jdejaegh commented 3 months ago

This warning is logged when the integration could not get the data needed to show the radar animation from the API. Generally, it is because the API times out or is unreachable. Except waiting and retrying later there nothing you can really do.

For you information, my instance logged the same error 11 times between 12:45PM and 2:20PM today. The IRM API was probably down for some time during this period.

When only the radar images cannot be fetched (but forecast and everything else works), the radar just keeps the exiting data to show the animation.

Maybe I can improve the log message to make it clearer that the API is down and one should wait a bit and retry.

Could you retry on your side and tell me if it works now?

AndyVRD commented 3 months ago

Yeah in the meantime it's back working. It just seems that the server is having allot of timeouts because I installed the integration yesterday and see quite a few warnings from the radar and other weather data. Anyway it's working for the most of the time and the weather info is far more accurate than openweathermap.

jdejaegh commented 3 months ago

Good then!

The situation already improved: previously, any API error when fetching the data caused all the entities to show unkown. Now, only the failed parts are kept as they were and it retries at the next poll interval.

I'll close the issue as this comes from the API timing out. Feel free to reach out if you encounter some bugs