Computed Attribute

Giovannic 8 years ago

Hello,
Please, I need you help me
I want to know if it is possible with a computed attribute I can have a custom command sent to the gps example:
If the device entered the geofence send custom command.
And how would I do this?

Thanks

Anton Tananaev 8 years ago

No, it's not possible to send command or do any other action using computed attributes. They are only for calculating attribute values.

Giovannic 8 years ago

Ok, thanks for answering, is it possible for the development team to do it?

Anton Tananaev 8 years ago

Anything is possible. If you need some customisation send an email to support address to discuss it.

Sura 2 years ago

I am not able to access array elements in the computed attribute expression.
it says org.traccar.handler.ComputedAttributesHandler.computeAttribute:142@2:6 undefined property '0' - Property (ComputedAttributesHandler:143 < AttributeResource:63 < ... < OverrideFilter:49 < ...)

Here it the expression,
var list = [1, 2, 3, 4, 5]; list[0]

Anton Tananaev 2 years ago

Is there a reason you're asking it on a 6 year old unrelated thread?