traccar / traccar

Traccar GPS Tracking System
https://www.traccar.org
Apache License 2.0
4.95k stars 2.51k forks source link

Feature request: Idling time, moving time, Stopped time calculator implementation #5305

Open vithanagevms opened 2 months ago

vithanagevms commented 2 months ago

I would like to suggest having two position attributes called device_status and status_duration. There are three different statuses: Idle, moving, and stopped. The status_duration is in seconds

  1. Idle: accumulates the status_duration when the device's ignition is on and motion is false. resets if it detects motion or ignition off.
  2. Moving: status_duration accumulates when it detects motion and resets if motion is false.
  3. Stopped: status_duration will accumulate until the ignition is on or motion is true.

Consider if the device went offline while moving when it's back online.

Dave2235 commented 20 hours ago

Is there any update on this? I would like to implement something to show how long the vehicle has been parked for.

tananaev commented 14 hours ago

No update, as you can see.