Engine hours in Traccar Reports API

Jinu Joseph Daniel 8 years ago

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

abyss 8 years ago

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

Jinu Joseph Daniel 8 years ago

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

abyss 8 years ago

Currently It is not implemented.

Jinu Joseph Daniel 8 years ago

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 ?

abyss 8 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.

Jinu Joseph Daniel 8 years ago

Is there any other alternate way for this?

abyss 8 years ago

Currently not. The only way is editing the code.