tesla-api

command module
v0.0.0-...-91a5361 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 6, 2023 License: MIT Imports: 13 Imported by: 0

README

tesla-api

This application will connect to the Tesla API, makes a request, and shows the response.

Please see https://tesla-api.timdorr.com/ for details on using the Tesla API.

In order to make a request, tesla-api needs an access token. This can be obtained in several ways; please see https://tesla-api.timdorr.com/api-basics/authentication for details.

If you use teslamate, the access token can be obtained automatically from its database; this is handled automatically if you provide the docker-compose file, or if it is found in the current directory.

Sending data with a third argument does not work yet.

Usage examples:

  • tesla-api GET /api/1/users/me
  • tesla-api GET /api/1/vehicles
  • tesla-api GET /api/1/products
  • tesla-api GET /api/1/vehicles/{id}/vehicle_data
  • tesla-api GET /api/1/vehicles/929653650881721/nearby_charging_sites
  • tesla-api GET /api/1/vehicles/929653650881721/release_notes
  • tesla-api POST /api/1/vehicles/{id}/wake_up
  • tesla-api POST /api/1/vehicles/{id}/command/honk_horn
  • tesla-api POST /api/1/vehicles/{id}/command/flash_lights
  • tesla-api POST /api/1/vehicles/{id}/command/remote_start_drive
  • tesla-api POST /api/1/vehicles/{id}/command/door_unlock
  • tesla-api POST /api/1/vehicles/{id}/command/door_lock
  • tesla-api POST /api/1/vehicles/{id}/command/actuate_trunk '{"which": "rear"}
  • tesla-api POST /api/1/vehicles/{id}/command/window_control '{"command": "close", "lat": 0, "lon": 0}

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL