notification batterylevel

chuflo3267 years ago

Hi, how would you like to send a notification by email, when the battery of the device is below 20% as you would have to configure that

Anton Tananaev7 years ago

You can use computed attributes feature.

chuflo3267 years ago

If that proves

Description: nivel
Atributo: Alarma
Expresion: batteryLevel < 20
Tipo: cadena

And tilde the option of notification via mail, type of alarm notification

Something should be missing, probe send test notification and it works perfect

Anton Tananaev7 years ago

I would recommend to use "lowBattery" as value.

chuflo3267 years ago

How would I have to use "lowBattery" in expression to make me work

Anton Tananaev7 years ago

Something like this:

batteryLevel < 20 ? "lowBattery" : null
chuflo3267 years ago

I was looking at the table positions in the attributes field and saved this data

{"batteryLevel":85.0,"distance":37.19,"totalDistance":1854842.08,"ip":"170.51.90.144","motion":true}

What I would like to do is that when batteryLevel is below 20 for example send me a notification
I could not do it, please, if you can guide me

Anton Tananaev7 years ago

I have already provided you a guide.

chuflo3267 years ago

Thank you for what you told me was perfect.
Is there a way that the mail you send me does every certain amount of time ?, and not every time the calculated attribute is true, is not to receive an email every 5 minutes

Anton Tananaev7 years ago

Unfortunately not.

chuflo3267 years ago

OK thanks

Luiz Kill2 years ago

Hi folks. Is there in the recent version of Traccar a way to avoid the repetition of notifications like described by chuflo326? I've set an alarm using batteryLevel attribute as shown by Anton, but it fires multiple times during the day.