Announcement

Collapse
No announcement yet.

RRGAS - Gas prices for the US - Status: Updated 12/01/10

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

  • RRGAS - Gas prices for the US - Status: Updated 12/01/10

    v1.6.2 (1.6.0.2) 12/01/10
    ---------------------





    Fixed
    -----
    Small change in website caused parsing section fail.



    v1.6.1 (1.6.0.1) 16/07/09
    -------------------------

    Added
    ------

    Command to delete saved files
    Command to save current GPS coords to a file with place name.
    Function to retieve above locations and get prices when online and save info to savedfiles.
    When GPS button pressed if offline the GPS coords will be saved to file as above.
    Labels for fuel type selected and a price by fuel type selected
    Indicators for fueltype selected or sorted by. (Request of Sal.R)


    Fixed

    "/" stripped from the brand names so icons will work.
    prevention of error if stations.prv file empty



    v1.5.1 (1.5.0.1) 10/10/08
    ---------------------
    Some bug fixes.
    Removed reliance on logo for brand name (pointed out by DiggGuy)
    Stopped it missing out a station and then doubling up on first one read (Pointed out by DiggGuy)
    stopped distances of less than 1 mile being treated as further than 9 miles



    v1.5 (1.5.0.0) 4/10/08
    ---------------------
    Ability to save current info and recall at a later date if no internet available (1 save per Zipcode)


    v1.4 (1.4.0.2) 14/09/08
    -----------------------
    Calculation of Zipcode from GPS coords supplied via RoadRunner.
    Slider added to show progress when updating gas prices

    v1.3.1 (1.3.0.1) 09/08/08
    -------------------------
    Change to RRGASSEARCHING command so it actually works when it is supposed to.
    Removal of Sort order resuming to unleaded if distance is chosen on restart

    v1.3 08/08/08
    --------------
    Distance truncated to 1 decimal place
    last 'searched by' is remembered on restart.
    added RRGASNODATAAVAIL trigger.


    First release v1.2 07/08/08
    --------------------------


    Donation(s) - Thank You
    -----------------------

    Chuck
    RANDYH


    Get it from my forum

    Thanks to LostReception for releasing his code

    it's an extension plugin so X,rrgas will needed to be added to menu.skin

    When initially loaded it will look to see if there is a previously saved list of prices, it there is and it is the same as the zipcode in the ini file (this is updated everytime the zipcode is changed) and the date is the same it will used the stored data.


    You can sort the prices by distance or any of the fuel types.

    You can also limit the distance you are willing to travel.



    here is a screenie and a list of skincommands.

    Skinning sholud be fairly easy as I have used mainly similar commands to the old native ones, just replaced the gas part with rrgas. The layout should be the same so you should be able to use the same graphics (with some minor tweaks).

    the .skin is just called gas.skin as opposed to gas_pricefinder.skin


    here is the current skin commands.

    SkinCommands

    Buttons
    rrgas - loads gas.skin
    rrgas_zipcode - brings up NUMOSK to change zipcode
    rrgas_refresh - force refresh of data from web if available
    rrgas_distance - brings up NUMOSK to change maximum distance to travel
    rrgas_distancesort - sort stations by distance
    rrgas_diesel - sort stations by diesel price
    rrgas_premium - sort stations by premium price
    rrgas_plus - sort stations by plus price
    rrgas_unleaded - sort stations by unleaded price
    rrgas_gps - use current Lat and Lon from RoadRunner to generate Zipcode and then get prices. (Added in v1.4)
    rrgas_save - save current info to disk with zipcode as filename (added in v1.5)
    rrgas_load - brings up gas_saved.skin which has list of previously saved info (added in v1.5)
    rrgas_select - select and load previously saved info. (added in v1.5)
    rrgas_delete - delete a saved zipcode (added in v1.6)
    rrgas_savegps - save gps location to a file for retrieval at a later date or on a different PC (will do this automatically when gps button is pressed if no internet available). (added in v1.6)
    rrgas_offline - runs through the saved gps locations file getting prices for those locations and saving the information. (added in v1.6)

    In the following # is (0-19)
    rrgas_#_fdnavigate - Send GPS coords to Freedrive and plot route

    Labels
    rrgas_zipcode - current zipcode
    rrgas_updated - Last time/date a successful update occured
    rrgas_distance - current distance to travel restriction
    rrgas_fuel - current fuel selected (added in v1.6)

    In the following # is (0-19)
    rrgas_#_diesel - price of diesel
    rrgas_#_premium - price of premium
    rrgas_#_plus - price of plus
    rrgas_#_unleaded - price of unleaded
    rrgas_#_distance - distance from zipcode
    rrgas_#_address - number and street of station
    rrgas_#_address2 - town, state and zipcode of the station
    rrgas_#_name - rrgas station brand
    rrgas_#_lon - gas station GPS coordinates (Lon.)
    rrgas_#_lat - gas station GPS coordinates (Lat.)
    rrgas_#_byfuel -returns price of currently selected fuel (added in v1.6)


    Indicators

    rrgas_distance - Indicates sort is by distance (added in v1.6)
    rrgas_diesel - Indicates sort is by diesel price (added in v1.6)
    rrgas_premium - Indicates sort is by by premium price (added in v1.6)
    rrgas_plus - Indicates sort is by by plus price (added in v1.6)
    rrgas_unleaded - Indicates sort is by by unleaded price (added in v1.6)

    In the following # is (0-19)
    rrgas_#_icon - Fuel company logo

    Sliders

    RRGAS - Will show progress as it gets the prices from the web (added in v1.4)

    Commands sent by RRGas

    RRGASSEARCHING - this is sent when RRGas starts looking for new prices - Requested by JohnWPB
    RRGASDONE - this is sent when RRGas has finished searching and parsing the info. - Requested by JohnWPB
    RRGASNODATAAVAIL - this is sent when there is no information for zipcode entered (added in v1.3)
    Attached Files

  • #2
    F.A.Q. Read this post first before asking your question

    Frequently Asked Questions.

    Q. I don't have an internect connection in my car, can I still use this.

    A. Yes, run this on your home PC (obviously you will need to be running RoadRunner on the PC as well), and then copy the stations.prv file to your car PC (must be done on same day).


    Q. I put in a new zipcode but the stations haven't changed or updated.

    A. It is most likely the site does not have any stations near the zipcode you have entered or you do not have a connection to the internet.


    Q. I don't have any Gas Station brand icons.

    A. Look in your RoadRunner folder, there should be a folder called gas which contains all the gif files. If you do not have this check the orginal gas price thread. check attachment at bottom of this post.


    Q. I have the gas folder but I still don't have any Gas Station brand icons.

    A. For the icons to work you will need the latest RoadRunner version released by mitchjs.


    Q. You have done RRGas for the US and UK, any chance of doing it for <Insert Country here>?

    A. If you can find a website for your country that show the prices against individual stations, is searchable by postal code or GPS coords and doesn't show the price as a graphic, then post a link and I will have a look.


    Q. How do I set this up to work with my skin?

    A. To get the same functions that were in the native version

    1. rename gas_pricefinder.skin to gas.skin
    2. Modify all gas related labels to add RRGAS in front
    3. Change image indicators

    for the added features you will need to read the skincommands.txt and add the appropriate commands and maybe edit the graphic files.

    or

    Download the GasSkinConverter attached to this post. Extract to your skinfolder and run GasSkinConverter.exe. It is recommended that you backup your skin folder just in case.


    Q. Does the "Show Map" function work now? for some reason, and it worked flawlessly with gaspricefinder.

    A. the show map depends on your GPS.
    1. Mappoint - (this was what the native went to) No, not sure how to code for this as the original code is internal specific.
    2. FreeDrive - Yes as long as it is my Personal Edition
    3. iG, see posts by John, and MGD (there have been various vesions of GASNAV posted in this thread)

    others nothing that I have done yet.


    Q. Do I need a ZIP.DAT in my rr folder for the zip codes?

    A. No, the plugin accesses a website to do the conversion.


    Q. Would someone care to send me this?

    A. The Terms And Conditions expressly forbid the distribution of this program, please register on my forum to get your copy.


    Q. Anyone have a screen built for <Insert skin name here>? it would be greatly appreciated!

    A. check the skins thread, contact the skinner or you can try and convert it yourself (basic instructions earlier in the F.A.Q.)


    Q. How can I download this wonderful creation?

    A. Register on my forum at www.en4cer.co.uk/forum , when activated go to the downloads section.


    Q. I have registered on your site but am still not activated, why?

    A. I do not monitor the forum registrations 24/7 so it could take hours or possibly a day or two before I can activate you. If I am going away I will normally put this info into the news section of the forum. If however after a few days of registering you have not been activated then contact me via PM here. Using the same username as you do on here will help you get activated quicker.



    Q. The labels seem to be doubled up, why?

    A. It is likely you are running two instances of the plugin. X,rrgas should only be in the menu.skin of your skin or possibly in a file called plugins.txt not anywhere else.

    NB. if you are Running the new Ride Runner it is possible it has loaded it up from your plugins folder and then loaded it from somewhere else (something we have been told shouldn't happen)



    Gas Icons - Unzip to Road Runner
    Attached Files

    Comment


    • #5

      Comment


      • #6
        finally. thank you.

        Comment


        • #7
          Received PM. I'll start looking at this probably tomorrow.
          Is there a way to find E85 prices? Really, I guess the question is, what kinds of fuel are available for searching?
          2007 Chrysler PT Cruiser TE
          Car PC Progress:
          Planning.......[---------X-] 95%
          Parts...........[---------X-] 90%
          Fabrication...[---------X-] 90%
          RR Skin........[---------X-] 95%
          View my
          Worklog
          Road Runner Skins
          Website
          Favorite thread EVER!

          Comment


          • #8
            In preliminary beta testing, it is working flawlessly! Even better than the original, as you can now sort the prices by distance and the type of fuel you are interested in!

            This naively sends the coordinates to Freedirve to navigate to to the station of your choice. With just a little bit of alteration of the original GasNav script, I now have it working to route you with iGuidance as well.

            Fantastic job on this Enforcer!
            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


            • #9
              Originally posted by monkeyracer View Post
              Received PM. I'll start looking at this probably tomorrow.
              Is there a way to find E85 prices? Really, I guess the question is, what kinds of fuel are available for searching?
              From the site used, just the four listed

              Unleaded, Plus, Premium and Diesel.

              Comment


              • #10
                Working excellent. To keep it uncluttered, I made a Options Menu for the sorting. But.........from Los Angeles to Washington, DC only 0.2 some miles. Must be because no Valid gps signal. Also, I have rewritten the GASNAV.exe for the coordinates. Will test it in the car.
                Thanks Enforcer, Great Job.
                Attached Files

                Comment


                • #11
                  Originally posted by MGD View Post
                  Working excellent. . . But.........from Los Angeles to Washington, DC only 0.2 some miles.
                  Originally posted by Enforcer View Post

                  At present it is only done from a zipcode, I will add the facility to get the zipcode from the current GPS coords at a later date.



                  Originally posted by MGD View Post
                  Also, I have rewritten the GASNAV.exe for the coordinates. Will test it in the car.
                  Thanks Enforcer, Great Job.

                  Check with John, as he has also reworked something for it to send coords to IG.


                  Skin looks real nice.




                  PS you have one over on John, for some reason he doesn't have the logos working ?????

                  Comment


                  • #12
                    Originally posted by Enforcer View Post
                    Q. I don't have any Gas Station brand icons.

                    A. Look in your RoadRunner folder, there should be a folder called gas which contains all the gif files. If you do not have this check the orginal gas price thread.
                    Went to the original thread:

                    http://www.mp3car.com/vbulletin/rr-p...e-support.html

                    then to LR's site for the download:

                    http://www.lostreception.com/carpc/gpsgas.html

                    get this:

                    Originally posted by lostreception
                    GPS Gasoline Road Runner Plugin

                    This plugin is on hold, Till then use the native gas function in RoadRunner
                    I have to rework the files and rerelease this plugin for it to be worthwhile. I appreciate all of your support and suggestions. - Lost
                    So I can't get the images. Someone posting thier Gas folder would help...

                    here's my skinned version (without the images):



                    At first, the results are sorted by distance, but pressing any of the fuel grades on the right re-sorts the list:



                    Pressing the top area where it shows the last update will refresh the list, and pressing the area where each gas station is listed will bring up IG (if someone wants to post an updated gasnav.exe)

                    Glad we're getting this back up and running...
                    2007 Chrysler PT Cruiser TE
                    Car PC Progress:
                    Planning.......[---------X-] 95%
                    Parts...........[---------X-] 90%
                    Fabrication...[---------X-] 90%
                    RR Skin........[---------X-] 95%
                    View my
                    Worklog
                    Road Runner Skins
                    Website
                    Favorite thread EVER!

                    Comment


                    • #13
                      Yay! I can finally use gps gas in my carPC!
                      Pico-ITX / XP Home with EWF-HORM / RR v12/02/2009 / Winamp v5.13 / RRMedia v1.2.2

                      Comment


                      • #15
                        Originally posted by Enforcer View Post
                        Re-Read F.A.Q.
                        coo... downloaded... but, still nothing

                        here's my indicator codes:

                        Code:
                        /, I, x, y, w, h, Code;INDICATORCODES
                        I06,126,368,50,50,"rrgas_5_icon"
                        I05,126,311,50,50,"rrgas_4_icon"
                        I04,126,253,50,50,"rrgas_3_icon"
                        I03,126,195,50,50,"rrgas_2_icon"
                        I02,126,137,50,50,"rrgas_1_icon"
                        I01,126,79,50,50,"rrgas_0_icon"
                        did i do something wrong?
                        2007 Chrysler PT Cruiser TE
                        Car PC Progress:
                        Planning.......[---------X-] 95%
                        Parts...........[---------X-] 90%
                        Fabrication...[---------X-] 90%
                        RR Skin........[---------X-] 95%
                        View my
                        Worklog
                        Road Runner Skins
                        Website
                        Favorite thread EVER!

                        Comment

                        Working...
                        X