Giter Site home page Giter Site logo

mseminatore / teslajs Goto Github PK

View Code? Open in Web Editor NEW
407.0 30.0 99.0 1.06 MB

An Unofficial Tesla API library for NodeJS

Home Page: https://www.teslajs.org

License: MIT License

JavaScript 74.32% API Blueprint 24.96% Batchfile 0.72%
tesla oauth tesla-servers

teslajs's Issues

update paint colors

They may be spoken so remove underscores that might confuse speech markup.

Sunroof

Update the sample to reflect the new limited options for controlling sunroof position.

Explore removing Request dependency

Request is awesome. But we don't need all of its features. And more importantly there is currently no library for recording and playback of REST calls which limits testing options.

adding colors creates uncaught exceptions

For example, if the call is a failure, line 282
log(API_RESPONSE_LEVEL, "\nResponse: " + JSON.stringify(response).magenta);
causes the server to crash. I'd say remove all the colors completely or at least anything that could fail.

Bug: Missing 'email' in sample login path

Some samples do not work if you specify -u or --username on the command line. The error reported is:

    tjs.login(email, password, login_cb);
              ^
ReferenceError: email is not defined

POST command should return error, response, body

It's pretty standard to return at least an error in a callback function. I've modified it locally to give me the error, response, and body. Either way I have to interpret it but this way I have access to the response.statusCode and the body.response.result.

And trying to parse the body regardless of error and always trying to return the data regardless of result doesn't work in failure cases.

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.