How did you calculate it currently?
I don't, I trying to understand how to do it. I'm getting values coming through from the tracker but can't figure out how to get them to show as spent fuel in reports.
I'm confused between Spent Fuel and Fuel Used?
Is the 999999 value coming from the device?
Yes
Then you're not using an official Traccar version. We don't decode fuel level value for Teltonika.
I am. It was my first version that I downloaded from this website.
I tried to set up Computed attribute maybe that's what the value is?
Attribute: Fuel
Expression: io83? 1000000-(io83*0.1):null
Type: Number
But you said it's coming from the device? Can you please elaborate a bit on how you came to that conclusion. I'm sure it wasn't just a random guess.
I only set my CAN reader up yesterday, before that I did not get readings for io83 or Fuel. I added the computed attribute last week and no values were being shown because I had nothing that could read the fuel values from the car.
Well, that's exactly what you programmed your computed attribute to do.
So how do I get this to show in reports as Spent Fuel?
Which report?
Summary
It should show as is. Obviously it requires the data to present in every position.
Should it show as Spent Fuel or Fuel?
I am using a teltonika FMC130 with LV-CAN200 and am trying to get Spent Fuel in reports to show a value.
The ids I have available for fuel are;
83 Fuel Consumed Value in liters
89 Fuel level - Value in percentages
How would I create (if needed) an attribute so the value in shown in the reports for fuel used (is that the same as Spent Fuel?)
Also the final value "fuel=999999.6" is what actually because it it counting down as I use fuel, but I don't know why it shows 999999?