Hi all,
I confess I am somehow too stupid to understand calculated attributes and alerts enough to model my use case. I hope someone can kick-start me with some thoughts.
What I would like to achieve is:
When a tracker has not sent any new update for more than 2 hours, Traccar should send me an email stating something seems to be wrong with the tracker.
As my trackers are configured to send updates every hour, this would indicate something is wrong with the tracker or I do not have gprs connection etc. In any case, I could check what is wrong.
Currently I implemented this by a cron job calling a shell script doing the magic on top of the Traccar log file and this works ok. But I was wondering if something like my use case can be done more "elegant" natively in Traccar.
Many thanks for your help!!
Andi
Next version of Traccar will have this option natively. It's already implemented in the code, so you can even build it from source if you want to try it early.
Excellent, many thanks. I can wait :-)
Andi
Hi Anton, I've built from source and have the Device Inactive option in notifications but would like to know how to set the value/time I would like to trigger the notification.
Example, I would like the notification sent when device is inactive for 5 hours.
Please assist.
You need to set deviceInactivityStart
and deviceInactivityPeriod
device attributes.
Thanks Anton, it is now working as expected.
Hi all,
I confess I am somehow too stupid to understand calculated attributes and alerts enough to model my use case. I hope someone can kick-start me with some thoughts.
What I would like to achieve is:
When a tracker has not sent any new update for more than 2 hours, Traccar should send me an email stating something seems to be wrong with the tracker.
As my trackers are configured to send updates every hour, this would indicate something is wrong with the tracker or I do not have gprs connection etc. In any case, I could check what is wrong.
Currently I implemented this by a cron job calling a shell script doing the magic on top of the Traccar log file and this works ok. But I was wondering if something like my use case can be done more "elegant" natively in Traccar.
Many thanks for your help!!
Andi