Merged
Conversation
Added three Teslemetry-specific API endpoints from the OpenAPI schema:
- fields(): GET /fields.json - retrieves streaming field parameters and metadata
- vehicle_config(vin): GET /api/vehicle_config/{vin} - gets saved vehicle configuration
- streaming_config(vin): GET /api/config/{vin} - gets streaming configuration including certificate, hostname, port, and telemetry fields
Also updated the documentation with examples for using these new endpoints.
Added missing Teslemetry-specific endpoints:
Main Teslemetry class (teslemetry.py):
- vehicle_image(vin): GET /api/image/{vin} - redirect to Tesla Design Studio vehicle image
- stop_streaming(vin): DELETE /api/config/{vin} - stop streaming data from vehicle
- modify_streaming_config(vin, fields): PATCH /api/config/{vin} - modify streaming configuration
- create_streaming_config(vin, fields): POST /api/config/{vin} - create/update streaming configuration
TeslemetryVehicle custom commands (vehicles.py):
- clear_pin_to_drive(pin): POST /api/1/vehicles/{vin}/custom_command/clear_pin_to_drive - deactivate PIN to Drive
- remove_key(): POST /api/1/vehicles/{vin}/custom_command/remove_key - remove all impermanent keys
Updated documentation with examples for all new endpoints.
All endpoints verified against https://api.teslemetry.com/openapi.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Added three Teslemetry-specific API endpoints from the OpenAPI schema:
Also updated the documentation with examples for using these new endpoints.