Hello Users,
I have two problems
- 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.
- 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>
Remember that those parameters won't apply retroactively. If you just added them, it will only apply to the new data.
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.
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:
- I get device at /api/devices/
- Next I send request on api/positions/ to get ignition.
- 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?
Attribute copying should solve it. Have you restarted the service after changing the configuration? Are you sure you received ignition after enabling the configuration?
Hello Users,
I have two problems
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>