Spent Fuel Always 0.01

Ghonz2 years ago

in computed attributes Fuel Consumption with expression totalDistance * 0.000107 the result 6.01 Ltr for 56.5KM and this is correct but i can see this result only from computed attributes window, but in the reports spent fuel remain 0.01

Any Idea?

Anton Tananaev2 years ago

Reports use fuel level attribute, not consumption.

Ghonz2 years ago

ok i made another attribute using fuel attribute and the result the same but the report 0.01
if this not valid what you mean by fuel level? is this the remain fuel in the fuel tank? for more and good understanding what i have to do to get result in spent fuel in the report?
thanks

Anton Tananaev2 years ago

How did you test it? Computed attributes are not applied retrospectively.

Ghonz2 years ago

i am monitoring the car to test, the car made 25 km but the spent fuel remain 0.01

Joystick2 years ago

Hi Ghonz,

Since Traccar use fuel level for reports I sorted it by creating a big virtual fuel tank, then used the fuel attribute. If your device communicate the fuel consumed or you have a attribute calculating it you can possibly use something like below.

Attribute: fuel
Expression: Fuel Consumed? 1000000 - Fuel Consumed:null
Type: Number

Ghonz2 years ago

Hi Pete
thank you for reply, but i am not sure what the formula exactly, lets say that the car consume 10 Ltr / 100km what the formula for this case?
Thanks