aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShinryuken <watertext@hotmail.it>2017-11-06 21:50:29 +0100
committerGitHub <noreply@github.com>2017-11-06 21:50:29 +0100
commitf4f77d7003907a9de95beaafd08306fdc2655f42 (patch)
treeae2ed1d2c1a4f29a98ed12a10a04321dbd7e9636
parentc54a12152ccdbe04e4aa9b63b990a00f8702bce4 (diff)
downloadtrackermap-server-f4f77d7003907a9de95beaafd08306fdc2655f42.tar.gz
trackermap-server-f4f77d7003907a9de95beaafd08306fdc2655f42.tar.bz2
trackermap-server-f4f77d7003907a9de95beaafd08306fdc2655f42.zip
New templates for event forwarded messages
-rw-r--r--templates/forwarder/alarm.vm1
-rw-r--r--templates/forwarder/commandResult.vm1
-rw-r--r--templates/forwarder/deviceFuelDrop.vm1
-rw-r--r--templates/forwarder/deviceMoving.vm1
-rw-r--r--templates/forwarder/deviceOffline.vm1
-rw-r--r--templates/forwarder/deviceOnline.vm1
-rw-r--r--templates/forwarder/deviceOverspeed.vm10
-rw-r--r--templates/forwarder/deviceStopped.vm1
-rw-r--r--templates/forwarder/deviceUnknown.vm1
-rw-r--r--templates/forwarder/driverChanged.vm6
-rw-r--r--templates/forwarder/geofenceEnter.vm1
-rw-r--r--templates/forwarder/geofenceExit.vm1
-rw-r--r--templates/forwarder/ignitionOff.vm1
-rw-r--r--templates/forwarder/ignitionOn.vm1
-rw-r--r--templates/forwarder/maintenance.vm1
-rw-r--r--templates/forwarder/test.vm1
-rw-r--r--templates/forwarder/textMessage.vm1
-rw-r--r--templates/forwarder/unknown.vm1
18 files changed, 32 insertions, 0 deletions
diff --git a/templates/forwarder/alarm.vm b/templates/forwarder/alarm.vm
new file mode 100644
index 000000000..389341cf1
--- /dev/null
+++ b/templates/forwarder/alarm.vm
@@ -0,0 +1 @@
+$device.name alarm: $position.getString("alarm") at $dateTool.format("YYYY-MM-dd HH:mm:ss", $event.serverTime, $locale, $timezone)
diff --git a/templates/forwarder/commandResult.vm b/templates/forwarder/commandResult.vm
new file mode 100644
index 000000000..4a327d850
--- /dev/null
+++ b/templates/forwarder/commandResult.vm
@@ -0,0 +1 @@
+$device.name command result received: $position.getString("result") at $dateTool.format("YYYY-MM-dd HH:mm:ss", $event.serverTime, $locale, $timezone)
diff --git a/templates/forwarder/deviceFuelDrop.vm b/templates/forwarder/deviceFuelDrop.vm
new file mode 100644
index 000000000..5e51396d4
--- /dev/null
+++ b/templates/forwarder/deviceFuelDrop.vm
@@ -0,0 +1 @@
+$device.name fuel drop at $dateTool.format("YYYY-MM-dd HH:mm:ss", $event.serverTime, $locale, $timezone)
diff --git a/templates/forwarder/deviceMoving.vm b/templates/forwarder/deviceMoving.vm
new file mode 100644
index 000000000..aaa72ab0d
--- /dev/null
+++ b/templates/forwarder/deviceMoving.vm
@@ -0,0 +1 @@
+$device.name moving at $dateTool.format("YYYY-MM-dd HH:mm:ss", $event.serverTime, $locale, $timezone)
diff --git a/templates/forwarder/deviceOffline.vm b/templates/forwarder/deviceOffline.vm
new file mode 100644
index 000000000..8c4a02335
--- /dev/null
+++ b/templates/forwarder/deviceOffline.vm
@@ -0,0 +1 @@
+$device.name offline at $dateTool.format("YYYY-MM-dd HH:mm:ss", $event.serverTime, $locale, $timezone)
diff --git a/templates/forwarder/deviceOnline.vm b/templates/forwarder/deviceOnline.vm
new file mode 100644
index 000000000..62854feb0
--- /dev/null
+++ b/templates/forwarder/deviceOnline.vm
@@ -0,0 +1 @@
+$device.name online at $dateTool.format("YYYY-MM-dd HH:mm:ss", $event.serverTime, $locale, $timezone)
diff --git a/templates/forwarder/deviceOverspeed.vm b/templates/forwarder/deviceOverspeed.vm
new file mode 100644
index 000000000..f0b03c9e7
--- /dev/null
+++ b/templates/forwarder/deviceOverspeed.vm
@@ -0,0 +1,10 @@
+#if($speedUnit == 'kmh')
+#set($speedValue = $position.speed * 1.852)
+#set($speedString = $numberTool.format("0.0 km/h", $speedValue))
+#elseif($speedUnit == 'mph')
+#set($speedValue = $position.speed * 1.15078)
+#set($speedString = $numberTool.format("0.0 mph", $speedValue))
+#else
+#set($speedString = $numberTool.format("0.0 kn", $position.speed))
+#end
+$device.name exceeds the speed $speedString at $dateTool.format("YYYY-MM-dd HH:mm:ss", $event.serverTime, $locale, $timezone)
diff --git a/templates/forwarder/deviceStopped.vm b/templates/forwarder/deviceStopped.vm
new file mode 100644
index 000000000..c2437b5f6
--- /dev/null
+++ b/templates/forwarder/deviceStopped.vm
@@ -0,0 +1 @@
+$device.name stopped at $dateTool.format("YYYY-MM-dd HH:mm:ss", $event.serverTime, $locale, $timezone)
diff --git a/templates/forwarder/deviceUnknown.vm b/templates/forwarder/deviceUnknown.vm
new file mode 100644
index 000000000..07f39f3a9
--- /dev/null
+++ b/templates/forwarder/deviceUnknown.vm
@@ -0,0 +1 @@
+$device.name status is unknown at $dateTool.format("YYYY-MM-dd HH:mm:ss", $event.serverTime, $locale, $timezone)
diff --git a/templates/forwarder/driverChanged.vm b/templates/forwarder/driverChanged.vm
new file mode 100644
index 000000000..50849df7c
--- /dev/null
+++ b/templates/forwarder/driverChanged.vm
@@ -0,0 +1,6 @@
+#if($driver)
+#set($driverName = $driver.name)
+#else
+#set($driverName = $event.getString("driverUniqueId"))
+#end
+Driver $driverName has changed in $device.name at $dateTool.format("YYYY-MM-dd HH:mm:ss", $event.serverTime, $locale, $timezone)
diff --git a/templates/forwarder/geofenceEnter.vm b/templates/forwarder/geofenceEnter.vm
new file mode 100644
index 000000000..debdbf356
--- /dev/null
+++ b/templates/forwarder/geofenceEnter.vm
@@ -0,0 +1 @@
+$device.name has entered geofence $geofence.name at $dateTool.format("YYYY-MM-dd HH:mm:ss", $event.serverTime, $locale, $timezone)
diff --git a/templates/forwarder/geofenceExit.vm b/templates/forwarder/geofenceExit.vm
new file mode 100644
index 000000000..8553458f7
--- /dev/null
+++ b/templates/forwarder/geofenceExit.vm
@@ -0,0 +1 @@
+$device.name has exited geofence $geofence.name at $dateTool.format("YYYY-MM-dd HH:mm:ss", $event.serverTime, $locale, $timezone)
diff --git a/templates/forwarder/ignitionOff.vm b/templates/forwarder/ignitionOff.vm
new file mode 100644
index 000000000..ddf860413
--- /dev/null
+++ b/templates/forwarder/ignitionOff.vm
@@ -0,0 +1 @@
+$device.name ignition OFF at $dateTool.format("YYYY-MM-dd HH:mm:ss", $event.serverTime, $locale, $timezone)
diff --git a/templates/forwarder/ignitionOn.vm b/templates/forwarder/ignitionOn.vm
new file mode 100644
index 000000000..00b365be9
--- /dev/null
+++ b/templates/forwarder/ignitionOn.vm
@@ -0,0 +1 @@
+$device.name ignition ON at $dateTool.format("YYYY-MM-dd HH:mm:ss", $event.serverTime, $locale, $timezone)
diff --git a/templates/forwarder/maintenance.vm b/templates/forwarder/maintenance.vm
new file mode 100644
index 000000000..554b74400
--- /dev/null
+++ b/templates/forwarder/maintenance.vm
@@ -0,0 +1 @@
+$device.name maintenance is required at $dateTool.format("YYYY-MM-dd HH:mm:ss", $event.serverTime, $locale, $timezone)
diff --git a/templates/forwarder/test.vm b/templates/forwarder/test.vm
new file mode 100644
index 000000000..0311b6203
--- /dev/null
+++ b/templates/forwarder/test.vm
@@ -0,0 +1 @@
+Traccar test message
diff --git a/templates/forwarder/textMessage.vm b/templates/forwarder/textMessage.vm
new file mode 100644
index 000000000..dc42f29f1
--- /dev/null
+++ b/templates/forwarder/textMessage.vm
@@ -0,0 +1 @@
+Text message received from $device.name at $dateTool.format("YYYY-MM-dd HH:mm:ss", $event.serverTime, $locale, $timezone)
diff --git a/templates/forwarder/unknown.vm b/templates/forwarder/unknown.vm
new file mode 100644
index 000000000..fd20b50cc
--- /dev/null
+++ b/templates/forwarder/unknown.vm
@@ -0,0 +1 @@
+Unknown type