Hello traccar team,
I need to setup a "freeze strategy" to avoid repeated alarms like powercut coming from same device in a 30 secs period.
Could you please advise if this expresion in computed attribute do the magic ?
alarm ? ( alarm == 'powerCut' || alarm == 'powerCut' && (serverTime.getTime() - deviceTime.getTime() < 30000) ? null : alarm) : nul
yes. using "test expression" button but not able to replicate real scenario yet
At the very least nul
is not valid.
Hello traccar team,
I need to setup a "freeze strategy" to avoid repeated alarms like powercut coming from same device in a 30 secs period.
Could you please advise if this expresion in computed attribute do the magic ?