Diffrent Types of Responses of the Positions Api Request

Jonas Asum a year ago

Is there a way to specify which attributes I want in the positions API request? I'm specifically interested in the 'blocked' attribute, which I use to determine if email notifications are enabled or disabled. While I receive this attribute when I lock or unlock my device, it's not consistently included in all reports. Is it possible to request specific attributes when querying the API?

This here once:

     "attributes": {
            "type": 19,
            "status": 69,
            "ignition": false,
            "charge": true,
            "blocked": false,
            "batteryLevel": 100,
            "rssi": 70,
            "distance": 0.0,
            "totalDistance": 3.1622274837616228E7,
            "motion": false
        }

and then the other time this here:

 "attributes": {
            "type": 18,
            "sat": 15,
            "distance": 0.1649449976433209,
            "totalDistance": 3.1622272617769234E7,
            "motion": false
        }

is there any way to put the type in, or maybe to make a specific api request so the device sends another type??

Thanks for the help appreciate it!

Anton Tananaev a year ago

Traccar provides you what your device reports to Traccar. It is possible to persist the last known value of a missing attribute though. We call it attribute copying.