Attributes is empty

linkithub10 months ago

anyone can help me attributes is emply device': {'id': 1, 'attributes': {}

<entry key='event.forward.enable'>true</entry>
<entry key='event.forward.url'>http://18.142.xx:xx:5000/traccar</entry>
<entry key='event.forward.header'>Content-Type: application/json</entry> 
{'event': {'id': 1814, 'attributes': {}, 'deviceId': 1, 'type': 'deviceOffline', 'eventTime': '2024-02-21T10:45:20.706+00:00', 'positionId': 0,
 'geofenceId': 0, 'maintenanceId': 0},
 'device': {'id': 1, 'attributes': {}, 'groupId': 0, 'calendarId': 0, 'name': '020225302252', 'uniqueId': 
 '020225302252', 'status': 'offline', 'lastUpdate': '2024-02-21T10:45:20.495+00:00',
 'positionId': 1554, 'phone': None, 'model': None, 'contact': None, 'category': None, 'disabled': False, 'expirationTime': None}}
Anton Tananaev10 months ago

And what are you expecting instead of empty?

linkithub10 months ago

should be like this

"attributes\":{\"ignition\":true,\"Output Status\":false,\"operationState\":true,\"latlonEncrypted\":true,
\"fuelCut\":false,\"powerCut\":false,\"doorStatus\":false,\"charge\":false,\"Engine Status\":true,\"CAN L\":false,\"CAN H\":false,\"adc0\":\"0.00\",
\"adc1\":\"0.00\",\"rssi\":19,\"power\":11.94,\"battery\":2.709,\"satellites\":22,\"odometer\":7000,\"archive\":true,\"distance\":0.0,\"totalDistance\":21.78,
\"motion\":false,\"hours\":10835000},
Anton Tananaev10 months ago

You're confusing positions attributes with device attributes.

linkithub10 months ago

device attributes

Anton Tananaev10 months ago

I don't think you understood what I said. What you provided as an example of expected attributes is position attributes, not device.

linkithub10 months ago

ok i try to understand traccar structure position attributes.
so why position attributes is empty ..

Anton Tananaev10 months ago

They're not. Device attributes are empty.