RRGAS - Gas prices for the US - Status: Updated 12/01/10
v1.6.2 (188.8.131.52) 12/01/10
Small change in website caused parsing section fail.
v1.6.1 (184.108.40.206) 16/07/09
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)
"/" stripped from the brand names so icons will work.
prevention of error if stations.prv file empty
v1.5.1 (220.127.116.11) 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 :rolleyes:
v1.5 (18.104.22.168) 4/10/08
Ability to save current info and recall at a later date if no internet available (1 save per Zipcode)
v1.4 (22.214.171.124) 14/09/08
Calculation of Zipcode from GPS coords supplied via RoadRunner.
Slider added to show progress when updating gas prices
v1.3.1 (126.96.36.199) 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
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
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.
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
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)
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
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)
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.
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