Fuelly Forums

Fuelly Forums (https://www.fuelly.com/forums/)
-   Fuelly Web Support and Community News (https://www.fuelly.com/forums/f2/)
-   -   Gallons Saved Counter ... (https://www.fuelly.com/forums/f2/gallons-saved-counter-4055.html)

cfg83 03-13-2007 04:34 PM

Gallons Saved Counter ...
 
Matt -

(This would be for after the EPA thing is settled)

In LA they have had Toyota Prius add signs showing the real-time gallons saved. Why not one for GasSavers? Here's how it would work :

1 - In the middle of the night you would fire up a shell script to gather the latest Gaslog entries into the system. Each entry would be compared to the combined EPA MPG entry for that car in the Garage.

2 - The gallons saved or lost (gotta be honest here!!!) would be added to an aggregate total for the day.

3 - The total would be used in a little Java(script?) program that would have two inputs, the running total for all of the days up until now and the new total for that day. As the day goes by the program would look at the computer's system time and update it's little "gallon's saved" meter. It could be a slowly running gas pump, similar to the one you already have in the upper left corner. For example, if the new total was 240 gallons, then the meter would show the "Running Total + 10" gallons at 1 AM and "Running Total + 100" gallons at 10 AM.

Notes : The program would have to be run at least once for the whole data set to generate the initial running total for the site. The "gas clock" would be depicting gallons saved from the previous day. Some days it would run slow, others maybe a little fast, depending on how many gaslog entries were made the previous day. Standard disclaimers would apply (EPA based, an approximation only, blah blah blah). If people don't like it chewing up CPU time (I don't think it would be a hog), it could have a turn off button.

Bad parts : More work for you. Some GasSavers might feel discouraged from entering their "below EPA" cars. The new EPA figures, however, will bring most people into "GasSaving" status, so I don't think that really matters.

I think it would be a good representation of GasSavers saving gas.

CarloSW2

Hockey4mnhs 03-13-2007 05:53 PM

That sounds awsome i hope we do that to show how much we all save together

zpiloto 03-13-2007 05:54 PM

I think this would be cool. Kinda like the McDonalds hamburger thing. Over 1,000,000 gallons saved:D Provided Matt has time to mess with it and it doesn't bog things down.

repete86 03-13-2007 06:20 PM

They have one on cleanmpg.org. It would be awesome to have one here.

Matt Timion 03-13-2007 10:50 PM

Quote:

Originally Posted by repete86 (Post 43746)
They have one on cleanmpg.org. It would be awesome to have one here.

Well in that case...

I'm working on something for my paying job tomorrow... and then I need to do a quick part in a website I've been working on for months now.

After that, the garage plugin rewrite will begin. I think that this would be a great addition.


All times are GMT -8. The time now is 08:17 AM.

Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2024, vBulletin Solutions, Inc.