hammond icon indicating copy to clipboard operation
hammond copied to clipboard

Average Fuel Usage Not Calculated on Partial Fillups

Open eroc1990 opened this issue 3 years ago • 5 comments

I’ve recently noticed that my Stats section is not populating MPG statistics. In referencing my refueling, I noticed I’m only seeing stats for full tank fill-ups. The rest of my stats are flatlined at 0.

Would it be possible to change the MPG calculation to base off of total distance travelled between refuels (using the odometer difference as a distance value) so I can still see my mpg over time, even when not filling my car up fully every time?

eroc1990 avatar Oct 07 '21 22:10 eroc1990

MPG is the difference in miles per the difference in gallons. In this case, only the difference of miles is known, and not how much fuel was consumed. Normally, the fuel volume is determined by consecutive full fillups: a known full tank, and then the amount put it when refilled to full would be the difference in gallons here.

nicolemon avatar Nov 15 '21 10:11 nicolemon

I'm not sure if I agree with this assessment. If I am reliably updating my odometer readings (which I am) along with my total fuel added, we should be able to calculate the MPG by taking (last odometer reading - first odometer reading)/total fuel added to vehicle.

eroc1990 avatar Nov 18 '21 22:11 eroc1990

Eric

Let's say you have a 40 gallon tank.

Let's say there are 3 consecutive fillups with odometer readings as 1000, 1110 and 1250 miles. Each time you filled 5 gallons. None of the times the tank was filled full.

How would you calculate the mpg?

Thanks and Regards

Akhil Gupta

On Fri, 19 Nov 2021, 3:58 am Eric, @.***> wrote:

I'm not sure if I agree with this assessment. If I am reliably updating my odometer readings (which I am) along with my total fuel added, we should be able to calculate the MPG by taking (last odometer reading - first odometer reading)/total fuel added to vehicle.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/akhilrex/hammond/issues/41#issuecomment-973324495, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAEMVPUGSRWDZEUQV3LCPDTUMV4W7ANCNFSM5FSK5UJQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

akhilrex avatar Nov 19 '21 00:11 akhilrex

Now that you mention it, I see your point haha. As an alternative suggestion, is there a way that we could manually input our tank size? Then I think these calculations could theoretically be done? Since you would have the total capacity of one full tank.

eroc1990 avatar Nov 19 '21 05:11 eroc1990

Still won't work. In the example I gave you the size of the tank is known.

Thanks and Regards

Akhil Gupta

On Fri, 19 Nov 2021, 11:25 am Eric, @.***> wrote:

Now that you mention it, I see your point haha. As an alternative suggestion, is there a way that we could manually input our tank size? Then I think these calculations could theoretically be done? Since you would have the total capacity of one full tank.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/akhilrex/hammond/issues/41#issuecomment-973775769, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAEMVPWX4SLZIVEDH6ZWW7LUMXRDPANCNFSM5FSK5UJQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

akhilrex avatar Nov 19 '21 10:11 akhilrex