Giter VIP home page Giter VIP logo

Comments (2)

mikemoerk avatar mikemoerk commented on May 25, 2024

Did a little investigation. When you go to tesla.com and look at your vehicle, it gets a different list of options by calling

https://www.tesla.com/teslaaccount/ownership-api/vehicle-details?rn=RN#########&locale=en_US

That gives me the following specs:

[
  {
    "code": "$MTS07",
    "name": "Model S Long Range Plus",
    "long_name": "Long Range Plus All-Wheel Drive"
  },
  {
    "code": "$PPSB",
    "name": "Deep Blue Metallic",
    "long_name": "Deep Blue Metallic"
  },
  {
    "code": "$WTMS",
    "name": "19'' Tempest Wheels",
    "long_name": "19'' Tempest Wheels"
  },
  {
    "code": "$INB3C",
    "name": "Cream Premium Interior with Oak Wood Décor",
    "long_name": "Cream Premium Interior with Oak Wood Décor"
  },
  {
    "code": "$APBS",
    "name": "Autopilot",
    "long_name": "Autopilot"
  },
  {
    "id": "SC04",
    "code": "$SC04",
    "name": "Pay Per Use Supercharging",
    "long_name": "Pay-as-you-go Supercharging"
  }
]

If I take those options, and plug them into the compositor, then I get a good image.

Haven't yet figured out how to get it to call the vehicle-details endpoint, since it has a different root URL. Also not sure if the auth token will work with that endpoint.

from teslapy.

tdorssers avatar tdorssers commented on May 25, 2024

This is a known issue, the option codes returned by the owner API are not valid anymore.
The Dutch tesla.com site doesn't show my vehicle. And it doesn't give me the RN, so I can't reproduce this.
You can try to use the access_token of sso_token.

from teslapy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.