Open Abyss777 opened 7 years ago
I think we need to implement it properly. If device reports consumption and not fuel level, we should use that in reports. That's because some devices can report it natively.
You are right, in case device reports average consumption we simply can multiply traveled distance on average consumption, but I think usually it reports instant consumption and we should go through all positions and accumulate it.
And as final fallback we can simply multiply traveled distance on average consumption if it is set in device attributes.
Agree. I think there are some devices that do report average consumption.
Is this feature somehow already implemented?
I liked the idea from https://www.traccar.org/forums/topic/help-with-computed-attributes/ I think that calculated "fuel level"/"spent fuel" based on distance and theoretical consumption might be useful and rather general and might be implemented in code.
There are two options for me:
fuelLevel
Or make tank real and implement manual refuel.