You can change the notification template.
i change the notification putting this:
#set($subject = "$device.name: online")
<!DOCTYPE html>
<html>
<body>
Device: $device.name<br>
Online<br>
Time: $dateTool.format("YYYY-MM-dd HH:mm:ss", $event.eventTime, $locale, $timezone)<br>
geofence: $geofence.name<br>
Kms: $position.attributes.totalDistance<br>
Point: <a href="$webUrl?eventId=$event.id">#{if}($position.address)$position.address#{else}$position.latitude°, $position.longitude°#{end}</a><br>
<br>
<a href="$webUrl/settings/notifications?token=$token">Unsubscribe</a>
</body>
</html>
And i received the notification:
Device: Peugeot Boxer corta
Online
Time: 2024-09-06 19:16:32
geofence: $geofence.name
Kms: $position.attributes.totalDistance
Point: $position.latitude°, $position.longitude°
Unsubscribe
That's not a geofence notification.
Hola a todos
Tengo un servidor traccar sobre Linux en su última versión y me gustaría poder añadir en las notificaciones de las geocercas el campo distancia total del dispositivo.
Alguno me puede ayudar? No tengo ni idea de cómo proceder la verdad. He estado mirando el foro y no veo nada que me ayude
Muchas gracias!
Hi everyone
I have a traccar server on Linux in its latest version and I would like to be able to add the total distance field of the device to the geofence notifications.
Can anyone help me? I have no idea how to proceed, honestly. I've been looking at the forum and I don't see anything that helps me
Thank you very much!