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

Tesla API for iOS

Discussion in 'Tesla Motors' started by Jonas_man, Apr 16, 2016.

Tags:
  1. Jonas_man

    Jonas_man Member

    Joined:
    Sep 1, 2015
    Messages:
    49
    Location:
    Helsinki
    Hi guys,

    If you are interested in developing apps to control your Tesla car you can now do it easier with the a swift library that i have developed on my free time.

    The library was build using swift and can be downloaded here: GitHub - jonasman/TeslaSwift: Swift library to access the Tesla Model S API

    If you have feedback let me know. I don't have any tesla car so i could not test it very well. If you wanna help with testing it go ahead :)

    My future plan is to possibly create an app using this lib that would be great to use.
     
    • Like x 1
  2. jonman

    jonman Member

    Joined:
    May 22, 2016
    Messages:
    80
    Location:
    MD
    This is an awesome start. I was hoping that with iOS10 and SiriKit we could get better Siri integration with our apps. I was disappointed to see that only 6 domains can be used. I think it would be awesome to build some Intents to startVehicle, honkHorn, etc.

    Regardless, thanks for the groundwork and it is pretty awesome!
     
  3. Jonas_man

    Jonas_man Member

    Joined:
    Sep 1, 2015
    Messages:
    49
    Location:
    Helsinki
    Hi,

    Yesterday i implemented a sirikit app to do exactly that. But the problem is that to control the car with siri, CarPlay is required :( so no luck here.



     
  4. dcdspace

    dcdspace New Member

    Joined:
    Sep 12, 2016
    Messages:
    1
    Location:
    Connecticut
    I was at WWDC and asked the people who made SiriKit about this specific use case for Tesla Toolbox (https://appsto.re/us/kmakcb.i) but you cannot interpret a custom domain.
     
  5. Jonas_man

    Jonas_man Member

    Joined:
    Sep 1, 2015
    Messages:
    49
    Location:
    Helsinki
    You dont need custom .
    Check out carplay intents. The prob is that it is quite useless in tesla usecase even if tesla added carplay it would work only when you arein the car and not at home.

    I think there is no luck here :(
     
  6. Dylan Diamond

    Dylan Diamond Developer of Tesla Toolbox

    Joined:
    Jun 19, 2016
    Messages:
    54
    Location:
    NYC
    Carplay's api doesn't even start to cover the capabilities you can do with Tesla's, and the only overlap I found was climate and a few small things. No sunroof, lights, doors, etc. It is mainly for music and interacting with the navigation system. https://developer.apple.com/library/content/documentation/Intents/Conceptual/SiriIntegrationGuide/SiriDomains.html#//apple_ref/doc/uid/TP40016875-CH9-SW14
     
  7. Jonas_man

    Jonas_man Member

    Joined:
    Sep 1, 2015
    Messages:
    49
    Location:
    Helsinki
    Ok now i got you. You wanted all commands :)

    Yeah that's not gonna be possible.
    I guess that asking apple for more commands might be one way. But again we are not Tesla so we have probably little power here. We also need the removal of the carplay requirement .
     
  8. DrReid

    DrReid New Member

    Joined:
    Sep 21, 2016
    Messages:
    2
    Location:
    USA
    Are you able to build an app with SiriKit but apple won't accept it? Or you can't build it at all with the current SiriKit API? If you can build it, just not release it, we could sideload it onto our phones (for those of us with XCode)
     
  9. Dylan Diamond

    Dylan Diamond Developer of Tesla Toolbox

    Joined:
    Jun 19, 2016
    Messages:
    54
    Location:
    NYC
    I've sort of built something using SiriKit, but using the messages intent as a proxy in which I send a message to "TeslaToolbox" to perform some function. Doubt it will get approved, but maybe in a future release Apple will be more lenient on SiriKit's functionality.
     
  10. Jonas_man

    Jonas_man Member

    Joined:
    Sep 1, 2015
    Messages:
    49
    Location:
    Helsinki
    You cant build at all. SiriKit requires CarPlay to recognise car commands . Ex "start defroster" will only be recognised when carplay is connected. Tesla does not support it, so no luck here.

    Using commands for messaging works but it sucks as UX. " send a message to Tesla via TeslaApp saying start the car" . This is prone to fail and it is using the api probably not in an Apple accepted way.
     
  11. Jonas_man

    Jonas_man Member

    Joined:
    Sep 1, 2015
    Messages:
    49
    Location:
    Helsinki
    Any luck with your app?
     
  12. Dylan Diamond

    Dylan Diamond Developer of Tesla Toolbox

    Joined:
    Jun 19, 2016
    Messages:
    54
    Location:
    NYC
    The app has been successful in the App Store, but I have not submitted the SiriKit addition as I've been talking to some Apple engineers about it and they advised to hold off until the update to SiriKit.
     
    • Like x 1
  13. Jonas_man

    Jonas_man Member

    Joined:
    Sep 1, 2015
    Messages:
    49
    Location:
    Helsinki
    Maybe ios11? :)
     

Share This Page