Milage plugin - trip meter and fuel consumption
Milage is an extension plugin for Roadrunner. It adds multiple trip meters,
fuel consumption calculation and logging, and a few other bits and pieces.
The plugin can record trip specifics - such as distance, end time/date and end coordinates.
These details are saved to a CSV. Fuel consumption information is also saved to CSV.
There are 3 trip meters available simultaneously:
Total meter - this is an accumulative meter that is saved between RR restarts. This is the trip meter that the fuel consumption is calculated from. Resetting this meter also resets the average and max speed, as well as the leg meter.
Trip or Leg meter - this is a sub-meter of the Total meter, useful for following trip notes that state "left in 3.4km" kind of thing, can be reset without effecting the total meter.
Work meter - can be started and stopped at will, useful for recording trips for work etc. Completely independant of the other meters.
Fuel consumption is calculated by inputting the quantity of fuel used. The idea being that when you fill up, you enter the litres/gallons it took, and this is used with the Total meter to record a consumption figure, in L/100km or mpg. Entering a fuel quantity will zero the Total meter, ready to start logging the next tank of fuel.
Both metric and imperial units are supported, based on the isunits line in RR.ini.
tripmeter.ini - records Total and work meter values between invocations of RR
tripmeter.log - CSV of recorded trips, fields are end date, end time, total meter,
leg meter, work meter, end lat, end lon
fuel.log - CSV of fuel consumption, fields are date, time, fuel quantity, distance,
mpg or l/100km, lat, lon
Load the Milage plugin on your Menu.skin with the line "X,Milage".
Don't forget to regsvr32 milage.dll as well.
MILAGE_. MILAGE_CLR, MILAGE_OK - buttons for inputting litres, numeric keypad style
RESETTRIP - reset trip meter to zero
RESETTOTAL - reset total meter to zero
RESETWORK - reset work meter to zero
LOGTRIP - write trip details to CSV log
LOGWORK - start/stop recording distance in work meter
FUELUNITS - litres/gallons entered for consumption calculation
MPG - calculated fuel consumption (in l/100km or MPG)
TRIPMETER - distance in km/miles for trip meter
TRIPTOTAL - distance in km/miles for total meter
WORKMETER - distance in km/miles for work meter
MAXSPEED - maximum speed reached on trip
AVSPEED - Average speed for trip
SPEEDUNITS - "km/h" or "mph" string, depending on units in use
CONSUMPUNITS - "l/100km" or "mpg",depending on units in u
WORKREC - indicator showing whether work meter is on/off
my skins aren't too pretty, but hopefuly they give an idea of how it fits together. If you're using the examle skins, load tripmeter.skin, milage.skin is called for the fuel consumption input.
0.6.0.4 - Change Indicator code to new format
0.6.0.3 - debug/testing version (milage_debug.zip)
0.6.0.1 - fixes the RELOADSKIN crash (thx chuck)
0.6.0 - fixes a few more bugs, and implements a couple of new things like min/max distance per update, tripmeter saving.