-
Notifications
You must be signed in to change notification settings - Fork 882
add moving average / percentiles to charge level and support longer periods #4200
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
add moving average / percentiles to charge level and support longer periods #4200
Conversation
✅ Deploy Preview for teslamate ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
|
@JakobLichterfeld - ok, should be ready for testing! |
JakobLichterfeld
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks so much!
|
@JakobLichterfeld - will add a small follow up PR - need to increase generate series to correctly calculate the average for the first 15 days... |
no worries, love the eagle eyes. |
|
@swiffer , How do you plan to use this moving average? |
|
I don't know. First interesting to see how charge level / battery usage changes over time and how much capacity is used usually... would be great to compare curves with other users and ensure percentiles always stay within the green lines. No deep knowledge about recommended charge levels here, sorry. |
|
I don't understand the changes made to the charge level. It no longer displays the actual charge level of my car. How is this better? What am I suppose to glean from this data? Is there any documentation explaining the changes to charge level? Thanks. |
|
Hi @jim0266 - you are not seeing the yellow line anymore? we are making use of date_bin for charge level which is available from PostgreSQL 14 onwards - what version are you using? |
|
you need to upgrade your postgres instance - see here for instructions - and ensure you have a backup! https://docs.teslamate.org/docs/maintenance/upgrading_postgres |
|
All was good until this last step: root@teslaserver:~# docker compose start teslamate For the version I used 17.1, which is the latest stable version of Postgres. I am hosted at Vultr. database: Thanks! |
|
can you compare the docker compose file with the one mentioned in the docs or post it here (redacted (passwords)). |
|
Please open a separate Ticket, explain what you have done, post your docker-compose.yml (without secrets) |


Successor of #4187
added several parameters to allow flexible sizing of bucket width & option to disable the percentiles
before:

after:
