Show level battery

Matly00621 days ago

Hello everyone, I'm asking for help with a bug I'm having with my Traccar server. I tested the Proxmox version (https://community-scripts.github.io/ProxmoxVE/scripts?id=traccar) successfully with my iOS devices. However, when I installed Debian13+Traccar directly, I can no longer see the battery status, which was possible in the container version. Is there a setting I need to enable? Thanks everyone.
traccar.PNG

Matly00621 days ago

I did a more thorough check, from the container if I go to read the log, of course it shows the battery level

(2025-09-29 10:58:15 INFO: [Tc1a7b1b7: osmand < 1XXXXXXX6] POST / HTTP/1.1\r\nHost: XXXXXX:5055\r\nContent-Type: application/json; charset=utf-8\r\nConnection: keep-alive\r\nAccept: */*\r\nUser-Agent: traccar_client/110 CFNetwork/1568.100.1.2.1 Darwin/24.0.0\r\nContent-Length: 466\r\nAccept-Language: it-IT,it;q=0.9\r\nAccept-Encoding: gzip, deflate\r\n\r\n{"location":{"coords":{"heading":-1,"speed":-1,"latitude":XXX9995368169070348,"longitude":XXXX.2160507817 951,"accuracy":20,"altitude":124.44},"extras":{},"manual":true,"is_moving":true,"_":"&id=80189744&lat=XXX.907035& lon=XXXXXX..06050781795&timestamp=2025-09-29T08:58:14.231Z&","odometer":258795.89999999999,"activity":{"type":"on_foot"},"battery":{"level":0.6999999999999996,"is_charging":false},"timestamp":"2025-09-29T08:58:14.231Z"},"device_id":"XXXX"}),

while the log of the debian_traccar machine seems encrypted, it only shows the gps position, so I don't know if the battery percentage is shown within that data or it simply can't decipher the data and only shows the position which is the only thing clear.

thanks again

Anton Tananaev20 days ago

You're probably using an old version of Traccar. You should upgrade to the latest.