Hi
I want to calculate fuel consumption in liters per hour, in order to display in the daily report the fuel consumed over a 24-hour day. I don’t have a fuel level sensor; I only know that the vehicle consumes 3 liters per hour of operation.
I already have the information about the number of hours the vehicle operates per day.
Thank you in advance
You can add a computed attribute for it.
Alright, but which attribute should I use?
fuel, fuelUsed, or fuelConsumption?
10000000 - ((hours / 3600) * 3)
It sounds like fuelUsed is more appropriate in your case. Then you can just do (hours / 3600) * 3.
Alright, thanks — I’ll test that.
Hi
I want to calculate fuel consumption in liters per hour, in order to display in the daily report the fuel consumed over a 24-hour day. I don’t have a fuel level sensor; I only know that the vehicle consumes 3 liters per hour of operation.
I already have the information about the number of hours the vehicle operates per day.
Thank you in advance