How show battery level

Tracking Faso 2 years ago

@Anton I'll try with my three models and I'll get back to you

Tracking Faso 2 years ago

@Cristian try on your side also to put the models I will do the same to see if it works without putting the attributes

Cristian 2 years ago

in my version 5.9 of Traccar it did not work. I would have to try it in the latest version.

Anton Tananaev 2 years ago

Remember that you still need to wait for the new data. It won't change what's already in the database.

Cristian 2 years ago

apply the change on a gps that was reporting and in motion.

Tracking Faso 2 years ago

@Anton Tananaev Adding the device model works well for me with the latest version of traccar. thanks for the help

netluca1 2 years ago

I'm sorry, so just enter the exact model?
type FMA120 or FM1100

netluca1 2 years ago

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?

Cristian 2 years ago

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

Jérôme 2 years ago

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 :)

Tracking Faso 2 years ago

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

Jérôme 2 years ago

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