FL550 / dwd_weather

Deutscher Wetterdienst integration for Home-Assistant
MIT License
157 stars 11 forks source link

Wind bearing in degrees instead of cardinal direction #107

Closed vzvl closed 6 months ago

vzvl commented 8 months ago

Is your feature request related to a problem? Please describe. It seems like DWD only publishes the wind direction in cardinal direction, e.g. "W", "SSE", etc. For the simple weather card custom HACS card to work properly, it requires the wind direction in degrees.

Describe the solution you'd like In older posts I saw that it was published in degrees, was that a change made by DWD or is this a change made in the Integration?

Describe alternatives you've considered I could probbaly create proxy variables for the wind direction, converting each text string to a degree number, i.e. "W" -> 270°

FL550 commented 7 months ago

I seems like Homeassistant is converting this automatically to the 1-3 letter cardinal direction. If you look at the wind_bearing attribute within the developer tools, you can see the value as degrees or letters depending on your configuration.