Driver is not associated in Reports Trips

michal2 years ago

Hello,

our device teltonika supports driver id, I can see it in the event :

2023-02-12 18:51:22	Driver changed	01C35955D50000E8

however I dont see it in Report trips, driver column is empty, is there any other configuration?
I have enabled this function in config file

<entry key='processing.copyAttributes.enable'>true</entry>
<entry key='processing.copyAttributes'>driverUniqueId</entry>
<entry key='processing.copyAttributes'>fuel</entry>

thanks for hints
michal

Anton Tananaev2 years ago
  1. Have you created a driver with that id?
  2. Have you linked it to the device?
  3. Are you sure driver id is present in every position?
michal2 years ago

1.) yes, driver is created
2.) yes, driver is assigned to device
3.) there is additional RFID device connected to teltonika, so I think only one event has "driver change"

michal2 years ago

only when driver in the car connects the key to unlock drive

Anton Tananaev2 years ago

To see driver in reports you need to have driver id in every position.

michal2 years ago

hmm, is there any workaround? it is not in every position, first one is when driver logged his self and second one is just next packet:

{"priority":1,"sat":16,"event":78,"in1":true,"in2":false,"in3":false,"motion":false,"ignition":true,"io81":0,"power":14.47,"io24":0,"tripOdometer":0,"io72":0,"io83":1714,"io84":93,"io85":741,"io87":197327800,"driverUniqueId":"01C35955D50000E8","distance":0.0,"totalDistance":1.97327E8,"fuel":93,"hours":15000}
{“priority":0,"sat":16,"event":0,"in1":true,"in2":false,"in3":false,"motion":true,"ignition":true,"io81":0,"power":13.839,"io24":3,"tripOdometer":14,"io72":0,"io83":1714,"io84":93,"io85":731,"io87":197327800,"distance":16.56,"totalDistance":1.9732701656E8,"fuel":93,"hours":36950}
Anton Tananaev2 years ago

I just realized that your config is incorrect. It should be:

<entry key='processing.copyAttributes.enable'>true</entry>
<entry key='processing.copyAttributes'>driverUniqueId,fuel</entry>
michal2 years ago

ok, thanks, I will update config file
is there any workaround to put driver id to trip report? Or the code must be adjusted

Anton Tananaev2 years ago

Why do you need a workaround? Once you fix the configuration it should work.

michal2 years ago

Hi Anton,

this has been fixed, now I can see drivers in Report Trips, thanks so much ;)