Where is alarm value Traccar version 3.7

x98318 years ago

Hi Anton,
in another versions of Project Traccar, on the table positions, I found the value of the alarm. how can i get this value over version 3.7? could you help me. thank you

Anton Tananaev8 years ago

What other versions? Alarm value is stored in "attributes" column.

x98318 years ago

Hi Anton,

yes, on the version 3.6 the attributes column looks like this {"alarm":"acc off","ip":"187.217.195.45"}
now, on the version 3.7 the attributes column appears {"ip":"187.216.232.76","distance":22.62,"totalDistance":22.62},
It is possible to recover alarm value?

thank you

Anton Tananaev8 years ago

I need to see original HEX messages for both examples.

x98318 years ago

Hi Anton,
excuse me, This is for gps103.

I have only obtained for the 3.3 traccar version and this is the value:
{"alarm":"low battery","ip":"187.237.239.46"}
696d65693a3836383638333032343632393932392c6c6f7720626174746572792c3136313131323031313235342c2c462c3137313235312e3030302c412c323030332e373635332c4e2c30393931322e333036372c572c35332e36352c3238342e38363b

For version 3.7 I have obtained the following, But I'm not sure they are the same attribute values
696d65693a3836383638333032343133363936362c747261636b65722c3136313131303039323430332c2c462c3031323430312e3030302c412c313930322e373639302c4e2c30393734312e363839342c572c302e30302c302c2c302c302c302e3030252c2c3b

I have seen that these values ​​are now stored in the events table, but they are not saved,

I am using the default configuration:

<entry key='event.enable'>true</entry>
<entry key='event.overspeedHandler'>true</entry>
<entry key='event.overspeed.notRepeat'>true</entry>
<entry key='event.motionHandler'>true</entry>
<entry key='event.geofenceHandler'>true</entry>
<entry key='event.alertHandler'>true</entry>
<entry key='event.ignitionHandler'>true</entry>

Excuse me, do you have any idea?,
thanks for your help

Anton Tananaev8 years ago

First message is "low battery" alarm. Second one is a regular message without any alarms.