aboutsummaryrefslogtreecommitdiff
path: root/templates/mail
diff options
context:
space:
mode:
Diffstat (limited to 'templates/mail')
-rw-r--r--templates/mail/alarm.vm10
-rw-r--r--templates/mail/commandResult.vm10
-rw-r--r--templates/mail/deviceMoving.vm10
-rw-r--r--templates/mail/deviceOffline.vm10
-rw-r--r--templates/mail/deviceOnline.vm10
-rw-r--r--templates/mail/deviceOverspeed.vm17
-rw-r--r--templates/mail/deviceStopped.vm10
-rw-r--r--templates/mail/deviceUnknown.vm10
-rw-r--r--templates/mail/geofenceEnter.vm10
-rw-r--r--templates/mail/geofenceExit.vm10
-rw-r--r--templates/mail/ignitionOff.vm10
-rw-r--r--templates/mail/ignitionOn.vm10
-rw-r--r--templates/mail/maintenance.vm10
-rw-r--r--templates/mail/unknown.vm7
14 files changed, 144 insertions, 0 deletions
diff --git a/templates/mail/alarm.vm b/templates/mail/alarm.vm
new file mode 100644
index 000000000..1d2b4fdf8
--- /dev/null
+++ b/templates/mail/alarm.vm
@@ -0,0 +1,10 @@
+#set($subject = "$device.name: alarm!")
+<!DOCTYPE html>
+<html>
+<body>
+Device: $device.name<br>
+Alarm: $position.getString("alarm")<br>
+Time: $event.serverTime<br>
+Point: <a href="$webUrl?eventId=$event.id">#{if}($position.address)$position.address#{else}$position.latitude°, $position.longitude°#{end}</a><br>
+</body>
+</html>
diff --git a/templates/mail/commandResult.vm b/templates/mail/commandResult.vm
new file mode 100644
index 000000000..4c330584d
--- /dev/null
+++ b/templates/mail/commandResult.vm
@@ -0,0 +1,10 @@
+#set($subject = "$device.name: command result received")
+<!DOCTYPE html>
+<html>
+<body>
+Device: $device.name<br>
+Result: $position.getString("result")<br>
+Time: $event.serverTime<br>
+Link: <a href="$webUrl?eventId=$event.id">$webUrl?eventId=$event.id</a>
+</body>
+</html>
diff --git a/templates/mail/deviceMoving.vm b/templates/mail/deviceMoving.vm
new file mode 100644
index 000000000..a946753e4
--- /dev/null
+++ b/templates/mail/deviceMoving.vm
@@ -0,0 +1,10 @@
+#set($subject = "$device.name: moving")
+<!DOCTYPE html>
+<html>
+<body>
+Device: $device.name<br>
+Moving<br>
+Time: $event.serverTime<br>
+Point: <a href="$webUrl?eventId=$event.id">#{if}($position.address)$position.address#{else}$position.latitude°, $position.longitude°#{end}</a><br>
+</body>
+</html>
diff --git a/templates/mail/deviceOffline.vm b/templates/mail/deviceOffline.vm
new file mode 100644
index 000000000..ee7e96f05
--- /dev/null
+++ b/templates/mail/deviceOffline.vm
@@ -0,0 +1,10 @@
+#set($subject = "$device.name: offline")
+<!DOCTYPE html>
+<html>
+<body>
+Device: $device.name<br>
+Offline<br>
+Time: $event.serverTime<br>
+Link: <a href="$webUrl?eventId=$event.id">$webUrl?eventId=$event.id</a>
+</body>
+</html>
diff --git a/templates/mail/deviceOnline.vm b/templates/mail/deviceOnline.vm
new file mode 100644
index 000000000..379b5cc80
--- /dev/null
+++ b/templates/mail/deviceOnline.vm
@@ -0,0 +1,10 @@
+#set($subject = "$device.name: online")
+<!DOCTYPE html>
+<html>
+<body>
+Device: $device.name<br>
+Online<br>
+Time: $event.serverTime<br>
+Link: <a href="$webUrl?eventId=$event.id">$webUrl?eventId=$event.id</a>
+</body>
+</html>
diff --git a/templates/mail/deviceOverspeed.vm b/templates/mail/deviceOverspeed.vm
new file mode 100644
index 000000000..7b99c6a06
--- /dev/null
+++ b/templates/mail/deviceOverspeed.vm
@@ -0,0 +1,17 @@
+#set($subject = "$device.name: exceeds the speed")
+#if($speedUnits == 'kmh')
+#set($speedString = $position.speed * 1.852 + ' km/h')
+#elseif($speedUnits == 'mph')
+#set($speedString = $position.speed * 1.15078 + ' mph')
+#else
+#set($speedString = "$position.speed kn")
+#end
+<!DOCTYPE html>
+<html>
+<body>
+Device: $device.name<br>
+Exceeds the speed: $speedString<br>
+Time: $event.serverTime<br>
+Point: <a href="$webUrl?eventId=$event.id">#{if}($position.address)$position.address#{else}$position.latitude°, $position.longitude°#{end}</a><br>
+</body>
+</html>
diff --git a/templates/mail/deviceStopped.vm b/templates/mail/deviceStopped.vm
new file mode 100644
index 000000000..c36e6f1b6
--- /dev/null
+++ b/templates/mail/deviceStopped.vm
@@ -0,0 +1,10 @@
+#set($subject = "$device.name: stopped")
+<!DOCTYPE html>
+<html>
+<body>
+Device: $device.name<br>
+Stopped<br>
+Time: $event.serverTime<br>
+Point: <a href="$webUrl?eventId=$event.id">#{if}($position.address)$position.address#{else}$position.latitude°, $position.longitude°#{end}</a><br>
+</body>
+</html>
diff --git a/templates/mail/deviceUnknown.vm b/templates/mail/deviceUnknown.vm
new file mode 100644
index 000000000..40b8fbfa7
--- /dev/null
+++ b/templates/mail/deviceUnknown.vm
@@ -0,0 +1,10 @@
+#set($subject = "$device.name: status is unknown")
+<!DOCTYPE html>
+<html>
+<body>
+Device: $device.name<br>
+Status is unknown<br>
+Time: $event.serverTime<br>
+Link: <a href="$webUrl?eventId=$event.id">$webUrl?eventId=$event.id</a>
+</body>
+</html>
diff --git a/templates/mail/geofenceEnter.vm b/templates/mail/geofenceEnter.vm
new file mode 100644
index 000000000..cef24723a
--- /dev/null
+++ b/templates/mail/geofenceEnter.vm
@@ -0,0 +1,10 @@
+#set($subject = "$device.name: has entered geofence")
+<!DOCTYPE html>
+<html>
+<body>
+Device: $device.name<br>
+Has entered geofence: $geofence.name<br>
+Time: $event.serverTime<br>
+Point: <a href="$webUrl?eventId=$event.id">#{if}($position.address)$position.address#{else}$position.latitude°, $position.longitude°#{end}</a><br>
+</body>
+</html>
diff --git a/templates/mail/geofenceExit.vm b/templates/mail/geofenceExit.vm
new file mode 100644
index 000000000..e696e6556
--- /dev/null
+++ b/templates/mail/geofenceExit.vm
@@ -0,0 +1,10 @@
+#set($subject = "$device.name: has exited geofence")
+<!DOCTYPE html>
+<html>
+<body>
+Device: $device.name<br>
+Has exited geofence: $geofence.name<br>
+Time: $event.serverTime<br>
+Point: <a href="$webUrl?eventId=$event.id">#{if}($position.address)$position.address#{else}$position.latitude°, $position.longitude°#{end}</a><br>
+</body>
+</html>
diff --git a/templates/mail/ignitionOff.vm b/templates/mail/ignitionOff.vm
new file mode 100644
index 000000000..229405cca
--- /dev/null
+++ b/templates/mail/ignitionOff.vm
@@ -0,0 +1,10 @@
+#set($subject = "$device.name: ignition OFF")
+<!DOCTYPE html>
+<html>
+<body>
+Device: $device.name<br>
+Ignition OFF<br>
+Time: $event.serverTime<br>
+Point: <a href="$webUrl?eventId=$event.id">#{if}($position.address)$position.address#{else}$position.latitude°, $position.longitude°#{end}</a><br>
+</body>
+</html>
diff --git a/templates/mail/ignitionOn.vm b/templates/mail/ignitionOn.vm
new file mode 100644
index 000000000..2aeea0132
--- /dev/null
+++ b/templates/mail/ignitionOn.vm
@@ -0,0 +1,10 @@
+#set($subject = "$device.name: ignition ON")
+<!DOCTYPE html>
+<html>
+<body>
+Device: $device.name<br>
+Ignition ON<br>
+Time: $event.serverTime<br>
+Point: <a href="$webUrl?eventId=$event.id">#{if}($position.address)$position.address#{else}$position.latitude°, $position.longitude°#{end}</a><br>
+</body>
+</html>
diff --git a/templates/mail/maintenance.vm b/templates/mail/maintenance.vm
new file mode 100644
index 000000000..4184d138f
--- /dev/null
+++ b/templates/mail/maintenance.vm
@@ -0,0 +1,10 @@
+#set($subject = "$device.name: maintenance is required")
+<!DOCTYPE html>
+<html>
+<body>
+Device: $device.name<br>
+Maintenance is required<br>
+Time: $event.serverTime<br>
+Point: <a href="$webUrl?eventId=$event.id">#{if}($position.address)$position.address#{else}$position.latitude°, $position.longitude°#{end}</a><br>
+</body>
+</html>
diff --git a/templates/mail/unknown.vm b/templates/mail/unknown.vm
new file mode 100644
index 000000000..566ce0d42
--- /dev/null
+++ b/templates/mail/unknown.vm
@@ -0,0 +1,7 @@
+#set($subject = "Unknown type")
+<!DOCTYPE html>
+<html>
+<body>
+Unknown type
+</body>
+</html>