teslamate icon indicating copy to clipboard operation
teslamate copied to clipboard

feat(webview): add a maintenance view to simplify common maintenance tasks, such as closing drives and charges

Open JakobLichterfeld opened this issue 5 months ago • 1 comments

Nice enhancement, which would improve UX, even if unfinished drives or changes should not happen that often.

Could we please have two buttons on each of this "unfinished" entries so that we can finish or delete the entries with a click on that list without having to detour to the command line?

Grafana is just a dashboard to view data from the database, so as Brian said:

Probably wouldn't be able to do this in grafana, that is read only. So I think would need a new view(s) in the teslamate web site.

That said: The set charge cost does a trick where you can click in the charge dashboards and a TeslaMate Web-View opens up where you can set the charging cost, which goes into the DB and is then available in the dashboards.

An even better solution would be a clean up-button that deletes entries in that list having predecessors with a consecutive ID and finishes the remaining.

I could not imagine that one solution would fit all, as in some cases a drive is spit into multiple drives, in other cases the end is not logged because the connection was lost due to an underground car park or something, and so on.

So a Web View should handle multiple cases and its up to the user to decide.

Originally posted by @JakobLichterfeld in https://github.com/teslamate-org/teslamate/discussions/4583#discussioncomment-13021991

based on #4706

#4849 is a nix solution in the meantime

JakobLichterfeld avatar Jul 23 '25 12:07 JakobLichterfeld

Leaving a recent Grafana enhancement here to think about:

It now is possible to provide Action Links - so e.g. closing a drive or charge can happen in the background without leaving the Grafana UI at all:

https://grafana.com/whats-new/2025-09-03-actions-authentication-with-the-infinity-data-source/

However authentication might differ based on user config and therefore is not trivial to configure the required enpoint in Grafana correctly.

swiffer avatar Sep 22 '25 04:09 swiffer