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

Tesla control windows #212

Merged
merged 3 commits into from
Mar 11, 2024

Conversation

sethterashima
Copy link
Collaborator

Description

Adds window controls to http proxy and CLI.

Fixes bug where errors were not being propagated by the http proxy.

Fixes #210

Type of change

Please select all options that apply to this change:

  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Bug fix (non-breaking change which fixes an issue)
  • Documentation update

Checklist:

Confirm you have completed the following steps:

  • My code follows the style of this project.
  • I have performed a self-review of my code.
  • I have made corresponding updates to the documentation.
  • I have added/updated unit tests to cover my changes.

Sorry, something went wrong.

Add CLI windows-vent and windows-close commands.
case "close":
return func(v *vehicle.Vehicle) error { return v.CloseWindows(ctx) }, nil
default:
return nil, errors.New("command must be 'vent' or 'open'")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'vent' or 'close'

Seth Terashima added 2 commits March 11, 2024 15:38
The proxy server was not correctly returning Bad Request (400) status
codes.
@sethterashima sethterashima force-pushed the tesla-control-windows branch from bf00c19 to 0fd9dbe Compare March 11, 2024 22:38
@sethterashima sethterashima merged commit 77d5cf3 into teslamotors:main Mar 11, 2024
1 check passed
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 this pull request may close these issues.

window_control doesn't work with HTTP Proxy
3 participants