Odometer tracking

David Cole10 months ago

There seems to be two places that the distance a car has travelled can be set.
Map Screen
On the map screen, which seem to be part of each point.

And
Command Screen
Imgur
https://imgur.com/k7aA4CP
As part of commands.

If I was to keep this correct compared to a car reading, is the command the correct one to use. I assume if I use the command that I can't set it at a point in time, but the time is is executed (I was thinking about taking a feed from fuelly where I manually enter the odometer when I fill up)

Track-trace10 months ago

Your images are not shown

David Cole10 months ago

Yeah, I've got an edit post that I'm getting unauthorised on. Took too many attempts I thin to make them visible.

David Cole10 months ago

Will post it again......

There seems to be two places that the distance a car has travelled can be set.
Map Screen
On the map screen, which seem to be part of each point.

And
Command Screen
As part of commands.

If I was to keep this correct compared to a car reading, is the command the correct one to use. I assume if I use the command that I can't set it at a point in time, but the time is is executed (I was thinking about taking a feed from fuelly where I manually enter the odometer when I fill up)

Anton Tananaev10 months ago

Those two are completely different things.

  1. On the map you can edit server calculated "total distance"
  2. In commands you can set the device value for devices that support this functionality
David Cole10 months ago

So my device might support an odemeter.

But I found with the map position one that if I set it, positions after that point - it didn't feel like it added to it.

Where the commands one, did seem to retain the value and add to it for subsequent points.

Where I'd be taking a feed from somewhere else, generally when i fuel up, which would you recommend?

Anton Tananaev10 months ago

Are you talking about odometer or total distance?

David Cole10 months ago

Isn't the odometer the total distance a car has travelled over it's life.

Is total distance, the total distance tracked in traccar?
If so then odometer is what I want to play with. So that traccar is in sync with the actual because due to gps start up etc, it never will be.

Anton Tananaev10 months ago

See my first comment.

David Cole10 months ago

So if I'm updating the odometer via command and the device didn't support it, what would happen? Would traccar still just store the value, or is odometer purely based on data you receive with position?

So looking at my logs I can see these entries:

INFO: [T2371c37f] id: 864768011370522, time: 2024-01-22 13:59:19, lat: -40.31712, lon: 175.93075, speed: 43.5, course: 237.9

And some of the raw ones, but nothing with odometer in them.

EDIT: Would I expect to see an entry like the id one with odometer every so often...or on every record with an odometer value?

David Cole10 months ago

I've decoded some messages, and no it doesn't look like i get odometer reading:

(864768011370522,DW30,220124,A,4112.72436S,17453.45534E,27.938,031937,48.95,2.50,9,33)(864768011370522,DW30,220124,A,4112.71989S,17453.50992E,26.330,031943,102.78,0.90,9,33)(864768011370522,DW30,220124,A,4112.72619S,17453.54618E,24.628,031947,102.48,0.40,9,33)(864768011370522,DW30,220124,A,4112.73487S,17453.59826E,23.928,031953,104.71,0.30,9,33)

So in this situation, if I run the set odometer command, what will actually happen? It'll just update something in traccar, and it will use that to set an initial value for a calculated total distance?

Anton Tananaev10 months ago

A command is simply sent to the device. Traccar does not have any special logic to handle odometer based on command. It's up to device to report a new value if it changed.

David Cole10 months ago

So should I expect the map value to not update from the value I set the device to, given my device does not seem to give traccar an odometer value in the data?

Anton Tananaev10 months ago

Which map value? Again, which attribute are you talking about?