Page 23 of 45 FirstFirst ... 131415161718192021222324252627282930313233 ... LastLast
Results 221 to 230 of 443

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

  1. #221

  2. #222
    Constant Bitrate
    Join Date
    Jul 2008
    Posts
    152
    Just did a quick google and came up with gasbuddy.com. Not sure if you could get XML info for it tho. What website database is used for the US version? I'm using the DFX skin and it only allows for zip code but i'm thinking into would have to be expanded for the Canadian postal code structure like P6P 6P6.

  3. #223
    Confusion Master
    Auto Apps:loading...
    Enforcer's Avatar
    Join Date
    Sep 2003
    Location
    If you go down to the woods today, You're sure of
    Posts
    14,625
    Had a brief look at that site and could really get it to work for a zipcode, so I can't really use it as it is without a whole of load of complications.

    seeing as a US zipcode is all numbers and a canadian one is letters and numbers, if I did get a site working it could easily be combined in one plugin (hopefully)

  4. #224
    Constant Bitrate
    Join Date
    Jul 2008
    Posts
    152
    Ok I'll keep looking for one. That website has the Canadian info but it doesn't seem like you can do a postal code look up.

  5. #225
    Super Moderator
    Auto Apps:loading...
    JohnWPB's Avatar
    Join Date
    Sep 2005
    Location
    West Palm Beach, Florida
    Posts
    4,700
    Blog Entries
    1
    Ahh ok, I thought you had that part already...

    Its just a matter of sticking this line:

    SDK.Execute "SETVAR;rrgas;" & CStr(pslider)

    in the loop / section where you are updating the pslider code.

    Load gas station one
    pslider = 10%
    SDK.Execute "SETVAR;rrgas;" & CStr(pslider)

    load gas station 2
    pslider = 20%
    SDK.Execute "SETVAR;rrgas;" & CStr(pslider)

    load gas station 3
    pslider = 30%
    SDK.Execute "SETVAR;rrgas;" & CStr(pslider)

    Of course the pslider = 10% is just a representation of the number that needs to be sent as an example.
    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

  6. #226
    Constant Bitrate
    Join Date
    Jul 2008
    Posts
    152
    Ok for the canadian websites I could not find one website for the whole of canada. Each city has their own via that gasbuddy.com links. Not sure if this logic will work....

    Based on the postal code you enter in road runner a reverse look up is done on a site like Canada Post http://www.canadapost.ca/Personal/Tools/Pcl/Range.aspx. From that the City corresponding to that postal code it found. Then a website look up of www.<city>gasprices.com. An that will give the the info. OR how about just making it so the user can just pick what website the want to use as their source. I know I make it sound easy but if only I had the coding skills .

  7. #227
    Confusion Master
    Auto Apps:loading...
    Enforcer's Avatar
    Join Date
    Sep 2003
    Location
    If you go down to the woods today, You're sure of
    Posts
    14,625
    Quote Originally Posted by JohnWPB View Post
    Ahh ok, I thought you had that part already...

    Its just a matter of sticking this line:

    SDK.Execute "SETVAR;rrgas;" & CStr(pslider)

    in the loop / section where you are updating the pslider code.

    Load gas station one
    pslider = 10%
    SDK.Execute "SETVAR;rrgas;" & CStr(pslider)

    load gas station 2
    pslider = 20%
    SDK.Execute "SETVAR;rrgas;" & CStr(pslider)

    load gas station 3
    pslider = 30%
    SDK.Execute "SETVAR;rrgas;" & CStr(pslider)

    Of course the pslider = 10% is just a representation of the number that needs to be sent as an example.

    That's what I was saying and I've already done that and tested it

    it's this bit of what you were saying that was puzzling me

    Quote Originally Posted by john
    That will work to directly execute it, but if you do not use the ReturnCode = 2, RR will just continue on, and when reaching the end of the plugin, will carry out the command, as the ReturnCode tells RR that ahhhh we are done here, no need to fire anything else.

  8. #228
    Confusion Master
    Auto Apps:loading...
    Enforcer's Avatar
    Join Date
    Sep 2003
    Location
    If you go down to the woods today, You're sure of
    Posts
    14,625
    Quote Originally Posted by prodigalsun View Post
    Ok for the canadian websites I could not find one website for the whole of canada. Each city has their own via that gasbuddy.com links. Not sure if this logic will work....

    Based on the postal code you enter in road runner a reverse look up is done on a site like Canada Post http://www.canadapost.ca/Personal/Tools/Pcl/Range.aspx. From that the City corresponding to that postal code it found. Then a website look up of www.<city>gasprices.com. An that will give the the info. OR how about just making it so the user can just pick what website the want to use as their source. I know I make it sound easy but if only I had the coding skills .
    I've had a bit more of a look, there could be a way of working out state and city etc but there are a lot of drawbacks

    1. the stations don't have a zipcode against them, so working out distance would be difficult
    2. The different grades have to be done with seperate searches. (similar to UK)

    3. And finally (and this is the killa) the prices are images and not text

  9. #229
    Constant Bitrate
    Join Date
    Jul 2008
    Posts
    152
    Ok I'll keep on searching for a better source. The prices being text basically eliminates that site as a possibility. For now I guess I'll just have to make it a fav on my browser. I'll post back if and when I find a better one.

  10. #230
    Wants to make it harder monkeyracer's Avatar
    Join Date
    May 2007
    Location
    Lakehood, CO
    Posts
    1,463
    Quote Originally Posted by monkeyracer View Post
    E, I should be able to try and get you the debug log later today, when I get to the car computer (it's morning here now)
    Okay, I am now able to search by gps zip code.

    It ended up being really strange. In the car, I downloaded straight from the link you gave me in the pm, and unzipped it, and checked the version #, so far so good, copied the .dll, registered, and tried it, but it didn't work. I went back to check the version, and it reverted itself back to the previous version.

    So, I deleted the .zip, and the folder, re-downloaded, and tried again, but still the same. The date on the .dll in the .zip was only sometime in august.

    Ok, checked on the laptop, and it had the right version, so I copied it to the car, re-registered the .dll, and now everything works.

    It's just really strange that in the car, following the exact same link, I got a different file than on the laptop.

    Also, when coords are present, does the distance display from them or the center of the zip code?
    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!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •