Coder Social home page Coder Social logo

tesla_dart's Introduction

tesla_dart

Dart libraries for accessing the Tesla API

Currently this documentation is targeted toward usage from a Linux machine, but there shouldn't be anything preventing it from working on Windows or MacOS.

Configuring Credentials

Authentication with the Tesla API is performed using OAuth2. The tesla.dart application uses the OAuth2 access and refresh tokens provided by the authentication API to access the main API features.

In order to generate OAuth2 tokens required by the Tesla API, you must use generate_token.dart. Create a file called .config containing your tesla.com username on the first line, and password on the second line (make sure the file isn't readable by anyone you don't trust!) Next run generate_token.dart:

# pub run generate_token.dart

Usage

Without any parameters, the default behavior is to show you your vehicle's state of charge.

The following arguments are available:

--show-options Show vehicle options and features
--show-charge Show state of charge (default)
--show-climate Show climate control settings
--show-drive Show drive information
--show-gui Show GUI settings
--show-vehicle Show vehicle state
--show-all Show all of the above
--raw Show raw data returned from server

tesla_dart's People

Contributors

jtmcdole avatar lyceel avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

tesla_dart's Issues

Charge Status doesn't work on Model 3

0 / 0 :(

Charge State:
  Battery:         0.0/0.0 kWh (59%)
                   ╭──────────╮
                   │█████▉    ▐
                   ╰──────────╯

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.