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

Always show 0% and 100% on state of charge diagram #980

Merged
merged 1 commit into from
Oct 11, 2020

Conversation

mbertheau
Copy link
Contributor

In the beginning of recording data with teslamate it's likely that the SoC hasn't gone down close to 0. However the minimum value in the diagram is determined by the minimum SoC recorded in TeslaMate. The resulting diagram is arguably misleading.

This PR fixes that by fixing the minimum and maximum values for the SoC diagram to 0 and 100 respectively.

Caveat: I didn't test this change.

@@ -167,8 +167,8 @@
"format": "percent",
"label": "Charge Level",
"logBase": 1,
"max": null,
"min": null,
"max": 100,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe this should be "100" (with the quotes) - when editing in Grafana directly it also makes quotes around the numbers...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, fixed.

Copy link
Contributor

@roadrash2108 roadrash2108 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

line 170 and 171: the numbers should be with quotes.

This affects:

- the charge level panel the overview dashboard
- the charge level dashboard
Copy link
Collaborator

@adriankumpf adriankumpf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@adriankumpf adriankumpf merged commit d08fbfd into teslamate-org:master Oct 11, 2020
adriankumpf pushed a commit that referenced this pull request Oct 11, 2020
)

This affects:

- the charge level panel the overview dashboard
- the charge level dashboard
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants