Script to start the Volt
Grab our Forum Feed

+ Reply to Thread
Page 2 of 8 FirstFirst 1 2 8 LastLast
Results 11 to 20 of 79

Thread: Script to start the Volt

  1. #11
    Join Date
    Dec 2010
    Location
    NW suburban Chicago
    Posts
    254

    Default

    Quote Originally Posted by Ohm View Post
    I've hacked together a small script to emulate the OnStar's remote start feature.
    any idea why the temp thing is not working??? Seems to have picked up the current temp and properly displays my preferred lower and upper limits

    http://www.weather.gov/xml/current_obs/KMDW.xml -o "C:\curl\Current_Weather.xml"

    Temp within range for preconditioning: current temp (65.0) lower than 60 or higher than 85
    -------
    VIN # B2365 Chicago suburbs (purchased 4/15/2011 in Austin, Texas)
    240V Leviton Evr-Green 160 Home Charging Station installed 11/4/2011
    DASHDAQ


  2. #12
    Join Date
    Nov 2011
    Location
    State College, PA
    Posts
    56

    Default

    Indeed you're correct. It was a bug I missed due to the cold winter temps combined with VBScript's implicit conversion process. I've corrected the error and updated the attachment in the first post.

    Thanks for the note!

  3. #13
    Join Date
    Dec 2010
    Location
    NW suburban Chicago
    Posts
    254

    Default

    can you take a look again at the temp script. still does not seem to be working.

    "c:\curl\curl.exe" -s --insecure -b "C:\curl\Cookies.txt" -c "C:\curl\Cookies.txt" -q http://www.weather.gov/xml/current_obs/KORD.xml -o "C:\curl\Current_Weather.xml"
    Temp within range for preconditioning: current temp (63.0) lower than 60 or higher than 85
    -------
    VIN # B2365 Chicago suburbs (purchased 4/15/2011 in Austin, Texas)
    240V Leviton Evr-Green 160 Home Charging Station installed 11/4/2011
    DASHDAQ


  4.  

    Advertisement

  5. #14
    Join Date
    Apr 2011
    Location
    Northern Virginia
    Posts
    887

    Default

    James sent me an update on the original file modify the following:

    A quick round statement before the "If temp >" seems to fix it.

    Insert on a new line above the "If temp >":

    temp = round(temp)
    05/02/2011 (1100) Order placed
    10/22/2011 V EV Day
    18" Touren TR2 with Pirelli Runflats, HID's and LED's all round
    LED rear Reflector MOD
    Volt Embossed Headrests
    Carbon Fiber Dash Kit

  6. #15
    Join Date
    Aug 2011
    Location
    North East Ohio
    Posts
    203

    Default

    The round fix has been working good for me this last week.
    Silver Ice #C4722 Oct 1, 2012

  7. #16
    Join Date
    Nov 2011
    Location
    State College, PA
    Posts
    56

    Default

    I'm pretty sure my logic in that area was just all around wrong. I've revised the overall logic, as well as incorporated the round function. Based on my (latest) tests, the round isn't needed - but I figure it can't hurt. I'm pretty sure it would do the same thing as the IsNumeric() change I put in yesterday to force it to compare as a numeric value.

    Version 2.2 now updated in first post.

  8. #17

    Default Script lessons learned - my system is Windows XP 32 bit

    I needed the right curl version plus some libraries:
    http://www.paehl.com/open_source/?do...2_ssl_sspi.zip
    http://www.paehl.com/open_source/?download=libssl.zip

    NOTE: All you need is the right "curl.exe" - YOU DO NOT NEED TO DO ANY COMPLEX INSTALLATION!!! JUST THE CURL.EXE in a folder!!!

    I put the library and curl.exe in the same folder: C:\curl
    NOTE: THIS IS ALL YOU NEED!!! (Plus the script of course)

    Notes on ID and password and PIN: I had forgotten that the phone app uses that 4-digit PIN and was trying to use my password twice. The ID is your onstar ID, the password is the password for the Onstar website, and the PIN is the 4-digit number you use on the phone app. At least this is how I remember it.

    Notes on using the script - I got confused on what "True" and "False" means for the various prompts. Here are some notes (I do better when I ignore the text in the script after the setting so I dont show it below):

    Run_when_unplugged = False

    >If this is set to True, it will start the car even if the car is unplugged. If it's set to False, it will only start if it's plugged in.

    Run_on_120 = True

    >If this is set to True, it will start the car if it's plugged in using the 120v charger. If it's set to False, it won't start if plugged into 120v

    Run_on_240 = True

    >If this is set to True, it will start the car if it's plugged in using the 240v charger. If it's set to False, it won't start if plugged into 240v

    Run_only_when_fully_charged = True

    >If this is set to True, it will only start the car IF it's at a 100% charged level. If it's only 99% charged, the car will not start. If you set it to False, it will start the car no matter how low the battery is.

    I don't use the script to start my car on a schedule. I use it to start the car instead of the phone app. I get annoyed waiting on my phone to communicate with Onstar, connect to the car, waiting waiting waiting.... With this script you can just double-click it on the computer and your car starts! Awesome!
    Volt # 2262, picked up on Earth Day 2011. GO VOLT! LOVE THIS CAR!

  9. #18
    Join Date
    Sep 2011
    Location
    Dallas Texas
    Posts
    1,285

    Default

    With some additional work and setting the onstar charging mode back and forth from Immediate-- do you think we could have computer control of the Volts charging times ?

    There are times when designing a control system it seems the basic back yard water sprinkler controller has a lot to offer.
    2012 RED Volt VIN:#C-8860 - Premium Leather Seats Jet Black with Dark Trim, Rear Camera & Park Assist, Nav
    09/29/2011 Ordered -- 11/15/2011 took it home

  10. #19
    Join Date
    Nov 2011
    Location
    State College, PA
    Posts
    56

    Default

    Quote Originally Posted by Cord View Post
    With some additional work and setting the onstar charging mode back and forth from Immediate-- do you think we could have computer control of the Volts charging times ?
    All I can really do at this point is emulate existing website functionality. It looks like the functionality is there to modify the charging schedule on the fly... Perhaps we could set it to Immediate to initiate charging, then set it to a Delayed Start based on departure time, then give it a time far in the future when we want it to stop? Seems like that might work.

    Unfortunately, I'm not living in an area where time-of-day rates are in effect, so I see no benefit from doing this myself. If you give me specific wants/needs around how you'd like it to work though, I could give it a shot.

  11.  

    Advertisement

  12. #20
    Join Date
    Dec 2010
    Location
    NW suburban Chicago
    Posts
    254

    Default

    It looks like the Weather Service has changed their website and the script is no longer picking up the current temp. When you have a chance, can you look at it and see if it can be fixed.

    Thanks

    Gene
    -------
    VIN # B2365 Chicago suburbs (purchased 4/15/2011 in Austin, Texas)
    240V Leviton Evr-Green 160 Home Charging Station installed 11/4/2011
    DASHDAQ


Similar Threads

  1. Replies: 28
    Last Post: 12-23-2011, 04:01 PM
  2. Volt Generator- how does it start and stop?
    By Paul Slazas in forum Engineering and Design
    Replies: 4
    Last Post: 06-13-2011, 08:55 PM
  3. Does the Volt have a push button start ignition???
    By Hollywoods in forum Volt Ownership Forum
    Replies: 2
    Last Post: 01-28-2011, 11:57 PM
  4. Replies: 5
    Last Post: 01-27-2011, 01:58 AM
  5. China Volt start July 2011?
    By srschrier in forum General Motors and General Automotive Topics
    Replies: 3
    Last Post: 10-26-2010, 10:02 AM

Tags for this Thread

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