Coder Social home page Coder Social logo

Unable to get Vehicle State about tesla HOT 9 CLOSED

bogosj avatar bogosj commented on July 19, 2024
Unable to get Vehicle State

from tesla.

Comments (9)

andig avatar andig commented on July 19, 2024 1

Or ….@main to fetch the latest commit.

from tesla.

andig avatar andig commented on July 19, 2024

Seems that would better be float- do you want to provide a PR?

from tesla.

Rudi9719 avatar Rudi9719 commented on July 19, 2024

Not sure if that's the issue, looks like it is already a float64?

	SpeedLimitMode struct {
		Active          bool    `json:"active"`
		CurrentLimitMph float64 `json:"current_limit_mph"`
		MaxLimitMph     float64 `json:"max_limit_mph"`
		MinLimitMph     float64 `json:"min_limit_mph"`
		PinCodeSet      bool    `json:"pin_code_set"`
	} `json:"speed_limit_mode"`

from tesla.

andig avatar andig commented on July 19, 2024

Are you using an outdated version?

from tesla.

Rudi9719 avatar Rudi9719 commented on July 19, 2024

I'm not sure; I just pulled it this morning so I don't think so? Unless I'm missing a tag or something

github.com/bogosj/tesla v1.0.0

from tesla.

Rudi9719 avatar Rudi9719 commented on July 19, 2024

Seems like there have been commits since the last release v1.0.0, maybe that's the issue? (Sorry, accidentally closed prematurely)

from tesla.

andig avatar andig commented on July 19, 2024

Are you using the latest commit (really same question as above)?

from tesla.

Rudi9719 avatar Rudi9719 commented on July 19, 2024

Not sure how to check with Go modules (required for go 1.16+). I assume that for therecipe/qt, and x/oauth with the v0.0.0, but then there's a timestamp of some sort followed by what I assume is the commit hash?

	github.com/bogosj/tesla v1.0.0
	github.com/therecipe/qt v0.0.0-20200904063919-c0c124a5770d
	golang.org/x/oauth2 v0.0.0-20210628180205-a41e5a781914
	samhofi.us/x/keybase/v2 v2.1.1
)

from tesla.

Rudi9719 avatar Rudi9719 commented on July 19, 2024

go get github.com/bogosj/tesla@0e5b7bb5e9240d8b9adc69242a364b36c7341938 solved the issue, thank you!

from tesla.

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.