Subject: Query Regarding Filter Configuration in Traccar

jose juan2 months ago

Hello,

I am currently testing Traccar along with the Traccar Client application for Android, and I have a question regarding the configuration of data filters. Here is my current setup:

<!-- Data filter configuration -->
<entry key='filter.enable'>true</entry>
<entry key='filter.invalid'>true</entry>    
<entry key='filter.zero'>true</entry>
<entry key='filter.duplicate'>true</entry>  
<entry key='filter.future'>86400</entry>    
<entry key='filter.distance'>10</entry> 
<entry key='filter.accuracy'>30</entry>
<entry key='filter.maxSpeed'>250</entry>

<entry key='coordinates.filter'>true</entry>
<entry key='coordinates.minError'>20</entry>
<entry key='coordinates.maxError'>30000</entry>

I would like to know if it is possible to configure Traccar to update only the attributes of an already registered position when a device is stationary, without duplicating the position. Currently, the location is being filtered correctly to avoid duplicates, but I am interested in continuing to update certain attributes that may change, such as batteryLevel, while the device remains immobile.

I have tried implementing the configuration as follows:

<entry key='filter.skipAttributes.enable'>true</entry>
<entry key='filter.skipAttributes'>batteryLevel</entry>

However, when enabling this configuration, it seems that the distance filters are no longer applied, resulting in duplicate positions.

Could you please advise if there is a way to keep the position fixed and update only specific attributes, such as battery level, without losing the distance filters?

Thank you very much for your help.

Anton Tananaev2 months ago

We never update old positions, so not possible.