Alarm on input

Alf-DK6 days ago

Hi

I need an alarm from my tracker when 12 Volts comes on digital input 2 but only if there is no voltage on digital input 1 (ignition)

I have this string now di2==1?"12v ind":null, but what should I add so that it only makes the alarm if di1 is not high (ignition)

Anton Tananaev6 days ago

Probably something like this:

(di1 == 0 && di2 == 1) ? "12v ind" : null
Alf-DK6 days ago

Thanks

but does the text have to be written differently when it's in version 4.15?

because I can't really get it to work

Alf-DK6 days ago

I found the problem. I hadn't set the GPS to send DI1 in.