aboutsummaryrefslogtreecommitdiff
path: root/templates/sms/deviceOverspeed.vm
diff options
context:
space:
mode:
Diffstat (limited to 'templates/sms/deviceOverspeed.vm')
-rw-r--r--templates/sms/deviceOverspeed.vm8
1 files changed, 8 insertions, 0 deletions
diff --git a/templates/sms/deviceOverspeed.vm b/templates/sms/deviceOverspeed.vm
new file mode 100644
index 000000000..63f967bc3
--- /dev/null
+++ b/templates/sms/deviceOverspeed.vm
@@ -0,0 +1,8 @@
+#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
+$device.name exceeds the speed $speedString at $event.serverTime