You can add a computed attribute to convert a generic IO value into battery level.
Can you help me with that ?
I can help you by pointing to the documentation:
https://www.traccar.org/computed-attributes/
There's also a bunch of examples on the forum if you search.
I trying all day but i cant resolve :)))))
Is there a reason you have not shared the details?
I tried on this way batterylevel ? io5 : null
Dosent show battery only whe i change "null" to number battery shows
What else have you tried? Please provide full details upfront.
I try on this way too "event ? (event == "5" ? "io5" : null):null".
I dont have any idea anymore.
Have you tried "io5"?
Yes, nothing show. I tried use command io5 ? io5 : null, he show me number :))))
Wait what? Why are you using command and not battery level?
I use all time battery level.
But before 10 min i try Attribute "Command" for fun and show me number. :)
I fix the problem. I remote connect to MySQL and in table tc_attributes ID 2 change TYPE from number to string.
This is dangerous. You should actually parse the string into number instead.
Hello, can someone help me how to show battery percentage from SinoTrack ST-915. Thanks
https://ibb.co/NV3RJSt