Configuration file does not apply

ArtemK a year ago

Hello Users,

I have two problems

  1. I want to always get the ignition state in the latest information. I added copyAttribute for that, but I still don't get ignition in every message.
  2. I have a problem that when I get trips for a certain time I have strange data.

For example if I get for 15.01.2025 00:00 - 15.01.2025 23:59 I have trips. But if I get trips for 15.01.2025 00:00 - 16.01.2025 23:59 I have no trips.

15.01.2025 00:00 - 15.01.2025 23:59
15.01.2025 00:00 - 16.01.2025 23:59
In this connection I tried to change the configuration to the following and also restarted the service
But there is no change at all. What could be the problem?

    <entry key='database.driver'>12345</entry>
    <entry key='database.url'>12345r</entry>
    <entry key='database.user'>12345</entry>
    <entry key='database.password'>12345</entry>
    <entry key='processing.copyAttributes.enable'>true</entry>
    <entry key='processing.copyAttributes'>ignition</entry>
    <entry key='report.trip.minimalTripDuration'>30</entry>
    <entry key='report.trip.minimalTripDistance'>100</entry>
    <entry key='report.trip.minimalParkingDuration'>300</entry>
    <entry key='report.trip.minimalNoDataDuration'>3600</entry>
    <entry key='report.trip.useIgnition'>false</entry>
Anton Tananaev a year ago
  1. What version of Traccar are you using?
  2. Is ignition reported by your device or you use computed attributes for it?
ArtemK a year ago
  1. Version 6.5
  2. No, I don't use computed attributes. My device reports ignition but not in every message.
Anton Tananaev a year ago

Remember that those parameters won't apply retroactively. If you just added them, it will only apply to the new data.

ArtemK a year ago

I added them four days ago.
My devices are still not sending ignition information.
About trips I will check it again and post it here.
Thanks for the information.

ArtemK a year ago

Let's go back to my ignition problem.

My task: get ignition in attribute in position
To do this, I added to the config:

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

But I still haven't started getting ignitior in the attribute

My steps to get the ignition value:

  1. I get device at /api/devices/
  2. Next I send request on api/positions/ to get ignition.
  3. I use the id for api/positions/ that I get in the response /api/devices/ (positionId).

But I have some positions that don't have ignition in the attributes field

Is there any way to solve this problem so that ignition attribute is in each position?

Anton Tananaev a year ago

Attribute copying should solve it. Have you restarted the service after changing the configuration? Are you sure you received ignition after enabling the configuration?