Calculate Fuel consumption

jamel4 years ago

Hi Anton,
My device doesn't return fuel consumption. so i want to use computed attribute to calculate it .
but i didn't find the right expression for it

Slawek4 years ago

example if your car spent 5l/100 km

computed tributes

999999-(totalDistance *5)/100000

Euan4 years ago

Hi @Slawek,

How could we do this for Miles, and would this be included in Reports?

Many thanks

Slawek4 years ago

In global settings change km/h to mph

Euan4 years ago

thanks, where are global settings? Under 'Server' ?

Slawek4 years ago

right corner - server - attributes - add (+)

Distance unit - mi ( i supose its miles)
Speed unit - mph

ask Anthon, maybe I am wrong

Euan4 years ago

thanks, done that. do you know how to calculate fuel spend for reports, our devices dont have a fuel sensor?

Thanks again

Slawek4 years ago
Slawek4 years ago

999999 is your virtual fuel level ( fuel tank) can be milion or more or less
totalDistance - formula take from system
5 - you set how much your car spent fuel per km, miles (if you choos miles in system), set average value for car