GithubHelp home page GithubHelp logo

Comments (13)

aukedejong avatar aukedejong commented on May 30, 2024

About the first speed range, not in a circle: I'll think about this and have a look at the code. I'm afraid this will be a bigger change.
I think the reason for other windrose plots to not show the direction for the calm speeds is that the wind is not strong enough to measure a correct heading.

About hiding the center percentage: that should be easy to fix.

Hopefully I can find some time to fix the second request in the next few days.

from lovelace-windrose-card.

olivierouellet avatar olivierouellet commented on May 30, 2024

Thanks for your quick response.

Could we then have an option to define the first range for the calm speeds (unreliable directions) but keep the same steps?

Let's say my speed_range_step is 2 m/s, we could have a speed_range_first_step option and set it to 0.3. The first range would then be 0 to 0.3 (circle), the second range 0.3 to 2 (with directions), then 2 to 4 , 4 to 6 and so on. We could keep the same colour on the graph for the first and second range (from 0 to 2) so they would blend together. The windspeed bar could be kept the same and report the percentage from 0 to 2.

The idea would be to keep the circle small (proportional to the percentage of the first range?), not have strange values on the windspeed bar by shifting the rest of the values to the right (0.3 to 2.3 for example) and not have to define every step to be 0.3 .

from lovelace-windrose-card.

aukedejong avatar aukedejong commented on May 30, 2024

I spend some time to see what it would take to make your first request work.

It needs to much changes at different parts in the code. And to make it configurable would add to much complexity.
It would be a nice feature, I totally agree, but with the current code architecture, it would make it less maintainable.

I will add the config option to hide the center percentage value. The circle will still be there.

I'm a little busy right now, but hopefully I can find some time this weekend.

from lovelace-windrose-card.

olivierouellet avatar olivierouellet commented on May 30, 2024

Nothing new to add, but yesterday was windy, so I thought I would share my graph with you.
You really did an amazing work! Thanks again!
Windy

from lovelace-windrose-card.

aukedejong avatar aukedejong commented on May 30, 2024

Nice.
There is a new release coming up, with a few bigger changes.
One change is your request of not having the center calm percentage.
An other one is support for HA 5 minute statistics data.

I'm currently testing and debugging.
Hopefully I can release something this week.

from lovelace-windrose-card.

aukedejong avatar aukedejong commented on May 30, 2024

Your requested feature is released.
If you see any problems, please let me know.

from lovelace-windrose-card.

olivierouellet avatar olivierouellet commented on May 30, 2024

I put center_calm_percentage: false but I don't see any change in the rendering. The percentage is still rendered.
I did install the new version and I also did a full system restart.
Thanks a lot for your hard work by the way!!!

from lovelace-windrose-card.

aukedejong avatar aukedejong commented on May 30, 2024

Strange. Can you share your configuration?

from lovelace-windrose-card.

olivierouellet avatar olivierouellet commented on May 30, 2024

Tested in Chrome (MacOS) and Safari (iOs and MacOS)

type: custom:windrose-card
title: Vent 6h
hours_to_show: 6
max_width: 400
refresh_interval: 300
windspeed_bar_location: bottom
windspeed_bar_full: true
wind_direction_entity: sensor.wind_direction
windspeed_entities:
  - entity: sensor.wind_speed_hi_last_2_min_davis
    name: Vent 6h
wind_direction_unit: letters
input_speed_unit: kph
output_speed_unit: kph
speed_range_step: 5
speed_range_max: 40
center_calm_percentage: false
direction_compensation: 0
windrose_draw_north_offset: -15
cardinal_direction_letters: NESO
wind_direction_count: 16
matching_strategy: direction-first
direction_speed_time_diff: 1
Wind

from lovelace-windrose-card.

aukedejong avatar aukedejong commented on May 30, 2024

The configuration changed in a breaking way.
I think it's easiest to just delete and add the card and modify the generated configuration.

Did you read the release notes? I'm not sure it's described clear enough in there.

from lovelace-windrose-card.

olivierouellet avatar olivierouellet commented on May 30, 2024

Yes, that's what I did at first (started fresh with a new card).
Here's the default config I get :

type: custom:windrose-card
title: Wind direction
hours_to_show: 4
max_width: 400
refresh_interval: 300
windspeed_bar_location: bottom
windspeed_bar_full: true
wind_direction_entity: ''
windspeed_entities:
  - entity: ''
    name: ''
wind_direction_unit: degrees
input_speed_unit: mps
output_speed_unit: bft
direction_compensation: 0
windrose_draw_north_offset: 0
cardinal_direction_letters: NESW
matching_strategy: direction-first
direction_speed_time_diff: 1

If I change these configs to get a graph and add center_calm_percentage: false , it does nothing to the center calm percentage. I did download the latest version and restarted Home Assistant.

from lovelace-windrose-card.

aukedejong avatar aukedejong commented on May 30, 2024

I think you need a browser cache refresh.
It looks like it's still loading the old version.

from lovelace-windrose-card.

olivierouellet avatar olivierouellet commented on May 30, 2024

Oops... Sorry, my fault! Sometimes you need to get back to the basics!
It works awesome!!! Wow. This is really a great card. Thank you again!

This config works great :

type: custom:windrose-card
title: Vent 6h
hours_to_show: 6
max_width: 400
refresh_interval: 300
windspeed_bar_location: bottom
windspeed_bar_full: true
wind_direction_entity:
  entity: sensor.wind_direction
  direction_unit: letters
  use_statistics: false
  direction_compensation: 0
windspeed_entities:
  - entity: sensor.wind_speed_last_davis
    name: Vent
    speed_unit: auto
    use_statistics: false
output_speed_unit: kph
speed_range_beaufort: false
windrose_draw_north_offset: 0
cardinal_direction_letters: NESW
matching_strategy: direction-first
center_calm_percentage: false
speed_range_step: 5
speed_range_max: 40
center_calm_percentage: false

from lovelace-windrose-card.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.