mlamberts78 / weather-chart-card

Custom weather card with charts.
MIT License
321 stars 39 forks source link

"undefined.svg" or generic fallback if provider has no data #207

Open majorsl opened 4 months ago

majorsl commented 4 months ago

Describe the bug Rarely, but on occasion I've seen my provider return an "undefined" for a condition icon. This results in the card displaying a broken image.

To Reproduce Steps to reproduce the behavior: Just wait for a provider to provide an unknown or undefined condition.

Expected behavior If possible, the card should have some logic to fallback to a generic icon in the event a provider is missing something. I've seen other cards use an "undefined.svg" for this situation.

Desktop (please complete the following information):

Eisbaer2 commented 3 months ago

Same here

MHerbst commented 2 months ago

I have got the same problem in combination with the DWD weather integration that does not provide a value for the current day. In this case the card tries to load this icon: https://cdn.jsdelivr.net/gh/mlamberts78/weather-chart-card/dist/icons/undefined.svg that does not exist.