From bd2a8efaddacbd8d8386ae38f000b633845639ab Mon Sep 17 00:00:00 2001 From: Abyss777 Date: Tue, 21 Feb 2017 15:20:25 +0500 Subject: Implement SMS notifications with help smpp protocol --- templates/sms/deviceOverspeed.vm | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 templates/sms/deviceOverspeed.vm (limited to 'templates/sms/deviceOverspeed.vm') 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 -- cgit v1.2.3