Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

func (Vehicle) OpenTrunk Not Working #55

Closed
Rudi9719 opened this issue Jul 10, 2021 · 4 comments · Fixed by #60
Closed

func (Vehicle) OpenTrunk Not Working #55

Rudi9719 opened this issue Jul 10, 2021 · 4 comments · Fixed by #60

Comments

@Rudi9719
Copy link

Whenever calling the v.OpenTrunk("front") or v.OpenTrunk("rear") functions, I get an error 400 Bad Request. Was the API moved or were the names changed?

switch trunk {
	case "rear":
	case "front":
		err := v.OpenTrunk(strings.ToLower(trunk))
		if err != nil {
			handleError(err, m, "There was an error opening your trunk. Contact @rudi9719 for more information with code %+v")
			return
		}
	default:
		k.SendMessageByConvID(m.ConvID, "You must supply front or rear.")
		return
	}
@Rudi9719
Copy link
Author

I wasn't on the latest commit when I opened this issue, just wanted to confirm that it is still an issue in the latest commit.
go get github.com/bogosj/tesla@0e5b7bb5e9240d8b9adc69242a364b36c7341938

@bogosj
Copy link
Owner

bogosj commented Jul 13, 2021

It looks like this possibly never worked? https://tesla-api.timdorr.com/vehicle/commands/trunk

Hi, can you checkout the code and try the trunk-fix branch?

f2a8519

I believe this should fix it, but I'm not able to test right now.

@Rudi9719
Copy link
Author

That worked perfectly!

@bogosj
Copy link
Owner

bogosj commented Jul 13, 2021

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants