How to set traccar not to send position if ignition = off and motion = off?

Don4 years ago

How to set traccar not to send position if ignition = off and motion = off?

I have tons of the following:

{
  "position": {
    "id": 0,
    "attributes": {
      "priority": 0,
      "sat": 18,
      "event": 0,
      "ignition": false,
      "motion": false,
      "workMode": 0,
      "rssi": 4,
      "gpsStatus": 1,
      "batteryLevel": 89,
      "io13": 3,
      "io15": 1000,
      "tripOdometer": 0,
      "odometer": 68116958,
      "io12": 5758,
      "io11": 896211573,
      "io238": 0,
      "io14": 7933975304,
      "distance": 0.0,
      "totalDistance": 0.0,
      "Eco Score": "A",
      "Fuel Used GPS": 5.758,
      "Fuel Rate GPS": 0.03,
      "Signal Level": 4
    },
    "deviceId": 28,
    "type": null,
    "protocol": "teltonika",
    "serverTime": "2020-08-21T13:03:17.88+07:00",
    "deviceTime": "2020-08-21T13:03:10+07:00",
    "fixTime": "2020-08-21T13:03:10+07:00",
    "outdated": false,
    "valid": true,
    "latitude": -5.5877899,
    "longitude": 105.228475,
    "altitude": 13.0,
    "speed": 0.0,
    "course": 246.0,
    "address": "Gebang, Lampung, ID",
    "accuracy": 0.0,
    "network": null
  },
  "device": {
    "id": 28,
    "attributes": {},
    "groupId": 1,
    "name": "B1399SJS",
    "uniqueId": "867060033461332",
    "status": "online",
    "lastUpdate": "2020-08-21T13:03:17.882+07:00",
    "positionId": 130174,
    "geofenceIds": [],
    "phone": "",
    "model": "",
    "contact": "",
    "category": null,
    "disabled": false
  }
}
Don4 years ago

I have tried:

    <entry key='filter.enable'>true</entry>
    <entry key='filter.invalid'>true</entry>
    <entry key='filter.zero'>true</entry>
    <entry key='filter.duplicate'>true</entry>

but no luck

Dibbs4 years ago

Hi Don,

It would be your device that's sending the data - have you looked at the settings in the configurator?

With Default settings a Teltonika device doesn't send many records to the server if Ign = Off & Movement = Off. Unless you have no Sleep mode set in System and in Data Acquisition, Min Period is low for both On Stop.

HIH

Dibs

Don4 years ago

In my system - sleep mode Deep Sleep is now selected and in data acquisition

On stop
Min period is 90
Min saved records is 1
Send Period is 10

Moving
Min period is 30
Min distance is 100
Min angle is 10
Min speed delta is 10
Min saved records is 1
Send period is 10

Any suggestion?

Dibbs4 years ago

Hi Don,

On Moving - I think Min Angle is set too low, something around 45-60 is usually better.

In System - is Static Navigation enabled? If not - enable it & set it to Ignition Source.

Also - in GPRS Settings, what is Open Link Timeout under Record Settings?

Joystick4 years ago

Hi Don,
Increase your send period. I keep my send period and min period the same.