Announcement

Collapse
No announcement yet.

Festy's Tripmeter plugin [RELEASED]

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Festy's Tripmeter plugin [RELEASED]

    A long time ago Festy developed a tripmeter plugin to record various mileages.
    He released the source code and hasn't been seen on the forums for a while so I have taken it upon myself to convert the plugin to .net and make a few additions such as hibernate awareness and profile mode.
    I will be releasing the plugin on Appmart but thought I'd check first if anyone knows if Festy has any objections to this. I sent him a PM ages ago but no reply. Dont want to let a good plugin die so if no objections I will release it BUT if Festy ever tells me to remove it then I will.

    Edit. No objections so far so I'll release. Get it from the AppMart.

    Milage (yes I know its spelt wrong but thats history) is a plugin for Riderunner. Its been tested against May and June versions but should be ok for older versions too.
    Functionality
    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 and Fuel consumption information are saved to a sqlite database.

    There are 3 trip meters available simultaneously:

    Total meter - this is a cumulative 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. Its also automatically reset
    when comming out of hibernate.

    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.
    For countrys that use a mix (i.e UK) then a special mixedUnits variable allows miles and litres.

    Files:
    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
    fuel.kml - google earth points file.
    Mileage.db3 - sqlite database file.
    Last edited by lambosprit; 06-07-2011, 05:41 PM.

  • #2
    FAQ
    Q1) Why does the tripmeter go up when I'm stopped?
    A. This is because of GPS accuracy. To counter it the is a min mileage for update in the ini file. Set this to a slightly higher number (default is 0.001).

    Q2) Why does the tipmeter suddenly go up alot of miles?
    A. again due to GPS accuracy. There is a max mileage setting in the ini to counter this. set it lower.
    Last edited by lambosprit; 06-10-2011, 06:11 PM.

    Comment


    • #3
      Screenshots

      Screenshots from Carwings lite
      Attached Files
      Last edited by lambosprit; 06-07-2011, 05:45 PM.

      Comment


      • #4
        Certainly a new cool plugin !

        Comment


        • #5
          Originally posted by pierrotm777 View Post
          Certainly a new cool plugin !
          Not a new one just a resurrected one. All credit must go to Festy as he wrote it first. I just converted it.

          Comment


          • #7
            Originally posted by Enforcer View Post
            Does this use exactly the same skin codes as the original?
            I used exactly the same skin codes for that very reason even though he spelled Mileage wrong.

            Comment


            • #9
              I just stumbled across this thread on google, glad to see someone's looking after my old plugin, even if they're ribbing me about my spelling in the process
              I don't get email notifications from this forum for some reason, so only saw your PM when I logged in just then.

              Comment


              • #10
                festy lives!

                Glad to see this converted over and working! I always thought this was a nice simple plugin, and am glad to see it resurrected!
                Front End of Choice: Ride Runner (Is there anything else??? ) & Powered by the DFX5.1 Skin Available in the Mobile App Mart

                My Fiero Build Thread

                Comment


                • #11
                  Ok, I just downloaded it from the appmart. I am having all sorts of problems

                  First, when I copy the skin files to CarWings for testing, and click on add fuel, it errors out as it is looking for MilEage.skin, not Milage.skin, which is the name of the skin file. Simply renaming the 2 mileage skin files took care of that.

                  How do you see what you are entering with the NUMOSK in the text box? If I put the "MILAGE_FUELUNITS" as the label code, it does show, but when going to milage2 it just appends the price after the miles.

                  For instance, if I put 12 gallons at $3.56 a gallon, the label reads "123.56"

                  Is there a way to enter the car's odometer in the plugin so there is a reference point for accuracy? There is a +/- 1 & 10 to adjust it, but adjust it against what?

                  Thanks for the work on this, as it is a really nice little tool for those that do not have fuel economy on the dash, as I do not. I tried numerous times to get this to work back in the day when Festy released it, and was never able to then either
                  Front End of Choice: Ride Runner (Is there anything else??? ) & Powered by the DFX5.1 Skin Available in the Mobile App Mart

                  My Fiero Build Thread

                  Comment


                  • #12
                    Originally posted by festy View Post
                    I just stumbled across this thread on google, glad to see someone's looking after my old plugin, even if they're ribbing me about my spelling in the process
                    I don't get email notifications from this forum for some reason, so only saw your PM when I logged in just then.
                    Sorry about the ribbing But its a good plugin and didn't want to see it die.

                    Comment


                    • #13
                      Originally posted by JohnWPB View Post
                      Simply renaming the 2 mileage skin files took care of that.
                      fixed but I changed the skin file not its name.

                      How do you see what you are entering with the NUMOSK in the text box? If I put the "MILAGE_FUELUNITS" as the label code, it does show, but when going to milage2 it just appends the price after the miles.

                      For instance, if I put 12 gallons at $3.56 a gallon, the label reads "123.56"
                      are you using the milage_P0-9 or milage0-9 in the milage2 skin? For putting in the price you should use the milage_p


                      Is there a way to enter the car's odometer in the plugin so there is a reference point for accuracy? There is a +/- 1 & 10 to adjust it, but adjust it against what?
                      the milage_plus /minus buttons remove units from the total trip. I didn't see the point of this so I added the accuracy adjustment % (see ini file). I found that my mileage was allways out by 3% so I just multiply the gps mileage by this % and its now perfect.

                      Thanks for the work on this, as it is a really nice little tool for those that do not have fuel economy on the dash, as I do not. I tried numerous times to get this to work back in the day when Festy released it, and was never able to then either
                      well hopefully this time we'll crack it

                      Comment


                      • #14
                        Yep, that was the problem! Haaha Sorry! I did not have the _P on the milage2.skin.

                        I am using an NumOSK to enter the fuel data, and not a full screen skin. All is working well, except after pressing OK on the Milage2.skin, the plugin is going back a screen / sending an ESC command. This should be handled in the skin really, and not the plugin, just for flexibility. Is there some way I can override or work around this? As of now, when I press OK, it takes me back to the skins Menu.skin.

                        Also, the MILEAGE_VOLUNITS label does not appear to be working. It contains nothing. Isn't this the label that should contain either Gallons or Liters?

                        I can package the skin I have here up, if you want to have a look at everything, and see if I am doing something stupid on my part

                        EDIT: I just checked the SkinTool and after MILAGE_OK is fired, it is executing an "EXIT" command.
                        Last edited by JohnWPB; 06-12-2011, 08:15 PM.
                        Front End of Choice: Ride Runner (Is there anything else??? ) & Powered by the DFX5.1 Skin Available in the Mobile App Mart

                        My Fiero Build Thread

                        Comment


                        • #15
                          Originally posted by JohnWPB View Post
                          Yep, that was the problem! Haaha Sorry! I did not have the _P on the milage2.skin.
                          Glad that was an easy fix
                          I am using an NumOSK to enter the fuel data, and not a full screen skin. All is working well, except after pressing OK on the Milage2.skin, the plugin is going back a screen / sending an ESC command. This should be handled in the skin really, and not the plugin, just for flexibility.
                          I agree but its what was originally in festy's plugin and if I change it all the current skins will fail when I really wanted backward compatablity. The only way out would be to depricate the command and add a new one.EDIT: I've added a new command called milage_logfuel, does the same as milage_ok but no screen exit.

                          Is there some way I can override or work around this? As of now, when I press OK, it takes me back to the skins Menu.skin.
                          not at the moment

                          Also, the MILEAGE_VOLUNITS label does not appear to be working. It contains nothing. Isn't this the label that should contain either Gallons or Liters?
                          It is. Whats your internationalisation set to in RR. Edit: You are using milage_volunits and not mileage_volunits
                          I can package the skin I have here up, if you want to have a look at everything, and see if I am doing something stupid on my part
                          Can you send me that plus you milage.ini file.
                          Last edited by lambosprit; 06-13-2011, 05:08 PM.

                          Comment

                          Working...
                          X