-
Notifications
You must be signed in to change notification settings - Fork 0
/
test-device.sh
executable file
·252 lines (207 loc) · 16.2 KB
/
test-device.sh
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
#!/bin/sh
[ -z "$MQTT_USER" ] && MQTT_USER=user;
[ -z "$MQTT_PASS" ] && MQTT_PASS=pass;
[ -z "$MQTT_HOST" ] && MQTT_HOST=localhost;
[ -z "$MQTT_PORT" ] && MQTT_PORT=1883;
[ -z "$MQTT_BASE" ] && MQTT_BASE="owntracks/$MQTT_USER/simulator1";
[ -z "$MQTT_FRIEND" ] && MQTT_BASE="owntracks/$MQTT_USER/simulator2";
CMD="mosquitto_pub -u $MQTT_USER -P $MQTT_PASS -h $MQTT_HOST -p $MQTT_PORT -t $MQTT_BASE/cmd -q 1"
PUB="mosquitto_pub -u $MQTT_USER -P $MQTT_PASS -h $MQTT_HOST -p $MQTT_PORT -t $MQTT_BASE -r -q 1"
PUBINFO="mosquitto_pub -u $MQTT_USER -P $MQTT_PASS -h $MQTT_HOST -p $MQTT_PORT -t $MQTT_BASE/info -r -q 1"
FRIPUB="mosquitto_pub -u $MQTT_USER -P $MQTT_PASS -h $MQTT_HOST -p $MQTT_PORT -t $MQTT_FRIEND -r -q 1"
FRIPUBNORETAIN="mosquitto_pub -u $MQTT_USER -P $MQTT_PASS -h $MQTT_HOST -p $MQTT_PORT -t $MQTT_FRIEND -q 1"
FRIEVENT="mosquitto_pub -u $MQTT_USER -P $MQTT_PASS -h $MQTT_HOST -p $MQTT_PORT -t $MQTT_FRIEND/event -q 1"
FRIINFO="mosquitto_pub -u $MQTT_USER -P $MQTT_PASS -h $MQTT_HOST -p $MQTT_PORT -t $MQTT_FRIEND/info -r -q 1"
echo $CMD
echo "Running OwnTracks cmd tests against an OwnTracks device"
echo "You may want to follow the results by mosquitto_sub -t '#' | jq"
echo
if [ -z $1 ] || [ "$1" = "corrupt" ] ; then
echo "Testing some corrupt or illegal messages..."
$CMD -f test/array-empty.json
$CMD -f test/object-empty.json
$CMD -f test/cmd-illegal-action.json
$CMD -f test/cmd-without-action.json
fi
if [ -z $1 ] || [ "$1" = "simple" ] ; then
echo "Testing status..."
$CMD -f test/cmd-status.json
echo "Testing dump..."
$CMD -f test/cmd-dump.json
echo "Testing reportLocation..."
$CMD -f test/cmd-reportLocation.json
echo "Testing reportSteps... you may not get an immediate response because the device prompts the user for access to fitness data"
$CMD -f test/cmd-reportSteps.json
fi
if [ -z $1 ] || [ "$1" = "waypoint" ] ; then
echo "Testing waypoints..."
$CMD -f test/cmd-waypoints.json
echo "Testing clearWaypoints..."
$CMD -f test/cmd-clearWaypoints.json
$CMD -f test/cmd-waypoints.json
echo "Testing setWaypoints...(insert)"
$CMD -f test/cmd-setWaypoints.json
$CMD -f test/cmd-waypoints.json
echo "Testing setWaypoints...(update)"
$CMD -f test/cmd-setWaypoints-update.json
$CMD -f test/cmd-waypoints.json
echo "Testing setWaypoints...(delete)"
$CMD -f test/cmd-setWaypoints-delete.json
$CMD -f test/cmd-waypoints.json
echo "Testing setWaypoints illegal timestamp..."
$CMD -f test/cmd-setWaypoints-illegal.json
fi
if [ -z $1 ] || [ "$1" = "configuration" ] ; then
echo "Testing some bad setConfiguration commands..."
$CMD -f test/cmd-setConfiguration-noconfiguration.json
$CMD -f test/cmd-setConfiguration-config-wrongtype.json
$CMD -f test/cmd-setConfiguration-badconfiguration.json
$CMD -f test/cmd-setConfiguration-config-notype.json
echo "Testing setConfiguration lock..."
$CMD -f test/cmd-setConfiguration-lock.json
echo "Testing setConfiguration unlock..."
$CMD -f test/cmd-setConfiguration-unlock.json
fi
if [ -z $1 ] || [ "$1" = "card" ] ; then
echo "Testing cards for me..."
$PUBINFO -f test/card-without-face.json
$PUBINFO -f test/card-without-name.json
$PUBINFO -f test/card-without-all.json
$PUBINFO -f test/card-invalid-b64.json
$PUBINFO -f test/card-vw.json
echo "Testing cards for my friend..."
$FRIINFO -f test/card-volvo.json
fi
if [ -z $1 ] || [ "$1" = "location" ] ; then
echo "Testing bad location message..."
#bad _type
$FRIPUB -m `jo _type=7.7 lat=44.221389 lon=6.64635 tst=\`date +%s\` batt=55 vel=54 alt=53 acc=52 vac=0 tid=S1 m=1 cog=56`
$FRIPUB -m `jo _type=null lat=44.221389 lon=6.64635 tst=\`date +%s\` batt=55 vel=54 alt=53 acc=52 vac=0 tid=S1 m=1 cog=56`
$FRIPUB -m `jo lat=44.221389 lon=6.64635 tst=\`date +%s\` batt=55 vel=54 alt=53 acc=52 vac=0 tid=S1 m=1 cog=56`
#bad tst
$FRIPUB -m `jo _type=location lat=44.221389 lon=6.64635 tst=abc batt=55 vel=54 alt=53 acc=52 vac=0 tid=S1 m=1 cog=56`
$FRIPUB -m `jo _type=location lat=44.221389 lon=6.64635 tst=null batt=55 vel=54 alt=53 acc=52 vac=0 tid=S1 m=1 cog=56`
$FRIPUB -m `jo _type=location lat=44.221389 lon=6.64635 batt=55 vel=54 alt=53 acc=52 vac=0 tid=S1 m=1 cog=56`
#bad lat
$FRIPUB -m `jo _type=location lat=xyz lon=6.64635 tst=\`date +%s\` batt=55 vel=54 alt=53 acc=52 vac=0 tid=S1 m=1 cog=56`
$FRIPUB -m `jo _type=location lat=null lon=6.64635 tst=\`date +%s\` batt=55 vel=54 alt=53 acc=52 vac=0 tid=S1 m=1 cog=56`
$FRIPUB -m `jo _type=location lon=6.64635 tst=\`date +%s\` batt=55 vel=54 alt=53 acc=52 vac=0 tid=S1 m=1 cog=56`
#bad lon
$FRIPUB -m `jo _type=location lat=44.221389 lon=def tst=\`date +%s\` batt=55 vel=54 alt=53 acc=52 vac=0 tid=S1 m=1 cog=56`
$FRIPUB -m `jo _type=location lat=44.221389 lon=null tst=\`date +%s\` batt=55 vel=54 alt=53 acc=52 vac=0 tid=S1 m=1 cog=56`
$FRIPUB -m `jo _type=location lat=44.221389 tst=\`date +%s\` batt=55 vel=54 alt=53 acc=52 vac=0 tid=S1 m=1 cog=56`
#bad lat/lon
$FRIPUB -m `jo _type=location lat=0.0 lon=0.0 tst=\`date +%s\` batt=55 vel=54 alt=53 acc=52 vac=0 tid=S1 m=1 cog=56`
$FRIPUB -m `jo _type=location lat=100.0 lon=0.0 tst=\`date +%s\` batt=55 vel=54 alt=53 acc=52 vac=0 tid=S1 m=1 cog=56`
$FRIPUB -m `jo _type=location lat=100.0 lon=500.0 tst=\`date +%s\` batt=55 vel=54 alt=53 acc=52 vac=0 tid=S1 m=1 cog=56`
#bad acc
$FRIPUB -m `jo _type=location lat=44.221389 lon=6.64635 tst=\`date +%s\` batt=55 vel=54 alt=53 acc=abc vac=0 tid=S1 m=1 cog=56`
$FRIPUB -m `jo _type=location lat=44.221389 lon=6.64635 tst=\`date +%s\` batt=55 vel=54 alt=53 acc=null vac=0 tid=S1 m=1 cog=56`
$FRIPUB -m `jo _type=location lat=44.221389 lon=6.64635 tst=\`date +%s\` batt=55 vel=54 alt=53 vac=0 tid=S1 m=1 cog=56`
#bad vel
$FRIPUB -m `jo _type=location lat=44.221389 lon=6.64635 tst=\`date +%s\` batt=55 vel=abc alt=53 acc=52 vac=0 tid=S1 m=1 cog=56`
$FRIPUB -m `jo _type=location lat=44.221389 lon=6.64635 tst=\`date +%s\` batt=55 vel=null alt=53 acc=52 vac=0 tid=S1 m=1 cog=56`
$FRIPUB -m `jo _type=location lat=44.221389 lon=6.64635 tst=\`date +%s\` batt=55 alt=53 acc=52 vac=0 tid=S1 m=1 cog=56`
$FRIPUB -m `jo _type=location lat=44.221389 lon=6.64635 tst=\`date +%s\` batt=55 vel=-1 alt=53 acc=52 vac=0 tid=S1 m=1 cog=56`
$FRIPUB -m `jo _type=location lat=44.221389 lon=6.64635 tst=\`date +%s\` batt=55 vel=-883 alt=53 acc=52 vac=0 tid=S1 m=1 cog=56`
#bad batt
$FRIPUB -m `jo _type=location lat=44.221389 lon=6.64635 tst=\`date +%s\` batt=abc vel=54 alt=53 acc=52 vac=0 tid=S1 m=1 cog=56`
$FRIPUB -m `jo _type=location lat=44.221389 lon=6.64635 tst=\`date +%s\` batt=null vel=54 alt=53 acc=52 vac=0 tid=S1 m=1 cog=56`
$FRIPUB -m `jo _type=location lat=44.221389 lon=6.64635 tst=\`date +%s\` vel=54 alt=53 acc=52 vac=0 tid=S1 m=1 cog=56`
#bad alt
$FRIPUB -m `jo _type=location lat=44.221389 lon=6.64635 tst=\`date +%s\` batt=55 vel=54 alt=abc acc=52 vac=0 tid=S1 m=1 cog=56`
$FRIPUB -m `jo _type=location lat=44.221389 lon=6.64635 tst=\`date +%s\` batt=55 vel=54 alt=null acc=52 vac=0 tid=S1 m=1 cog=56`
$FRIPUB -m `jo _type=location lat=44.221389 lon=6.64635 tst=\`date +%s\` batt=55 vel=54 acc=52 vac=0 tid=S1 m=1 cog=56`
#bad vac
$FRIPUB -m `jo _type=location lat=44.221389 lon=6.64635 tst=\`date +%s\` batt=55 vel=54 alt=53 acc=52 vac=abc tid=S1 m=1 cog=56`
$FRIPUB -m `jo _type=location lat=44.221389 lon=6.64635 tst=\`date +%s\` batt=55 vel=54 alt=53 acc=52 vac=null tid=S1 m=1 cog=56`
$FRIPUB -m `jo _type=location lat=44.221389 lon=6.64635 tst=\`date +%s\` batt=55 vel=54 alt=53 acc=52 tid=S1 m=1 cog=56`
#bad cog
$FRIPUB -m `jo _type=location lat=44.221389 lon=6.64635 tst=\`date +%s\` batt=55 vel=54 alt=53 acc=52 vac=0 tid=S1 m=1 cog=abc`
$FRIPUB -m `jo _type=location lat=44.221389 lon=6.64635 tst=\`date +%s\` batt=55 vel=54 alt=53 acc=52 vac=0 tid=S1 m=1 cog=null`
$FRIPUB -m `jo _type=location lat=44.221389 lon=6.64635 tst=\`date +%s\` batt=55 vel=54 alt=53 acc=52 vac=0 tid=S1 m=1`
#bad created_at
$FRIPUB -m `jo _type=location lat=44.221389 lon=6.64635 tst=\`date +%s\` created_at=abc batt=55 vel=54 alt=53 acc=52 vac=0 tid=S1 m=1 cog=56`
$FRIPUB -m `jo _type=location lat=44.221389 lon=6.64635 tst=\`date +%s\` created_at=null batt=55 vel=54 alt=53 acc=52 vac=0 tid=S1 m=1 cog=56`
$FRIPUB -m `jo _type=location lat=44.221389 lon=6.64635 tst=\`date +%s\` batt=55 vel=54 alt=53 acc=52 vac=0 tid=S1 m=1 cog=56`
#bad tid
$FRIPUB -m `jo _type=location lat=44.221389 lon=6.64635 tst=\`date +%s\` batt=55 vel=54 alt=53 acc=52 vac=0 tid=1 m=1 cog=56`
$FRIPUB -m `jo _type=location lat=44.221389 lon=6.64635 tst=\`date +%s\` batt=55 vel=54 alt=53 acc=52 vac=0 tid=null m=1 cog=56`
$FRIPUB -m `jo _type=location lat=44.221389 lon=6.64635 tst=\`date +%s\` batt=55 vel=54 alt=53 acc=52 vac=0 m=1 cog=56`
#bad t
$FRIPUB -m `jo _type=location lat=44.221389 lon=6.64635 tst=\`date +%s\` t=1 batt=55 vel=54 alt=53 acc=52 vac=0 tid=S1 m=1 cog=56`
$FRIPUB -m `jo _type=location lat=44.221389 lon=6.64635 tst=\`date +%s\` t=null batt=55 vel=54 alt=53 acc=52 vac=0 tid=S1 m=1 cog=56`
$FRIPUB -m `jo _type=location lat=44.221389 lon=6.64635 tst=\`date +%s\` batt=55 vel=54 alt=53 acc=52 vac=0 tid=S1 m=1 cog=56`
#bad poi
$FRIPUB -m `jo _type=location lat=44.221389 lon=6.64635 tst=\`date +%s\` batt=55 vel=54 alt=53 acc=52 vac=0 tid=S1 m=1 cog=56 poi=1`
$FRIPUB -m `jo _type=location lat=44.221389 lon=6.64635 tst=\`date +%s\` batt=55 vel=54 alt=53 acc=52 vac=0 tid=S1 m=1 cog=56 poi=null`
$FRIPUB -m `jo _type=location lat=44.221389 lon=6.64635 tst=\`date +%s\` batt=55 vel=54 alt=53 acc=52 vac=0 tid=S1 m=1 cog=56`
#bad tag
$FRIPUB -m `jo _type=location lat=44.221389 lon=6.64635 tst=\`date +%s\` batt=55 vel=54 alt=53 acc=52 vac=0 tid=S1 m=1 cog=56 tag=7.7`
$FRIPUB -m `jo _type=location lat=44.221389 lon=6.64635 tst=\`date +%s\` batt=55 vel=54 alt=53 acc=52 vac=0 tid=S1 m=1 cog=56 tag=null`
$FRIPUB -m `jo _type=location lat=44.221389 lon=6.64635 tst=\`date +%s\` batt=55 vel=54 alt=53 acc=52 vac=0 tid=S1 m=1 cog=56`
echo "Testing location message..."
$FRIPUB -m `jo _type=location lat=44.221389 lon=6.64635 tst=\`date +%s\` batt=55 vel=54 alt=53 acc=52 vac=0 tid=S1 m=1 cog=56`
$FRIPUB -m `jo _type=location lat=44.221389 lon=6.64635 tst=\`date +%s\` batt=55 vel=54 alt=53 acc=52 vac=-1 tid=S1 m=1 cog=56`
$FRIPUB -m `jo _type=location lat=44.221389 lon=6.64635 tst=\`date +%s\` batt=55 vel=54 alt=53 acc=52 vac=1 tid=S1 m=1 cog=56`
$FRIPUB -m `jo _type=location lat=44.221389 lon=6.64635 tst=\`date +%s\` batt=55 vel=54 alt=53 acc=52 tid=S1 m=1 cog=56`
$FRIPUB -m `jo _type=location lat=44.221389 lon=6.64635 tst=\`date +%s\` batt=55 vel=54 alt=53 tid=S1 m=1 cog=56`
$FRIPUB -m `jo _type=location lat=44.221389 lon=6.64635 tst=\`date +%s\` batt=55 vel=54 alt=53 tid=S1 m=1 cog=56 poi=interesting tag=ontheroad created_at=\`date +%s\``
$FRIPUBNORETAIN -m `jo _type=lwt tst=1708703389` # ios style lwt
$FRIPUBNORETAIN -m `jo _type=lwt` # Android style lwt
fi
if [ -z $1 ] || [ "$1" = "event" ] ; then
echo "Testing bad event messages..."
$FRIEVENT -m '[]'
#tst type
$FRIEVENT -m `jo _type=transition lat=37.442964 lon=-122.252948 tst=abc wtst=1708705570 rid=49b4ab t=1 tid=S1 acc=5 desc=HIGHSPEED event=enter`
$FRIEVENT -m `jo _type=transition lat=37.442964 lon=-122.252948 tst=null wtst=1708705570 rid=49b4ab t=1 tid=S1 acc=5 desc=HIGHSPEED event=enter`
$FRIEVENT -m `jo _type=transition lat=37.442964 lon=-122.252948 wtst=1708705570 rid=49b4ab t=c tid=S1 acc=5 desc=HIGHSPEED event=enter`
#t type
$FRIEVENT -m `jo _type=transition lat=37.442964 lon=-122.252948 tst=\`date +%s\` wtst=1708705570 rid=49b4ab t=1 tid=S1 acc=5 desc=HIGHSPEED event=enter`
$FRIEVENT -m `jo _type=transition lat=37.442964 lon=-122.252948 tst=\`date +%s\` wtst=1708705570 rid=49b4ab t=null tid=S1 acc=5 desc=HIGHSPEED event=enter`
$FRIEVENT -m `jo _type=transition lat=37.442964 lon=-122.252948 tst=\`date +%s\` wtst=1708705570 rid=49b4ab tid=S1 acc=5 desc=HIGHSPEED event=enter`
#event type
#$FRIEVENT -m `jo _type=transition lat=37.442964 lon=-122.252948 tst=\`date +%s\` wtst=1708705570 rid=49b4ab t=c tid=S1 acc=5 desc=HIGHSPEED event=1`
$FRIEVENT -m `jo _type=transition lat=37.442964 lon=-122.252948 tst=\`date +%s\` wtst=1708705570 rid=49b4ab t=c tid=S1 acc=5 desc=HIGHSPEED event=null`
$FRIEVENT -m `jo _type=transition lat=37.442964 lon=-122.252948 tst=\`date +%s\` wtst=1708705570 rid=49b4ab t=c tid=S1 acc=5 desc=HIGHSPEED`
#desc type
$FRIEVENT -m `jo _type=transition lat=37.442964 lon=-122.252948 tst=\`date +%s\` wtst=1708705570 rid=49b4ab t=c tid=S1 acc=5 desc=HIGHSPEED event=bla`
$FRIEVENT -m `jo _type=transition lat=37.442964 lon=-122.252948 tst=\`date +%s\` wtst=1708705570 rid=49b4ab t=c tid=S1 acc=5 desc=null event=enter`
$FRIEVENT -m `jo _type=transition lat=37.442964 lon=-122.252948 tst=\`date +%s\` wtst=1708705570 rid=49b4ab t=c tid=S1 acc=5 event=enter`
#_type type
$FRIEVENT -m `jo _type=1 lat=37.442964 lon=-122.252948 tst=\`date +%s\` wtst=1708705570 rid=49b4ab t=c tid=S1 acc=5 desc=HIGHSPEED event=enter`
$FRIEVENT -m `jo _type=null lat=37.442964 lon=-122.252948 tst=\`date +%s\` wtst=1708705570 rid=49b4ab t=c tid=S1 acc=5 desc=HIGHSPEED event=enter`
$FRIEVENT -m `jo lat=37.442964 lon=-122.252948 tst=\`date +%s\` wtst=1708705570 rid=49b4ab t=c tid=S1 acc=5 desc=HIGHSPEED event=enter`
#rid type
$FRIEVENT -m `jo _type=transition lat=37.442964 lon=-122.252948 tst=\`date +%s\` wtst=1708705570 rid=1 t=c tid=S1 acc=5 desc=HIGHSPEED event=enter`
$FRIEVENT -m `jo _type=transition lat=37.442964 lon=-122.252948 tst=\`date +%s\` wtst=1708705570 rid=null t=c tid=S1 acc=5 desc=HIGHSPEED event=enter`
$FRIEVENT -m `jo _type=transition lat=37.442964 lon=-122.252948 tst=\`date +%s\` wtst=1708705570 t=c tid=S1 acc=5 desc=HIGHSPEED event=enter`
#tid type
$FRIEVENT -m `jo _type=transition lat=37.442964 lon=-122.252948 tst=\`date +%s\` wtst=1708705570 rid=49b4ab t=c tid=1 acc=5 desc=HIGHSPEED event=enter`
$FRIEVENT -m `jo _type=transition lat=37.442964 lon=-122.252948 tst=\`date +%s\` wtst=1708705570 rid=49b4ab t=c tid=null acc=5 desc=HIGHSPEED event=enter`
$FRIEVENT -m `jo _type=transition lat=37.442964 lon=-122.252948 tst=\`date +%s\` wtst=1708705570 rid=49b4ab t=c acc=5 desc=HIGHSPEED event=enter`
#lat type
$FRIEVENT -m `jo _type=transition lat=abc lon=-122.252948 tst=\`date +%s\` wtst=1708705570 rid=49b4ab t=c tid=S1 acc=5 desc=HIGHSPEED event=enter`
$FRIEVENT -m `jo _type=transition lat=null lon=-122.252948 tst=\`date +%s\` wtst=1708705570 rid=49b4ab t=c tid=S1 acc=5 desc=HIGHSPEED event=enter`
$FRIEVENT -m `jo _type=transition lon=-122.252948 tst=\`date +%s\` wtst=1708705570 rid=49b4ab t=c tid=S1 acc=5 desc=HIGHSPEED event=enter`
#lon type
$FRIEVENT -m `jo _type=transition lat=37.442964 lon=abc tst=\`date +%s\` wtst=1708705570 rid=49b4ab t=c tid=S1 acc=5 desc=HIGHSPEED event=enter`
$FRIEVENT -m `jo _type=transition lat=37.442964 lon=null tst=\`date +%s\` wtst=1708705570 rid=49b4ab t=c tid=S1 acc=5 desc=HIGHSPEED event=enter`
$FRIEVENT -m `jo _type=transition lat=37.442964 tst=\`date +%s\` wtst=1708705570 rid=49b4ab t=c tid=S1 acc=5 desc=HIGHSPEED event=enter`
#wtst type
$FRIEVENT -m `jo _type=transition lat=37.442964 lon=-122.252948 tst=\`date +%s\` wtst=abc rid=49b4ab t=c tid=S1 acc=5 desc=HIGHSPEED event=enter`
$FRIEVENT -m `jo _type=transition lat=37.442964 lon=-122.252948 tst=\`date +%s\` wtst=null rid=49b4ab t=c tid=S1 acc=5 desc=HIGHSPEED event=enter`
$FRIEVENT -m `jo _type=transition lat=37.442964 lon=-122.252948 tst=\`date +%s\` rid=49b4ab t=c tid=S1 acc=5 desc=HIGHSPEED event=enter`
#acc type
$FRIEVENT -m `jo _type=transition lat=37.442964 lon=-122.252948 tst=\`date +%s\` wtst=1708705570 rid=49b4ab t=c tid=S1 acc=a desc=HIGHSPEED event=enter`
$FRIEVENT -m `jo _type=transition lat=37.442964 lon=-122.252948 tst=\`date +%s\` wtst=1708705570 rid=49b4ab t=c tid=S1 acc=null desc=HIGHSPEED event=enter`
$FRIEVENT -m `jo _type=transition lat=37.442964 lon=-122.252948 tst=\`date +%s\` wtst=1708705570 rid=49b4ab t=c tid=S1 desc=HIGHSPEED event=enter`
echo "Testing event messages..."
$FRIEVENT -m `jo _type=transition lat=37.442964 lon=-122.252948 tst=\`date +%s\` wtst=1708705570 rid=49b4ab t=c tid=S1 acc=5 desc=HIGHSPEED event=enter`
$FRIEVENT -m `jo _type=transition lat=37.442964 lon=-122.252948 tst=\`date +%s\` wtst=1708705570 rid=49b4ab t=c tid=S1 acc=5 event=enter`
$FRIEVENT -m `jo _type=transition lat=37.442964 lon=-122.252948 tst=\`date +%s\` wtst=1708705570 rid=49b4ab tid=S1 acc=5 desc=HIGHSPEED event=enter`
$FRIEVENT -m `jo _type=transition lat=37.442964 lon=-122.252948 tst=\`date +%s\` wtst=1708705570 rid=49b4ab t=b tid=S1 acc=5 desc=HIGHSPEED event=enter`
$FRIEVENT -m `jo _type=transition lat=38.442964 lon=-122.252948 tst=\`date +%s\` wtst=1708705570 rid=49b4ab t=c tid=S1 acc=5 desc=HIGHSPEED event=exit`
fi
exit