mlamberts78 / weather-chart-card

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

drawChartOncePerHour is not defined #208

Open r-jean-pierre opened 4 months ago

r-jean-pierre commented 4 months ago

Describe the bug Got this in my logs:

Logger: frontend.js.latest.202407100
Source: components/system_log/__init__.py:333
First occurred: 12:59:59 (3 occurrences)
Last logged: 19:59:58

Uncaught error from Chrome 126.0.0.0 on Windows 10 ReferenceError: drawChartOncePerHour is not defined /hacsfiles/weather-chart-card/weather-chart-card.js:18226:7

To Reproduce Just used with a weather.openweathermap entity

Expected behavior I cant' say if it has an impact on the dashboard itself

Screenshots

Desktop (please complete the following information):

Additional context None

loryanstrant commented 3 months ago

I'm also getting this with my Docker instance. Had it on 2024.7.x, and now 2024.8.2

BobC76 commented 2 months ago

+1

Bikervossibaer commented 2 months ago

Same error on my HA-Instance with the official HA-Integration of OpenWeatherMap.

Core 2024.8.3 Supervisor 2024.08.0 Operating System 13.1 Frontend 20240809.0

haus42 commented 1 month ago

Do you have "auto scoll" activated on a chart with a daily forecast? Switching it off did fix this error message for me. (Hourly scrolling on a daily forecast does not make much sense anyway.)

r-jean-pierre commented 1 month ago

Do you have "auto scoll" activated on a chart with a daily forecast? Switching it off did fix this error message for me. (Hourly scrolling on a daily forecast does not make much sense anyway.)

So I confirm if I remove it, the error disappears from the log To be really honest, I did not understand at 100% what this option is supposed to do :-) and also, yes: I was using a daily forecast:

image