doubt with computed attributes

MEGATRACKGPS SAS2 years ago

hello greetings, I have a question With the calculated attributes of how they should be configured, for example, if I want to calculate the fuel consumed by the distance traveled, is it possible to do so?

Thank you

Anton Tananaev2 years ago

Yes, please read the documentation:

https://www.traccar.org/computed-attributes/

MEGATRACKGPS SAS2 years ago

If I read it from top to bottom and I can't find it, I must configure

MEGATRACKGPS SAS2 years ago

Could you give me an example? This expression would be functional in theory.

Fuel Consumed = Distance / Fuel Efficiency

MEGATRACKGPS SAS2 years ago

Description text

Anton Tananaev2 years ago

I would use something like this:

totalDistance * 0.0001

Where 0.0001 is the fuel consumption per meter distance.