Traccar 3.16 Missing Status Field..

fmoses7 years ago

Just upgraded to 3.16 and the Status field is missing for tlt2h protocol... Before the attributes field had {"status":"AUTOLOW","distance":29.55,"totalDistance":1793145.54,"motion":true} Now I just get the following {"distance":29.55,"totalDistance":1793145.54,"motion":true}

I use the status with computed attributes for alerts n such..

Anton Tananaev7 years ago

Please provide HEX from logs.

I believe Traccar now decodes those alarms into the standard alarm field.

fmoses7 years ago
2018-03-11 03:25:00 DEBUG: [9944927D: 5030 < 205.197.242.102] HEX: 23383631313038303330323135343836234d543631302330303030234155544f4c4f5723310d0a233034313061653164373039244750524d432c3037323530302e30302c412c343234372e393131362c4e2c30383334322e363939352c572c322e31382c312e34372c3131303331382c2c2c412a34420d0a23230d0a
2018-03-11 03:25:00  WARN: org.traccar.processing.ComputedAttributesHandler.computeAttribute@86![0,6]: 'status == 'SOS'? 'sos' : null;' undefined variable status - Variable (... < ComputedAttributesHandler:86 < *:97 < BaseDataHandler:29 < ... < GeocoderHandler:69 < ...)
2018-03-11 03:25:00  WARN: org.traccar.processing.ComputedAttributesHandler.computeAttribute@86![0,6]: 'status == 'BLP'? 'lowBattery' : null;' undefined variable status - Variable (... < ComputedAttributesHandler:86 < *:97 < BaseDataHandler:29 < ... < GeocoderHandler:69 < ...)
2018-03-11 03:25:00  WARN: org.traccar.processing.ComputedAttributesHandler.computeAttribute@86![0,6]: 'status == 'CLP'? 'lowPower' : null;' undefined variable status - Variable (... < ComputedAttributesHandler:86 < *:97 < BaseDataHandler:29 < ... < GeocoderHandler:69 < ...)
2018-03-11 03:25:00  WARN: org.traccar.processing.ComputedAttributesHandler.computeAttribute@86![0,6]: 'status == 'DEF'? 'powerCut' : null;' undefined variable status - Variable (... < ComputedAttributesHandler:86 < *:97 < BaseDataHandler:29 < ... < GeocoderHandler:69 < ...)
2018-03-11 03:25:00  INFO: [9944927D] id: 861108030215486, time: 2018-03-11 03:25:00, lat: 42.79853, lon: -83.71166, speed: 2.2, course: 1.5
Anton Tananaev7 years ago

Those status codes are already decoded by Traccar. You don't need computed attributes anymore.