Teslamate: Drives: How to add odometer to dashboard?

Created on 8 Oct 2020  Â·  15Comments  Â·  Source: adriankumpf/teslamate

It would be great to have the possibility to view odo_start and odo_end in the drives dashboard:

This information is needed for the kilometer administration for the Dutch tax return ;-)

Any help to add odo_start and odo_end in the JSON panel is greatly appreciated.

idea

Most helpful comment

I'm on it. Are above columns all you need?

Then I would suggest to build a new dashboard soley for the purpose of "Tax reporting" - what do you think?

All 15 comments

I think it used to be on the Drives dashboard, but to reduce the horizontal scrolling on the dashboard it was removed. I think it makes more sense on the Drive Details, under the smaller blocks in my opinion.

Screen Shot 2020-10-08 at 12 27 01 PM

The tax authorities impose the following requirements on the kilometer administration:

Drive date, drive ID, the start and end position of the odometer and the departure and arrival address.

The only items what I miss in the Drives dashboard is odometer start and odometer end.

If those items are available then it is a peace of cake to export all car trips (each trip is a row) to csv format.

The fields start_km and end_km are available in the table drives.

I'd have to look into the source to see how to integrate a new query and JSON in the necessary Drives dashboard, but basically you need to

  • add "start_km, end_km," in both select queries.
  • add 2 Column styles, one for start_km and the other for end_km

I'm on it. Are above columns all you need?

Then I would suggest to build a new dashboard soley for the purpose of "Tax reporting" - what do you think?

Yeah, I made it myself already; copying the Drives dashboard into a separate dashboard, and modifying the columns.

I can do a push request, but it's already a crowded table.

This would be my proposal for the table:
Screenshot 2020-10-09 002646

Wow I am impressed! That is exact the information what is needed.
Maybe it is possible to add the column with the end date/time of the ride and a column with the duration of the ride.
That makes it complete.

New version:
Screenshot 2020-10-10 193832

Does that fit, @Eriktesla ?

@adriankumpf I'm sorry for my lack of knowledge, but can you give me some hints how to deliver this? (just create a new file in the repo with the JSON-model that I copy/paste out of my Grafana? If yes, I would suggest to deliver such "special reports" in a separate folder - simply create it or does it have to be created via Grafana?) Many thanks for guidance!

@roadrash2108 , super, thanks a lot!

Will this end up showing up for everyone as "Dutch tax" dashboard if using the Docker image?

It'll show up in a separate folder:

Screenshot 2020-10-13 at 16 55 57

@Eriktesla can you please clarify if it is required to have the full address for start/end or is it suitable to have the name of the geofence/location in the report? many thanks!

@Eriktesla can you please clarify if it is required to have the full address for start/end or is it suitable to have the name of the geofence/location in the report? many thanks!

The geofence _should_ work. It is just a wrapper around the physical address. Now for the tax authorities purposes, maybe they need the address as opposed to ‘Grandma’s house’. Maybe there is a way the dashboard can ignore geofences.

@Eriktesla can you please clarify if it is required to have the full address for start/end or is it suitable to have the name of the geofence/location in the report? many thanks!

The full address for start/end is needed. Geofence addresses like home, work or mother's house are unfortunately not allowed be the Tax authority.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Try2Fly picture Try2Fly  Â·  5Comments

phantom1584 picture phantom1584  Â·  4Comments

bahree picture bahree  Â·  5Comments

olivercho picture olivercho  Â·  4Comments

natrlhy picture natrlhy  Â·  6Comments