Some events are already mapped. Others are not supported as events in Traccar.
It seems possible to my own surprise.
I implemented following, see Link
And it translated allright.
I wonder what happens if I create computed attributes for each of the events I want translated.
I will test this later today/tomorrow...
Hey Anton, where do I look to see which events are already mapped?
I'm actually surprised that it worked. Those are not standard Traccar events, but if it's good if it works for you.
Tried this instead and it may work too (at least it computed without error on demo4):
if (event == 3)
{ event = 'towing' ;}
else if (event == 6)
{ event = 'direction change' ;}
else if (event == 11)
{ event = 'start' ;}
else if (event == 12)
{ event = 'stop' ;}
else if (event == 15)
{ event = 'pwr ok' ;}
else if (event == 16)
{ event = 'pwr loss' ;}
else if (event == 25)
{ event = 'moving' ;}
else if (event == 26)
{ event = 'stationary' ;}
else if (event == 98)
{ event = 'straight' ;}
else
{ event = event;}
Will try this later with a moving vehicle.
Telic messages contain event-code, which is reflected in the state of the device in traccar. Unfortunately the event is not translated.
Link
In this example state = '26'. Telic describes this as "Motion Sensor "Stationary" ".
Is it possible to translate this by means of computed attributes or is it only possible through modification of the protocol-implementation?
Other telic event codes:
1 pwr on
2 emergency
3 position lock alarm
4 alarm tracking
5 pwr off
6 course change
7 geofence area exit
8 geofence area enter
9 gps fix lost
10 periodic wakeup / routine msg
11 ign on
12 ign off
13 i2 on
14 i2 off
15 i3 (VCC) on
16 i3 (VCC) off
17 i4 on
18 i4 off
21 Analog Input 1 to High 2
22 Analog Input 1 to Low 2
25 Motion Sensor "Motion" Transition from Stationary to Motion
26 Motion Sensor "Stationary"
29 force gprs connection
30 incoming call
32 gprs heartbeat
98 distance
99 cyclic