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

Wind barbs not showing properly #239

Closed
2 tasks done
Motik68 opened this issue Nov 27, 2022 · 6 comments · Fixed by #240
Closed
2 tasks done

Wind barbs not showing properly #239

Motik68 opened this issue Nov 27, 2022 · 6 comments · Fixed by #240
Labels
bug Something isn't working

Comments

@Motik68
Copy link

Motik68 commented Nov 27, 2022

Checklist:

  • I updated to the latest version available
  • I cleared the cache of my browser

Release with the issue: 4.9.0

Last working release (if known):

Browser and Operating System:
Opera, Chrome (Windows 10)
Home Assistant supervised on Debian

On another installation I have (in another home), using Home Assistant Operating System, barbs display correctly.

Description of problem:
The wind barbs do not display, showing instead dots at various positions:
image

Everything works fine when displaying wind speed and direction as text:
image

Any idea?

Javascript errors shown in the web inspector (if applicable):


Additional information:

@Motik68 Motik68 added the bug Something isn't working label Nov 27, 2022
@decompil3d
Copy link
Owner

The dot means calm/light winds. It is in different positions because it's rotated for direction. The barb svgs are a little off center, but I didn't have time to dig in to improving them (they're from an open source library).

@decompil3d decompil3d closed this as not planned Won't fix, can't repro, duplicate, stale Nov 27, 2022
@Motik68
Copy link
Author

Motik68 commented Nov 27, 2022

@decompil3d Thank you for your quick answer.

I know that the dots mean calm winds, but the issue is that the card always displays them, regardless of the speed of the wind. If you look at the pictures I posted, the wind speeds range from 4 to 12 knots, and most of them should definitely be displayed as barbs.

Can you please have a look?

@decompil3d decompil3d reopened this Nov 27, 2022
@decompil3d
Copy link
Owner

Oh interesting. Might be a bad conversion from knots. Can you please share the devtools state of the weather entity you're using? The full yaml including attributes.

@Motik68
Copy link
Author

Motik68 commented Nov 27, 2022

You are right, I checked my other HA installation, where wind barbs display correctly, and the speed unit is kph, not kn. So must definitely be something related with knots.

Here is the devtools state (I included only the first forecasts, as there are lots of them. Of course I will share the whole yaml if you need it):

`temperature: 11
temperature_unit: °C
humidity: 85
pressure: 1017.2
pressure_unit: hPa
wind_bearing: 155
wind_speed: 7.78
wind_speed_unit: kn
visibility_unit: km
precipitation_unit: mm
forecast:

  • datetime: '2022-11-27T19:00:00+00:00'
    condition: partlycloudy
    wind_bearing: 165
    temperature: 10.5
    wind_speed: 7.78
    precipitation: 0
  • datetime: '2022-11-27T20:00:00+00:00'
    condition: partlycloudy
    wind_bearing: 180
    temperature: 10
    wind_speed: 7.78
    precipitation: 0
  • datetime: '2022-11-27T21:00:00+00:00'
    condition: partlycloudy
    wind_bearing: 195
    temperature: 9.5
    wind_speed: 7.78
    precipitation: 0
  • datetime: '2022-11-27T22:00:00+00:00'
    condition: cloudy
    wind_bearing: 200
    temperature: 9.2
    wind_speed: 5.83
    precipitation: 0
  • datetime: '2022-11-27T23:00:00+00:00'
    condition: cloudy
    wind_bearing: 205
    temperature: 8.9
    wind_speed: 5.83
    precipitation: 0
  • datetime: '2022-11-28T00:00:00+00:00'
    condition: cloudy
    wind_bearing: 210
    temperature: 8.6
    wind_speed: 3.89
    precipitation: 0
    `

@Motik68
Copy link
Author

Motik68 commented Nov 27, 2022

Backticks don't seem do work as I expected... Of course the bullet points are actually hyphens in the yaml.

@Motik68
Copy link
Author

Motik68 commented Nov 27, 2022

I confirm that 4.9.1 corrected the issue. Thanks!

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