Computed attributes, teltonika

lawnmoverman5 years ago

Hello,
I'm pretty new in Traccar so I will be grateful for help with computed attributes. I have Teltonika which have 3 digital inputs. I can see them in status like Di1, Di2, Di3. It is used for doors state (open/close).
How can I make chart or report to see when doors was open/close and how can I make notification whe door is open ?
And one less important thing, can I rename Di1 to Door1 and how ?

Thank You !

Anton Tananaev5 years ago

You can create a computed attribute with custom name and hide the original one.

lawnmoverman5 years ago

For example what to put in expression field if I want Di1 name to Door1 ?

lawnmoverman5 years ago

I got it...
Now question is how to see this attribute in chart or report for some period ?
is this possible or computed attributes are just for real time ?

Anton Tananaev5 years ago

I think you should try it before asking.

lawnmoverman5 years ago

Yes, Anton you are right
I made new attributes names and I can see it in State windows, but only don't know how to see that new computed attributes in Reports/chart.
Is it possible to see chart for a day or week for computed attributes like other preconfigured attributes (power, battery...) ?

Thanks !

I am looking for similar outcome: I would like to see in Excel trip report Computed Attributes
for example (is not working for me):
${trip.startPositionId.fuel} and ${trip.endPositionId.fuel}
${trip.startPositionId.io48} and ${trip.endPositionId.io48}
is this possible?

Anton Tananaev4 years ago

Not without code changes.

Thank you for fast response. I will try to get this out from API.
Thanks for Traccar! It's great!