How to Calculate Fuel and Fuel Consumption using Compute Attribute

RomanDcoz4 years ago

Hello,

First of all thank you for sharing us nice product.
so,We are running traccar for around 6 month and no major issue so far.

I have few question for you regarding Fuel Calculation.

I read some forum topic regarding Fuel and Fuel Consumption, but not getting any realistic value so far.

We have few TK103 device.
SO i tried based on Computed Attribute but seems not working.

Tried below code

Attribute: "Fuel Consumption",
Expression: 9999999 - 17 * totalDistance / 100000,
Type: Number

In State section of traccar web, its showing

fuel : 263810.4 gal
Fuel Consumption : 9996412.58 l/h

Its return too high value.

can you please help me understand this values ?

Slawek4 years ago
Sergiu2 years ago

Attribute: "Fuel",
Expression: 9999999 - 17.00 * totalDistance / 100000,
Type: Number