Engine hours in Traccar Reports API

I am using the summary reports API.
It provides a value called engineHours. From the name it seems it is hours acc was on.
But for one day it is providing large value. I assumed the value might be in seconds. So divided. Still receives incorrect values.
Please help me what does engineHours exactly means and its unit.

Also I want to show the following metrics in reports.
a. In motion time
b. Engine on time
c. Travel time ( In motion plus stop time )

How can I calculate these values from traccar API.
Please help

abyss6 years ago

You understand it correctly it is time while acc was on. It is in milliseconds.

Ok. Got it.. But how to calculate total "in motion time"

abyss6 years ago

Currently It is not implemented.

Ok.. That is one of the very important reports..
And will it be accurate if I take the duration of all trips.
There is API for trips right ?

abyss6 years ago

Yes It will be rather accurate, but you should remember that detecting trips rather costly, takes processor and memory more than summary report.

Is there any other alternate way for this?

abyss6 years ago

Currently not. The only way is editing the code.