Calculate Fuel consumption

jamel3 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

Slawek3 years ago

example if your car spent 5l/100 km

computed tributes

999999-(totalDistance *5)/100000

Euan3 years ago

Hi @Slawek,

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

Many thanks

Slawek3 years ago

In global settings change km/h to mph

Euan3 years ago

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

Slawek3 years ago

right corner - server - attributes - add (+)

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

ask Anthon, maybe I am wrong

Euan3 years ago

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

Thanks again

Slawek3 years ago
Slawek3 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