November 6, 2019 at 1:56 pm
#9522
leo
Keymaster
Hi @cytoplyu@gmail.com, apologies for the delay.
dev_idle and vehicle_dev_idle are in fact cumulative values, dev_idle is the devices hardcoded value that increments until there’s a device change.
while vehicle_dev_idle is a user editable offset from the dev_idle.
In most cases these are identical.
your best bet to get the time that a vehicle spends in Idle is to either use the counters API or the rawdata api with a resampled request.
example:
in both responses the data is returned in seconds.
"dev_idle": 4261.0