Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ReferenceError: drawChartOncePerHour is not defined #259

Open
cloudbr34k84 opened this issue Oct 17, 2024 · 7 comments
Open

ReferenceError: drawChartOncePerHour is not defined #259

cloudbr34k84 opened this issue Oct 17, 2024 · 7 comments
Labels
bug Something isn't working

Comments

@cloudbr34k84
Copy link

Description
An uncaught error occurs when using the weather-chart-card in Home Assistant. This error appears on Android 14 with Chrome WebView 126.0.6478.186.

Logger: frontend.js.modern.202410023
Source: components/system_log/__init__.py:331
First occurred: 06:01:54 (1 occurrences)
Last logged: 06:01:54

Uncaught error from Chrome WebView 126.0.6478.186 on Android 14 ReferenceError: drawChartOncePerHour is not defined /hacsfiles/weather-chart-card/weather-chart-card.js:18218:7

Actual Behavior
The following error is encountered:

ReferenceError: drawChartOncePerHour is not defined

Troubleshooting Steps Taken
Updated to the latest version of the card.
Cleared cache and performed a hard reload.
Reinstalled the card via HACS.

@cloudbr34k84 cloudbr34k84 added the bug Something isn't working label Oct 17, 2024
@alphapuggle
Copy link

Also having this issue on my mounted tablet. Causes the chart to disappear after an hour

Logger: frontend.js.modern.202411062
Source: components/system_log/__init__.py:331
First occurred: November 15, 2024 at 12:00:00 AM (22 occurrences)
Last logged: 10:00:01 AM

Uncaught error from Chrome WebView 131.0.6778.39 on Android 12 ReferenceError: drawChartOncePerHour is not defined /hacsfiles/weather-chart-card/weather-chart-card.js:18218:7
Uncaught error from Firefox 132.0 on Linux x86_64 TypeError: null has no properties _openedChanged (src/components/ha-selector/ha-selector-select.ts:382:20) _openedChanged (src/components/ha-selector/ha-selector-select.ts:381:47) call (src/lit-html.ts:2018:28) dispatchEvent (src/common/dom/fire_event.ts:76:7) _filterChanged (src/components/ha-combo-box.ts:311:14) call (src/lit-html.ts:2018:28) dispatchEvent (node_modules/@polymer/polymer/lib/mixins/property-effects.js:328:42) dispatchNotifyEvent (node_modules/@polymer/polymer/lib/mixins/property-effects.js:353:2) fn (node_modules/@polymer/polymer/lib/mixins/property-effects.js:176:11) runEffectsForProperty (node_modules/@polymer/polymer/lib/mixins/property-effects.js:263:17)
Uncaught error from Firefox 132.0 on Linux x86_64 ReferenceError: drawChartOncePerHour is not defined autoscroll/updateChartOncePerHour/this.autoscrollTimeout< (/hacsfiles/weather-chart-card/weather-chart-card.js:18218:7)
Uncaught error from Chrome WebView 132.0.6834.5 on Android 12 ReferenceError: drawChartOncePerHour is not defined /hacsfiles/weather-chart-card/weather-chart-card.js:18218:7

@paganl
Copy link

paganl commented Dec 5, 2024

same issue

@tttopuz
Copy link

tttopuz commented Dec 20, 2024

same issue here

Uncaught error from Chrome WebView 131.0.6778.135 on Android 13 ReferenceError: drawChartOncePerHour is not defined /hacsfiles/weather-chart-card/weather-chart-card.js:18218:7

@HJ57
Copy link

HJ57 commented Dec 29, 2024

Same issue here

@Tarawera
Copy link

Tarawera commented Jan 1, 2025

Same issue on iOS 17.2

@Tarawera
Copy link

Tarawera commented Jan 2, 2025

if you go to config/www/community/weather-chart-card and edit the js file and search for drawChartOncePerHour, and comment out that line AND also delete the gz file in that folder. Then reboot HA and clear the cache in your browser then it will fix the problem. It works though not being the author I don't know if there are any other ramifications. But I am happy anyway.

@honekr
Copy link

honekr commented Jan 24, 2025

Same issue:

Logger: frontend.js.modern.202501090
Zdroj: components/system_log/__init__.py:331
První výskyt: 09:00:23 (3 výskyty)
Naposledy logováno: 09:00:23

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

7 participants