CommandResult with 0,0 coordinate

mason chak5 months ago

I have this config in my server.

<entry key="filter.zero">true</entry>

Devices using the H02 protocol send command results with a 0,0 coordinate, causing the server to filter out these command result messages and resulting in dropped results. What is your advice to prevent dropping command results? I can't remove the zero filter because my devices send a lot of zero positions, and I want to capture command results as well.

Anton Tananaev5 months ago

filter.skipAttributes.enable = true
filter.skipAttributes = result

mason chak5 months ago

When I configure these settings, the command results in 0,0 coordinates being dropped by the zero filter. The configured skipAttributes settings seem to have no effect

https://github.com/traccar/traccar/blob/4d9d78496a0260c6cb43211065a8aafe8cc7e7a9/src/main/java/org/traccar/handler/FilterHandler.java#L209

Anton Tananaev5 months ago

Yeah, looks like there's no other way around it. Maybe you can use coordinates filter instead.