If you just need to convert the value directly, you can use a computed attribute expression like this (where XX is your IO id):
ioXX ? ioXX : null
I just dont get that syntax of JEXL :(
i need to create a var so i can display the value in the popup ans stuff right?
So how can i make "io89" show up as "Fuel XX %" when io89 delivers the fuel tank content in % via canbus
And what do i have to select in "Attribut dropdown"
I gave you exact syntax to use.
I am using FMB 140 , with io89 giving fuel in percentage.This is what i have done to get the fuel in litres for my Mazda .
FYI the fuel tank capacity is 45 litres.
@geofreygachie
perfect finaly i can understand that strange syntax.
but strange for teltonika states io84 is fuel in lieters and io89 is fuel in % already
Stil: How can i create new atributes for io that do not fit any of the preset ones?
like "compressor working time" or "Doot status"
You can type any custom name.
That does not work for us.
When I want to crate "Batteriestatus" / "Batteriestate" for example
and Enter that as attribut and hit save i get error
Column 'attribute' cannot be null - SQLIntegrityConstraintViolationException (... < QueryBuilder:469 < DatabaseStorage:95 < BaseObjectResource:71 < ...)
It probably means you haven't clicked on it in the dropdown.
But the variable i want is new and not in the list
Whatever you type is added to the list automatically. Are you sure you're using the latest version? Maybe you can provide a screen recording?
or would i need to ask stooprt for paid solution ?
i.e. add "io84" mapping as Fuellevel
and "io87" as Total milage CAN-Bus