Lovelace Windrose Card

just what I was looking form thanks!! Will install now. Is it possible to have two winds: True wind and Apparent wind (boats)?

I had a wrong value shown, had to check my Wind sensor (was mps) and anlso the Wind angle was in radiant, had to convert it in degrees

BTW the degrees are positive, yes? My sensor radiant had negative values, so upon converting gave negative degree, not sure if conversion is just change it to positive

can you please show me how to do your Wind speed card and Wind Direction?

https://community.home-assistant.io/t/compass-card-points-you-in-the-right-direction/217909

https://community.home-assistant.io/t/lovelace-mini-graph-card/71385

1 Like

many thanks, could you please share the code for the Wind speed card (to have those min max values, pretty neat)

color_thresholds:
  - color: '#e45e65'
    value: 30
  - color: '#e0b400'
    value: 20
  - color: '#0da035'
    value: 10
  - color: '#039BE5'
    value: -50
color_thresholds_transition: hard
entities:
  - entity: sensor.wind_speed_knot
group: false
hour24: true
line_width: 4
points_per_hour: 6
show:
  extrema: true  # <---- THIS OPTION
  fill: fade
  icon: true
  labels: false
  name: true
  state: true
type: custom:mini-graph-card
1 Like

I love this and worked right away for me!

Is there any way I can show the wind rose as currently presented along with reference directions for comparison? Use case is for paragliding sites suitability - e.g. when the wind is coming from SW and between 10-15kph site XX is good to fly.

Example of the static information is here


i.e. wind must be between N and W to fly Sundhope

My ideal would be to superimpose this static info with the dynamic info provided by this excellent widget.

Would also serve for other windsports e.g. safe to sail if the wind is onshore which is between S and E (or whatever for your location)

Help gratefully appreciated!

ahah! A little progress…a simple solution after a lot of time trying complex ones!

I’ve used card mod to make the background transparent and add in the static info as an image…giving the following

Needs a but of a fiddle to get the images to line up but a rather nice start :slight_smile:

type: custom:windrose-card
title: Wind direction
windspeed_bar_full: true
wind_direction_entity:
  entity: sensor.openweathermap_wind_bearing
windspeed_entities:
  - entity: sensor.openweathermap_wind_speed
    name: Average
data_period:
  hours_to_show: 72
output_speed_unit: kph
speed_range_beaufort: false
speed_ranges:
  - from_value: 0
    color: blue
  - from_value: 15
    color: green
  - from_value: 25
    color: orange
  - from_value: 30
    color: red
view_layout:
  column: 3
  width: 150
  max_width: 150
card_mod:
  style: |
    #windRose {
      background: url('/local/images/wind/wind.jpeg');
      background-size: 104% 79%;
    }

Any further ideas - esp on how to make this dynamic (i.e. go green when wind is in right direction) which I think would need a different approach?

3 Likes

Hi, thanks for the windrose card it is great!

I am having one issue however, the card takes ages to initially load. it can take up too 2 minutes to load the card and data.

Is there any way to resolve this.

Thanks

Hi Dean,

Maybe decreasing the hours_to_show lowers the load time.
Or switching to statistics data.

Hello to everyone, can be possible to write the name of the wind insede the windrose?

That would be awsome!
I second that request.

What do you mean by


Something like that

So, over the N-E-S-W can be the names of the wind that are ovviusly more, also for NNE-ESE…etc

You want more of these?

I reckon it would make the chart way to busy.

1 Like

Hi Auke. Great card! I have a small problem: the wind-rose card flashes (disappears and reappears) every few seconds even though updates are every 300 seconds. The flashing makes it hard to read. Any idea what to do? Maybe an important note: I use wind-rose card in a custom:config-template-card to tilt the compass according to the direction my boat is pointing in. So

windrose_draw_north_offset: ${NORTH}

where NORTH is a variable:

variables:
NORTH: states[‘sensor.north_relative_to_the_boat’].state

The top now is always the bow of my ship.

I absolutely second that, it would be great to have names shown.
Of course the names that are relevant for you, such as entering the names yourself.
Has anyone done that eventually with an overlay?

Can you not read a compass rose?

My vote is definitely not for this extra clutter.

1 Like

Maybe use Plotly then. Almost endless possibilities to modify yourself.
Example of wind rose made with Plotly is here:

image

I mean something like this

1 Like

Hi, how did you get the text below into the windrose card? Just the way I want to have it too :star_struck: