TMC is an independent, primarily volunteer organization that relies on ad revenue to cover its operating costs. Please consider whitelisting TMC on your ad blocker or making a Paypal contribution here: paypal.me/SupportTMC

Send commands to the car from a web server

Discussion in 'Model S: User Interface' started by Pontus, Jan 10, 2015.

  1. Pontus

    Pontus Member

    Joined:
    Dec 7, 2014
    Messages:
    29
    Location:
    Sverige
    The question is simple can I send a command from a web server to the car?
    I have a simple home automation system controlled by a web server called Nexa Home and if it's possible I can control the car from any switch in the house. This would open up for some fun and maybe good possibilities.
     
  2. Olen

    Olen Member

    Joined:
    Oct 9, 2013
    Messages:
    97
    The short answer is "yes".
    The long answer is that you need to use the new API, and authentication, and that this requires Teslas proprietary API-key and secrets.
    These are not publicly available, and Tesla has so far been quiet about when (or if) they will open up for 3rd party development.
     
  3. captain_zap

    captain_zap Electron tamer

    Joined:
    Mar 27, 2012
    Messages:
    147
    Location:
    Redmond, WA
    You can use the "unofficial" API documentation and your own login credentials. This popular Visible Tesla app does this. Here's one link: http://docs.timdorr.apiary.io/
    Visible Tesla site: http://visibletesla.com/Documentation/site_index.html
     
  4. wayner

    wayner Active Member

    Joined:
    Oct 29, 2014
    Messages:
    1,586
    Location:
    Toronto
  5. rdrcrmatt

    rdrcrmatt Member

    Joined:
    Jun 27, 2013
    Messages:
    551
    Location:
    Milwaukee
    I wrote a script which takes input from a simple PHP form submission page on my web server to do departure time based charge scheduling.

    So, yes it can be done.
     
  6. wayner

    wayner Active Member

    Joined:
    Oct 29, 2014
    Messages:
    1,586
    Location:
    Toronto
    But you still have to be able authenticate on Tesla's servers, don't you? Many or most who have recently taken delivery are unable to do so.
     
  7. rdrcrmatt

    rdrcrmatt Member

    Joined:
    Jun 27, 2013
    Messages:
    551
    Location:
    Milwaukee
    my cookie is still valid, i'm hoping it stays that way for a while.
     

Share This Page