feat(grafana): add Trip Cost and Cost/100km panels to Drive Details#5334
Draft
finikwashere wants to merge 1 commit into
Draft
feat(grafana): add Trip Cost and Cost/100km panels to Drive Details#5334finikwashere wants to merge 1 commit into
finikwashere wants to merge 1 commit into
Conversation
Add two new stat panels to the Drive Details internal dashboard that
estimate the cost of a trip based on recent charging price data:
- Trip Cost (est.): total estimated cost for the drive
- Ø Cost / 100 <unit>: estimated cost per 100 km or 100 mi
Cost/kWh is determined by a 3-tier lookup:
1. Average cost/kWh across all charging sessions that ended within
the 24 hours before the drive started (the most relevant window)
2. Fallback: cost/kWh of the single most recent charge before
the drive, if no sessions exist in the 24h window
3. N/A if no prior charge has cost data at all
Both panels are placed at y=28 alongside the existing Distance driven
and Elevation Summary panels (all resized to w=3 to fit on one row).
✅ Deploy Preview for teslamate ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Member
|
Thanks for your idea. Cost per drive is not a metric which is valuable, even for a trip it is misleading, see #2433 (comment) and #4678 (comment) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #5333
Added two new stat panels to the Drive Details dashboard that estimate the cost of a trip based on recent charging price data:
Cost/kWh is determined by a 3-tier lookup:
Both panels are placed at y=28 alongside the existing Distance driven and Elevation Summary panels (all resized to w=3 to fit on one row).