Hello, in this moment i'm still using Traccar 6.2 because i can't understand how change computed attributes in Traccar 6.4 and newer for Teltonika device.
I'm using Teltonika FMC920 and the following is one of my computed attibute
Movement - FMC920
alarm
event ? (motion == 1 && ignition == 0 ? "movement" : null) : null
How to modify it for use with Traccar 6.6?
Thank you
Hello Anton,
thank you very much for you fast reply.
I wrote it wrong in the previous post, the calculated attribute works in traccar 6.2 and earlier.
event ? (motion == 1 && ignition == 0 ? "movement" : null) : null
So i understand point 1 and i will check it, but how can modify computed attribute that works in 6.2 for using in 6.6?
Thank you very much
You shouldn't modify anything. You should check first what attributes you're getting.
Ok well. But in your opinin, why does it work in 6.2 although attributes or comparisons aren't correct?
To provide an answer, I'm requesting this information from you.
may i kindly ask yoy what steps i need to take to analyze the problem?
@Andres Petrillo
Thanks, this sort of cleared it up for me as well. Just need to confirm below.
I have a computed attribute linked to my main group and have teltonika and meitrack devices in the same group.
Teltonika devices include ignition flag in messages but for meitrack devices I use computed attribute to flag it for various reasons.
Using example 1 makes ignition flag for teltonika device disappear but example 2 work. Have I done it correctly?
Example 1
Attribute: ignition
Expression:
protocol=="meitrack"?power?power>="10":null:null
Example 2
Attribute: ignition
protocol=="meitrack"?power?power>="10":null:(ignition?ignition:null)
Thanks for the help