Ignore specific alarm

Jose B 8 years ago

Hi

Is it possible to configure 3.15 (native) to ignore a specific alarm?

Best Regards

JB

Anton Tananaev 8 years ago

You can configure computed attribute to clear alarm for some values.

Jose B 8 years ago

If I do that, for that specific alarm (example shock"), can I inhibit its notification?
i mean inhibit email / SMS

Regards

JB

Anton Tananaev 8 years ago

Yes, it will completely remove the alarm from everywhere.

Jose B 8 years ago

like this?

alarm== "shock" ? null : alarm
Anton Tananaev 8 years ago

Something like that.

Jose B 8 years ago

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

Anton Tananaev 8 years ago

What is the error?

Jose B 8 years ago

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

Anton Tananaev 8 years ago

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".

Jose B 8 years ago

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

Anton Tananaev 8 years ago

Reverse it like this:

alarm && alarm != 'schock'? alarm : null
Jose B 8 years ago

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 < ...)
Anton Tananaev 8 years ago

OK, last attempt:

alarm ? (alarm != 'shock' ? alarm : null) : null
Jose B 8 years ago

No WARNs logs (anymore), but the alarm still showing on platform

Anyway, thank you

Regards,

JB