attributes

ubitec2 years ago

Greetings, I am trying to generate an alert on some GPS devices that have a digital input, the input is marked in traccar with the name io4 and the value when it is connected is 46424,,, with this sytanxys in calculated attributes it responds either TRUE or FALSE when The cable is connected or disconnected, but I want you to put "door" for the door alert, could you tell where to correct it?, thanks

io4 ? io4 == 46424:"door"
Cristian2 years ago

You can try that and see if it works for you

https://ibb.co/GR8vk4R

ubitec2 years ago

Thanks, that gives me an error, but using it as a reference, I managed to make it work with io4 == 46424? "door" : null