Giter VIP home page Giter VIP logo

tesla-net's Introduction

Tesla.NET

NuGet Version NuGet Downloads Build status Travis build status CircleCI build status Codecov Coverage Status Coveralls Coverage Status Latest release

A .NET client library for the Tesla Owner API

This API is largely based on the community maintained API Documentation from Tim Dorr.

tesla-net's People

Contributors

dependabot-preview[bot] avatar dependabot-support avatar dependabot[bot] avatar jskimming avatar p3root avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

tesla-net's Issues

Usage examples

Please extend the readme with atleast a simple example explaining how to use the framework. I'm unable to use it.

For example, I tried the following but it doesnt work. Maybe my access token is incorrect but it is also unclear how to obtain an access token in the first place.

            var result = await client.GetVehiclesAsync(TESLA_ACCESS_TOKEN);
            var vehicles = result.Data.Response;
            foreach (var vehicle in vehicles)
            {
                Console.WriteLine(vehicle.DisplayName);
            }

TimeToFullCharge return incorrect values

TimeToFullCharge is declared as
long? TimeToFullCharge { get; }

But the value return from my Model 3 is in hours.minutes.

When I query the time remaining which is 5.15 (5 hours and 15 minutes), the result of TimeToFullCharge is 5.

Error with sun_roof_percent_open

I think the models need to allow nullable types for somethings. I'm getting this querying a Model 3:

Newtonsoft.Json: Error converting value {null} to type 'System.Int64'. Path 'response.sun_roof_percent_open', line 1, position 619. System.Private.CoreLib: Null object cannot be converted to a value type.

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.