aboutsummaryrefslogtreecommitdiff
path: root/templates/sms/deviceOverspeed.vm
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2017-02-21 15:20:25 +0500
committerAbyss777 <abyss@fox5.ru>2017-02-21 15:20:25 +0500
commitbd2a8efaddacbd8d8386ae38f000b633845639ab (patch)
tree80d4454311d9656fe79850ebcdb4131e3cc32634 /templates/sms/deviceOverspeed.vm
parentb6af1e997c125336e2ce9f5056d9502743f22034 (diff)
downloadtrackermap-server-bd2a8efaddacbd8d8386ae38f000b633845639ab.tar.gz
trackermap-server-bd2a8efaddacbd8d8386ae38f000b633845639ab.tar.bz2
trackermap-server-bd2a8efaddacbd8d8386ae38f000b633845639ab.zip
Implement SMS notifications with help smpp protocol
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