Computer Attributes for Alarm

Sunny 3 years ago

Hello -
Thanks for your contribution to open source technologies in Tracccar. I am trying to integrate a a concox asset tracker. Everything seems to work well minus the alarms.

For ex: Here is the vibration alarm in the document

bit7 Vibration Alarm 1:ON 0:OFF

I then set up a computed attribute as follows

vibration ? 0 : 1

This worked but I am receiving an "alarm undefined" next to my device. And when I go to events/ alarms, its showing just as Alarm and no information on what type of alarm it is. Any insights would be helpful . Thanks again!

Anton Tananaev3 years ago

The expression you're using doesn't really make any sense. There's no attribute called "vibration". You have to check the attributes that are actually present in the position.