@Cristian try on your side also to put the models I will do the same to see if it works without putting the attributes
in my version 5.9 of Traccar it did not work. I would have to try it in the latest version.
Remember that you still need to wait for the new data. It won't change what's already in the database.
apply the change on a gps that was reporting and in motion.
@Anton Tananaev Adding the device model works well for me with the latest version of traccar. thanks for the help
I'm sorry, so just enter the exact model?
type FMA120 or FM1100
Congratulations @syztan Cristian, the icons you inserted are beautiful, not to mention the mini-dashboard next to the search.
Can you enlighten us on how to integrate them into traccar?
the icons can be obtained from here
https://mui.com/material-ui/material-icons/
and then you must modify the code in this file, as a reference I indicate you some lines, you only have to respect the code, you can add or replace part of the code.
https://github.com/traccar/traccar-web/blob/master/modern/src/main/DeviceRow.jsx#L7
https://github.com/traccar/traccar-web/blob/master/modern/src/main/DeviceRow.jsx#L108
Hello, for information at home I have 6 FMB003...
Same version, everything the same... only 1 gave me his battery, I never understood why...
If you have a solution, I'm interested :)
@Jérôme here is the solution https://www.traccar.org/forums/topic/how-show-battery-level/#post-95475 also you need to activate the battery level data in the i/o part of your device.
Thanks for the feedback but still doesn't work for me.
My 6 devices are configured with the same I/O part and only 1 gives me the battery.
Same model and same version...
Updating an old post. The needed computed attribute for my st-904L was: "io8 ? io8 * 1 : null"
Then add it in connections in the device settings page.
Then wait for it to send a new location update and the battery level will appear on the dashboard.
Thank you, could you please provide a screenshot of the configuration?
Hello. I'm using a SinoTrack ST-915 4G device with Traccar docker. The tracker reports battery percentage in the io8 attribute (for example io8 = 32).
I created a computed attribute named batteryLevel of type Number and tried expressions such as io8, io8 ? io8 : null, and attributes.get("io8"). The expression test returns the correct value and the computed attribute is linked to the device.
Computed attributes are enabled in traccar.xml with:
<entry key='processing.computedAttributes.enable'>true</entry>
<entry key='processing.computedAttributes.newInstanceCreation'>true</entry>
However, the battery icon is never displayed in the web UI.
The device details clearly show io8 with the correct battery percentage, but the battery indicator remains unchanged.
My question is: should a computed attribute named batteryLevel automatically drive the battery icon in the UI, or does the battery level have to come directly from the protocol decoder? Also, how can I verify whether the computed attribute result is actually being stored and used by Traccar for the device status?
Thanks.
@Anton I'll try with my three models and I'll get back to you