Icono de batería en protocolo GT06

Ronald12 days ago

I have a GPS personal tracker that works with the GT06 protocol, but when it reports, the device sends the actual battery level and then disappears until it sends the data again later. The question is, is it possible to keep the battery level icon permanently displayed and update the values ​​when the GPS sends them? Is this possible with attributes only? Thanks.

Anton Tananaev12 days ago

You can use attribute copying.

Ronald12 days ago

Hi Anton. Thanks for responding. Could you explain how I use it? I mean, what would the expression be?.

Anton Tananaev12 days ago

Attribute copying doesn't have any expressions.

Hi Ronald, if you can, please post here how you can help me too.
Thank you very much.

Anton Tananaev11 days ago

Have you checked the documentation?

Adriano Miranda10 days ago

On traccar.xml:

<entry key='processing.copyAttributes.enable'>true</entry>
<entry key='processing.copyAttributes'>battery,batteryLevel</entry>

Dont forget to restart the server. :)

Ronald4 days ago

Thank you very much, dear Anton and Adriano. That was definitely the solution. Sergio, the solution that appears in the documentation was revealed by Adriano in this conversation. Thanks everyone.