Calculating total engine hours

Luc Peulen7 years ago

Dear Traccar team,

Thanks for your great software.
For our application I need to track total distance and total engine hours. Total distance can be done by the device distance plus its actual tracking but I'm struggling with the total engine hours. We have a starting value (offset) and whether or not the engine is running is proxied by Io1 being true or false. How can I specify a new attribute called totalEngineHours which is the offset value plus the time Io1 has been true?

Looking forward to hearing from you, best regards,
Luke

Anton Tananaev7 years ago

You would need to implement something similar to distance calculation in Java code.

Luc Peulen7 years ago

Dear Anton,
Thanks for your quick follow up! Would you be able to refer me to some documentation about how and where this is done? As I'm fairly new to this, unfortunately I don't really grasp where exactly to start now.

Anton Tananaev7 years ago

You would need to dig into the code.