Hello
I have 3 oid for Raspberry pi, which shows status of Relay on bord
REL1 Stat: [oid("1.3.6.1.2.1.25.1.21")]
REL2 Stat: [oid("1.3.6.1.2.1.25.1.22")]
REL3 Stat: [oid("1.3.6.1.2.1.25.1.23")]
It work, see real state of all 3 relays. BUT value are 1 or 0. 1 for ON and 0 for OFF
So in dude i se like this:
REL1 Stat: 1
REL2 Stat: 0
REL3 Stat: 0
I like to convert this so when dude receve 1 to be show ON, and when dude receve 0 to show OFF
REL1 Stat: ON
REL2 Stat: OFF
REL3 Stat: OFF
How to do this ?
Also CPU temperature oid shows value like 54237, so this mean temp is 54C. So I want to use only first 2 number to show me in dude. How to cut the rest
Thank you