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

Ideas about new data chart. #350

Open
petsicola opened this issue Mar 26, 2024 · 17 comments
Open

Ideas about new data chart. #350

petsicola opened this issue Mar 26, 2024 · 17 comments
Labels
enhancement An enhancement request widget Related to a Widget

Comments

@petsicola
Copy link

I think that the new data chart is a very good thing. I'm going to purpouse some ideas.

1º vertical values. would be a good idea put the vertical charts

image

2º The value in the center. there is an option to put the center line in the midle with the value.
image

3º The font size of actual values could be big?

4º multiple values in the same chart? I don't know if this is interesting for anybody.

Question about moving average. what happens with you mooving average if you put true wind values of 5º and 355º give averages of 180º??

Mxtommy kip is practically perfect! thank you for your wrork.

@godind
Copy link
Collaborator

godind commented Mar 26, 2024

Hi. Thank you for the feedback. This was step one for getting to what you asked in the other issue 😉

Angle average calculation for degrees is not done. Kip works in Degrees by default and I need to check why it's not in base radian.

@godind
Copy link
Collaborator

godind commented Mar 26, 2024

I have done Exponential Moving Average (EMA) and Double EMA calculations but not on angles, Angles should use calculations from link found in the Issue with tang2().

@godind
Copy link
Collaborator

godind commented Mar 26, 2024

I had to get to a few bugs and it was good as a v1 to get feedback!

@godind
Copy link
Collaborator

godind commented Mar 26, 2024

If you want to PR some changes you are more than welcomed!

To keep widgets somewhat easy to use for users, their benefits accessible and maintain in code. We will need different ones. The Data Chart is about visual trends over time and so the values are not that critical, hence the smaller size.

For racing/sailing charts, I think we need different widgets with their own specific layouts and config: vertical with larger numbers, multiple series, polar data maybe, different scales, custom settings, etc. I would do new widgets for that purpose.

If some new useful features can be shared, then we add them in all charts.

What do you think?

@godind godind added enhancement An enhancement request widget Related to a Widget labels Mar 26, 2024
@petsicola
Copy link
Author

Hi. Thank you for the feedback. This was step one for getting to what you asked in the other issue 😉

Angle average calculation for degrees is not done. Kip works in Degrees by default and I need to check why it's not in base radian.

I saw the release notes, and quickly I installed the new version to try it. Thank you. I'm creating diferent charts and I will give you my opinion if you want.

@petsicola
Copy link
Author

I have this ideas,

image

@godind
Copy link
Collaborator

godind commented Mar 26, 2024

Are you planning to add new widgets?

@godind
Copy link
Collaborator

godind commented Mar 26, 2024

Note that EMA and DEMA are not yet exposed as I need to add angles average. Too much stuff to do!

@petsicola
Copy link
Author

petsicola commented Mar 26, 2024

I'm not programmer, I'm trying your widget. i only can make that for you. and if I say that you can cretate a data chart widget the minimum is try the widget and look the maximum posibilities with this widget.

yes, with this charts we only have the problem with the wind direction magnetic.... and only with values close to 0 or 360.

I'm thinking in things as:

  • Chart of open cpn, are the right side charts. polar performance and SOG
    image

  • a chart with VMG ratio up and VMG down
    image

@petsicola
Copy link
Author

Note that EMA and DEMA are not yet exposed as I need to add angles average. Too much stuff to do!

I'm aware that EMA and DEMA haven't been revealed yet, but I believe it's important to understand the impact of turning the Moving Average on or off. This can be observed in the chart you've made. The differences are around 30 degrees, but with the Moving Average enabled, it essentially becomes a straight line.

image

@godind
Copy link
Collaborator

godind commented Mar 27, 2024

Are you on Discord? I found user petsi but not certain it is you.

I'm no math expert and any help or advice would be great. If you are on Discord, after I'm done with a complex bug, maybe we can setup a live call so we can talk and I can better understand?

@godind
Copy link
Collaborator

godind commented Mar 30, 2024

I'm putting out an improved average for directions.

@petsicola
Copy link
Author

petsicola commented Mar 30, 2024

Working with the moving average in Node-RED, I realized that different situations require a different number of values in the moving average. For example, if you want to know stable wind values, you can include a high number of values in the moving average, like 40 values. If what you want to know is the apparent wind angle, it's fine to make the average with the last 10 values. If you want to know the current performance, you use relatively small average values, like 10. If you want to know how performance varies over time, for example with a new trim, you can use higher values, like 40. By high or low values, I mean the number of elements you will take into account in the moving average. Higher values generate more stable values but with a lot of delay to changes, smaller values generate less delay but the values are more unstables.
I want say with this, that put the values that you want assign is important.
the data set make that... I think...

I'm analazing a file with mxtommy kip and When you tack in the boat, the values of the data chart take about 10 seconds to detect that you are making the tack, more or less.

@petsicola
Copy link
Author

petsicola commented Mar 30, 2024

To implement your strategy effectively, you would:

1º Implement the moving average to calculate average values for the mxtommy kip data chart.

2º Create a plugin to Apply the moving average directly to the environment.wind.angleApparent data path. Since many derived data values depend on the apparent wind angle, stabilizing this value using a moving average can significantly improve the reliability and usefulness of the calculated derived data path values. By smoothing out the fluctuations in apparent wind angle, you ensure that the derived data, which might include calculations related to sail settings, navigation, or performance metrics, are based on more consistent and reliable input data.

Is my opinion.

@petsicola
Copy link
Author

petsicola commented Mar 30, 2024

A dataset gives that. something is bad...
image
The second image appears ok
image
I put in the display paths the paths that I'm testing.

@godind
Copy link
Collaborator

godind commented Mar 30, 2024

It because this widget does not support rolling (wrap-around) scales. You'll not get what you want with this widget. You can check the calculations if you want.

As for data, when working with time scales, all the data has to be in sync for both time and frequency to create stats and data points, on time points. The way plugins are built at the moment, it's not really possible or easy. They all come at different times and different rhythm. Try and plot multiple paths and create an average at a specific regular time interval. You'll see the challenge.

I think we need a performance plugin that does that and sends data in sets.

@godind
Copy link
Collaborator

godind commented Mar 30, 2024

Working with the moving average in Node-RED, I realized that different situations require a different number of values in the moving average. For example, if you want to know stable wind values, you can include a high number of values in the moving average, like 40 values. If what you want to know is the apparent wind angle, it's fine to make the average with the last 10 values. If you want to know the current performance, you use relatively small average values, like 10. If you want to know how performance varies over time, for example with a new trim, you can use higher values, like 40. By high or low values, I mean the number of elements you will take into account in the moving average. Higher values generate more stable values but with a lot of delay to changes, smaller values generate less delay but the values are more unstables.

I want say with this, that put the values that you want assign is important.

the data set make that... I think...

I'm analazing a file with mxtommy kip and When you tack in the boat, the values of the data chart take about 10 seconds to detect that you are making the tack, more or less.

Yes. That's what a simple moving average (SMA) is. Data Chart uses a 0.25 ratio of data points. We need different widgets for different purpose. Remember Kip has different goals then Grafana. We just need to have what sailors need to see, presented in a "marine" format. So if we explore outside that scope, we'll find gaps. Grafana has its place there and can be integrated into Kip. Just saying...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement An enhancement request widget Related to a Widget
Projects
None yet
Development

No branches or pull requests

2 participants