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

Forecast is missing. #102

Closed
bakboord4 opened this issue Feb 18, 2024 · 5 comments · Fixed by #108
Closed

Forecast is missing. #102

bakboord4 opened this issue Feb 18, 2024 · 5 comments · Fixed by #108
Assignees
Labels
bug Something isn't working

Comments

@bakboord4
Copy link

Describe the bug
TypeError: undefined is not an object (evaluating 'forecast[3].datetime') drawChart.

For Safari on macOS, IO and /iPadOS.
Error introduced with version 2.3.0

To Reproduce
Just show the chart on screen.

Expected behavior
Return of forecast.

Screenshots
If applicable, add screenshots to help explain your problem.

Scherm­afbeelding 2024-02-18 om 12 09 53

Desktop (please complete the following information):

  • WEATHER-CHART-CARD VERSION: V2.3.0
  • HA 2024.2.2
  • OS: 11.5
  • Browser Safari
  • Version 17.3.1

Additional context

Add any other context about the problem here.
Logger: frontend.js.latest.202402071
Source: components/system_log/init.py:306
First occurred: 17 februari 2024 om 16:00:09 (11 occurrences)
Last logged: 11:57:38

Uncaught error from Safari 17.3.1 on Mac OS 10.15.7 TypeError: undefined is not an object (evaluating 'forecast[3].datetime') drawChart (/hacsfiles/weather-chart-card/weather-chart-card.js:17964:27) callback (/hacsfiles/weather-chart-card/weather-chart-card.js:17750:19) message (node_modules/home-assistant-js-websocket/dist/connection.js:23:42) forEach ([native code]::) forEach (node_modules/home-assistant-js-websocket/dist/connection.js:15:25)

Uncaught error from WebKit 605.1.15 on Mac OS 10.15.7 TypeError: undefined is not an object (evaluating 'forecast[3].datetime') drawChart (/hacsfiles/weather-chart-card/weather-chart-card.js:17964:27) callback (/hacsfiles/weather-chart-card/weather-chart-card.js:17750:19) message (node_modules/home-assistant-js-websocket/dist/connection.js:23:42) forEach ([native code]::) forEach (node_modules/home-assistant-js-websocket/dist/connection.js:15:25)

Uncaught error from WebKit 605.1.15 on iOS 17.3.1 TypeError: undefined is not an object (evaluating 'forecast[3].datetime') drawChart (/hacsfiles/weather-chart-card/weather-chart-card.js:17964:27) callback (/hacsfiles/weather-chart-card/weather-chart-card.js:17750:19) message (node_modules/home-assistant-js-websocket/dist/connection.js:23:42) forEach ([native code]::) forEach (node_modules/home-assistant-js-websocket/dist/connection.js:15:25)

Uncaught error from Safari 17.3 on Mac OS 10.15.7 TypeError: undefined is not an object (evaluating 'forecast[3].datetime') drawChart (/hacsfiles/weather-chart-card/weather-chart-card.js:17964:27) callback (/hacsfiles/weather-chart-card/weather-chart-card.js:17750:19) message (node_modules/home-assistant-js-websocket/dist/connection.js:23:42) forEach ([native code]::) forEach (node_modules/home-assistant-js-websocket/dist/connection.js:15:25)

@bakboord4 bakboord4 added the bug Something isn't working label Feb 18, 2024
@mlamberts78
Copy link
Owner

Hello, can you provide output of the weather data?
Developer tools - services - Get weather forecast.

and which weather integration are you using?

@bakboord4
Copy link
Author

@mlamberts78
Weather integration is: KNMI
Requested output.

weather.knmi_casa:
forecast:
- datetime: "2024-02-17T23:00:00+00:00"
condition: cloudy
templow: 8
temperature: 10
precipitation_probability: 0
wind_bearing: 225
wind_speed: 19
wind_speed_bft: 3
sun_chance: 24
- datetime: "2024-02-18T23:00:00+00:00"
condition: pouring
templow: 7
temperature: 10
precipitation_probability: 80
wind_bearing: 270
wind_speed: 15
wind_speed_bft: 3
sun_chance: 20
- datetime: "2024-02-19T23:00:00+00:00"
condition: rainy
templow: 4
temperature: 11
precipitation_probability: 40
wind_bearing: 225
wind_speed: 15
wind_speed_bft: 3
sun_chance: 20

@mlamberts78
Copy link
Owner

Thanks, I know the root cause (knmi data has only 3 days forecast) and wil implement a fix in the next release. V2.2.9 should work for you for the time being… ( via HACS choose redownload and select older version)

@mlamberts78 mlamberts78 self-assigned this Feb 18, 2024
@bakboord4
Copy link
Author

@mlamberts78
Thanks for the temp. fix. Forecast is back again.
Looking forward to the new release.

@bakboord4
Copy link
Author

@mlamberts78
You may have already seen it.
See golles/ha-knmi#120, chapter weather where is mentioned: 5 day forecast and hourly forecast. May be of influence on your fix.

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

Successfully merging a pull request may close this issue.

2 participants