You can configure computed attribute to clear alarm for some values.
If I do that, for that specific alarm (example shock"), can I inhibit its notification?
i mean inhibit email / SMS
Regards
JB
Yes, it will completely remove the alarm from everywhere.
like this?
alarm== "shock" ? null : alarm
Something like that.
I have setup, but did not work:
Attribute: Alarm
Expression: alarm== "movement" ? null : alarm
Attribute: Alarm
Expression: alarm== "shock" ? null : alarm
appreciate some help, please
JB
What is the error?
Hi,
WARN: org.traccar.processing.ComputedAttributesHandler.computeAttribute@86![0,5]: 'alarm == 'movement'? null : alarm;' undefined variable alarm - Variable (... < ComputedAttributesHandler:86 < *:97 < BaseDataHandler:29 < ... < ExtendedObjectDecoder:74 < ...)
Now I am trying using "alarm ? "shock" : null", but it is not working too.
Regards,
JB
Try:
alarm && alarm == "shock" ? null : alarm
Also, if something doesn't work and you want some help, you need to provide more info than just statement "it is not working".
OK, sorry for that.
Help still needs:
WARN: org.traccar.processing.ComputedAttributesHandler.computeAttribute@86![0,5]: 'alarm && alarm == 'schock'? null : alarm;' undefined variable alarm - Variable (... < ComputedAttributesHandler:86 < *:97 < BaseDataHandler:29 < ... < ExtendedObjectDecoder:70 < ...)
Regards,
JB
Reverse it like this:
alarm && alarm != 'schock'? alarm : null
Not:
2018-04-09 21:38:46 WARN: org.traccar.processing.ComputedAttributesHandler.computeAttribute@86![0,5]: 'alarm && alarm != 'powerOff'? alarm : null;' undefined variable alarm - Variable (... < ComputedAttributesHandler:86 < *:97 < BaseDataHandler:29 < ... < ExtendedObjectDecoder:70 < ...)
OK, last attempt:
alarm ? (alarm != 'shock' ? alarm : null) : null
No WARNs logs (anymore), but the alarm still showing on platform
Anyway, thank you
Regards,
JB
Hi
Is it possible to configure 3.15 (native) to ignore a specific alarm?
Best Regards
JB