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 and becoming a Supporting Member. For more info: Support TMC

Tesla Owner API Tutorial (All you need is your browser)

Discussion in 'Model S' started by Akrion, Oct 27, 2017.

  1. Byshop303

    Byshop303 Member

    Joined:
    Feb 3, 2017
    Messages:
    29
    Location:
    Colorado, USA
    I was just about to ask that. It appears to be as of "46" and up. The schema changes were significant enough to break the Dashboard for Tesla application. The developer updated it today to accommodate the newer firmwares.
     
  2. Byshop303

    Byshop303 Member

    Joined:
    Feb 3, 2017
    Messages:
    29
    Location:
    Colorado, USA
    [​IMG]
    Here's a comparison of the output between 42 and 46.8.
     
  3. Akrion

    Akrion Member

    Joined:
    Aug 16, 2017
    Messages:
    52
    Location:
    Flroida
    Great info! Thanks. So not nice for Tesla to remove those flags ... if anything we need more info on these cars via their APIs than less!
     
    • Like x 2
  4. ccdisce

    ccdisce Member

    Joined:
    Sep 10, 2014
    Messages:
    163
    Location:
    Georgia USA

    Maybe we should now be looking at ''PT_BMS_ISENSORPROTOCOLNUMBER' has to be greater than 3"
    as mentioned in thread #215

    Any news on 100D uncorking?
     
  5. Akrion

    Akrion Member

    Joined:
    Aug 16, 2017
    Messages:
    52
    Location:
    Flroida
    OK where is that value coming from? Which API is returning it?

    On the slightly different topic ... can anyone provide API responses for Model X? Do we have documentation similar to the one Tim did for Model X? I would imagine it would have some different API points etc?

    Asking since I am trying to experiment with an app and would like to know how generic it could be ... having "only" Model S is a limitation :) ... Any help is appreciated!
     
  6. appleguru

    appleguru Member

    Joined:
    Mar 15, 2017
    Messages:
    637
    Location:
    US
    It’s not exposed on the owner API. Is a CAN signal.
     
    • Like x 1
  7. Jonas_man

    Jonas_man Member

    Joined:
    Sep 1, 2015
    Messages:
    268
    Location:
    Helsinki
    should be the same.

    But model 3 must have some new commands as the app can now open and close the trunk
     
  8. Akrion

    Akrion Member

    Joined:
    Aug 16, 2017
    Messages:
    52
    Location:
    Flroida
    Are you sure? One variable I wonder if it would be the same is the actual `vechicleId` ... in model S it is `id_s` ... you sure it would be the same with Model X?
     
  9. Jonas_man

    Jonas_man Member

    Joined:
    Sep 1, 2015
    Messages:
    268
    Location:
    Helsinki
    im not sure. But it *should*
    id_s in my guessing means: id_string
     
    • Like x 1
  10. ccdisce

    ccdisce Member

    Joined:
    Sep 10, 2014
    Messages:
    163
    Location:
    Georgia USA
    Do you know the CAN message that is required to get this information and which CAN bus to use?
     
  11. appleguru

    appleguru Member

    Joined:
    Mar 15, 2017
    Messages:
    637
    Location:
    US
    75 and 75D variants increased performance from July 1st - software and hardware improvements?
     
  12. ccdisce

    ccdisce Member

    Joined:
    Sep 10, 2014
    Messages:
    163
    Location:
    Georgia USA
  13. ccdisce

    ccdisce Member

    Joined:
    Sep 10, 2014
    Messages:
    163
    Location:
    Georgia USA
    applguru,

    Logged this from the CAN3 bus yesterday for ID 532

    Byte Number:
    0: PT_BMS_iSensorMajorVersion 0x01
    1: PT_BMS_iSensorMinorVersion 0x03
    2: PT_BMS_iSensorProtocolNumber 0x05
    3: PT_BMS_iSensorReleaseVersion 0x00
    4-6: PT_BMS_iSensorSerialNumber 0xe9 0xd7 0x24 0x00

    car fw is .42....the answer to everything
     
    • Like x 1
  14. Akrion

    Akrion Member

    Joined:
    Aug 16, 2017
    Messages:
    52
    Location:
    Flroida
    Priceless :)
     
  15. Yoonoo

    Yoonoo Member

    Joined:
    Dec 15, 2016
    Messages:
    40
    Location:
    Spain
    Poking around the REST API, I was able to find the new location for perf_config for cars running version 2017.46 and above. It can be found under "data_request/vehicle_config" instead of "data_request/vehicle_state" for previous versions.
     
    • Helpful x 1
    • Like x 1
  16. jjanov79

    jjanov79 Member

    Joined:
    Sep 27, 2017
    Messages:
    28
    Location:
    Austin, TX
    How do you execute this command from apiary.io since there's no button for that in the Console?
     
  17. Yoonoo

    Yoonoo Member

    Joined:
    Dec 15, 2016
    Messages:
    40
    Location:
    Spain
    I'm not very familiar with Apiary, but I would imagine that whoever published the API on Apiary has to add the vehicle_config resource.

    Another option would be to use Apiary to generate the cURL command line for vehicle_state then manually replace vehicle_state with vehicle_config and run it locally on your computer.
     
  18. jjanov79

    jjanov79 Member

    Joined:
    Sep 27, 2017
    Messages:
    28
    Location:
    Austin, TX
    Because "vehicle_state" no longer displays performance info how do we go about getting "vehicle_config" from Apiary.io? That being said this would need to be for those of us who aren't programmers but can follow directions like in the video.
     
  19. BTCTM3

    BTCTM3 Member

    Joined:
    Jan 1, 2018
    Messages:
    14
    Location:
    LA
    Well would you look at that - calling this on a model 3 shows:

    "plg": null,
    "rear_seat_heaters": 1,
    "rear_seat_type": null,
    "rhd": false,

    Among some other data... :)
     
  20. oddarneroll

    oddarneroll Member

    Joined:
    Mar 29, 2017
    Messages:
    8
    Location:
    Norway
     

Share This Page

  • About Us

    Formed in 2006, Tesla Motors Club (TMC) was the first independent online Tesla community. Today it remains the largest and most dynamic community of Tesla enthusiasts. Learn more.
  • Do you value your experience at TMC? Consider becoming a Supporting Member of Tesla Motors Club. As a thank you for your contribution, you'll get nearly no ads in the Community and Groups sections. Additional perks are available depending on the level of contribution. Please visit the Account Upgrades page for more details.


    SUPPORT TMC