aboutsummaryrefslogtreecommitdiff
path: root/templates/short/alarm.vm
blob: effcb8f15823accd66a28e5eb78a6e890154fef3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
#set($subject = "$device.name: alarm!")
#set($alarmName = $position.getString("alarm"))
#if(    $alarmName == "general")
	#set($alarmName = "General")
#elseif($alarmName == "sos")
	#set($alarmName = "SOS")
#elseif($alarmName == "vibration")
	#set($alarmName = "Vibration")
#elseif($alarmName == "movement")
	#set($alarmName = "Movement")
#elseif($alarmName == "lowspeed")
	#set($alarmName = "Low Speed")
#elseif($alarmName == "overspeed")
	#set($alarmName = "Overspeed")
#elseif($alarmName == "fallDown")
	#set($alarmName = "Fall Down")
#elseif($alarmName == "lowPower")
	#set($alarmName = "Low Power")
#elseif($alarmName == "lowBattery")
	#set($alarmName = "Low Battery")
#elseif($alarmName == "fault")
	#set($alarmName = "Fault")
#elseif($alarmName == "powerOff")
	#set($alarmName = "Power Off")
#elseif($alarmName == "powerOn")
	#set($alarmName = "Power On")
#elseif($alarmName == "door")
	#set($alarmName = "Door")
#elseif($alarmName == "lock")
	#set($alarmName = "Lock")
#elseif($alarmName == "unlock")
	#set($alarmName = "Unlock")
#elseif($alarmName == "geofence")
	#set($alarmName = "Geofence")
#elseif($alarmName == "geofenceEnter")
	#set($alarmName = "Geofence Enter")
#elseif($alarmName == "geofenceExit")
	#set($alarmName = "Geofence Exit")
#elseif($alarmName == "gpsAntennaCut")
	#set($alarmName = "GPS Antenna Cut")
#elseif($alarmName == "accident")
	#set($alarmName = "Accident")
#elseif($alarmName == "tow")
	#set($alarmName = "Tow")
#elseif($alarmName == "idle")
	#set($alarmName = "Idle")
#elseif($alarmName == "highRpm")
	#set($alarmName = "High RPM")
#elseif($alarmName == "hardAcceleration")
	#set($alarmName = "Hard Acceleration")
#elseif($alarmName == "hardBraking")
	#set($alarmName = "Hard Braking")
#elseif($alarmName == "hardCornering")
	#set($alarmName = "Hard Cornering")
#elseif($alarmName == "laneChange")
	#set($alarmName = "Lane Change")
#elseif($alarmName == "fatigueDriving")
	#set($alarmName = "Fatigue Driving")
#elseif($alarmName == "powerCut")
	#set($alarmName = "Power Cut")
#elseif($alarmName == "powerRestored")
	#set($alarmName = "Power Restored")
#elseif($alarmName == "jamming")
	#set($alarmName = "Jamming")
#elseif($alarmName == "temperature")
	#set($alarmName = "Temperature")
#elseif($alarmName == "parking")
	#set($alarmName = "Parking")
#elseif($alarmName == "bonnet")
	#set($alarmName = "Bonnet")
#elseif($alarmName == "footBrake")
	#set($alarmName = "Foot Brake")
#elseif($alarmName == "fuelLeak")
	#set($alarmName = "Fuel Leak")
#elseif($alarmName == "tampering")
	#set($alarmName = "Tampering")
#elseif($alarmName == "removing")
	#set($alarmName = "Removing")
#end
$device.name alarm: $alarmName at $dateTool.format("YYYY-MM-dd HH:mm:ss", $event.eventTime, $locale, $timezone)