Convert "5a" to decimal

Tracker 2 years ago

I have a device that sent battery value as 5a which is 90 in decimal if i use an online convertor.
Does anyone know how to convert it to decimal using a computed attribute?

Chris 15 days ago

push
I'd like also to know, how to convert a hex to dec in computed attributes

Regards
Chris

Anton Tananaev 15 days ago

What device are we talking about? Do you have logs sample where you get HEX value.

Chris 15 days ago

Teltonika GH5200
the value in io389 (Button click) is in hex and I'd like to convert it to dec in a computed attribute

Anton Tananaev 15 days ago

Can you please provide log sample.

Chris 15 days ago
2026-05-18 17:45:07  INFO: [T684fb9dd: teltonika < 89.144.197.144] 00000000000000638e010000019e3bc323e801088180d21bc9f8a00000000000000001850010000800f00000500000150300c800004502007164007401018531000700b5000000b600000018000000cdbd2200ce26000043102401823f3b000100f100005aa100000000010000ae29
2026-05-18 17:45:07  INFO: [T684fb9dd: teltonika > 89.144.197.144] 00000001
2026-05-18 17:45:10  INFO: [T684fb9dd] id: 353742375921491, time: 2026-05-18 17:45:05, lat: 46.62212, lon: 14.27049, course: 0.0
2026-05-18 17:45:25  INFO: [T396c3da6: teltonika < 89.144.221.224] 00000000000000618e010000019e3bc366500008817a2e1bc9fb3b01cf01351200000000000e000600ef0000f00000150300c800004501007164000500b5000a00b600070042308500430f9200440000000300f100005aa100c7000000000010073a1130000000000100004a6f
2026-05-18 17:45:25  INFO: [T396c3da6: teltonika > 89.144.221.224] 00000001
2026-05-18 17:45:28  INFO: [T396c3da6] id: 357544373227335, time: 2026-05-18 17:45:22, lat: 46.62219, lon: 14.27032, course: 309.0
Anton Tananaev 14 days ago

Chris, I have checked both samples and none of them have io389 or any other HEX values.