Icono de batería en protocolo GT06

Ronald21 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 Tananaev21 days ago

You can use attribute copying.

Ronald21 days ago

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

Anton Tananaev21 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 Tananaev20 days ago

Have you checked the documentation?

Adriano Miranda19 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. :)

Ronald13 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.