tesla-api

🚘 A Ruby gem and unofficial documentation of Tesla's JSON API for the Model S, 3, X, and Y.

MIT License

Downloads
49.2K
Stars
2K
Committers
81

Bot releases are visible (Hide)

tesla-api - v3.1.0 Latest Release

Published by timdorr over 3 years ago

This release handles the new auth process (see #260). It does not yet handle MFA users.

When upgrading, any previously stored refresh_tokens will no longer function, as they are being generated by a new system. While existing Owner API access_tokens will continue to work until they expire, a full login will be needed to obtain new refresh_tokens.

Changes

  • Update for new authentication process
tesla-api - v3.0.7

Published by timdorr almost 4 years ago

This release is sponsored by RedAlert, a smart alerting platform for Tesla vehicles.


Changes

  • Switch to Oauth access token for streaming (8b63116 by @timdorr)
tesla-api - v3.0.6

Published by timdorr about 4 years ago

This release is sponsored by RedAlert, a smart alerting platform for Tesla vehicles.


Changes

  • Set stream protocol to HTTP 1.1 (#219 by @cyu)
tesla-api - v3.0.5

Published by timdorr about 4 years ago

This release is sponsored by RedAlert, a smart alerting platform for Tesla vehicles.


Changes

  • Retry request on timeouts (#159 by @MarkusHarmsen)
  • Charge limit only allows integers (#209 by @jankeesvw)
  • Add client_options param to pass to API client (#218 by @cyu)
tesla-api - v3.0.4

Published by timdorr about 5 years ago

This release is sponsored by RedAlert, a smart alerting platform for Tesla vehicles.


Changes

  • Fix a bug with streaming telematics.
tesla-api - v3.0.3

Published by timdorr about 5 years ago

Changes

  • Handle streaming errors and timeouts.
  • Drop faye and eventmachine deps in favor of async.
tesla-api - v3.0.2

Published by timdorr about 5 years ago

Changes

  • Add new methods for the V10 update:
    • set_preconditioning_max
    • window_control
    • share (just aliased to navigation_request currently)
    • trigger_homelink
  • Add new methods for media playback controls.
  • Added vehicle_config as a separate method from data.
tesla-api - v3.0.1

Published by timdorr about 5 years ago

Changes

  • A small fix to the new .vehicle(id) method.
tesla-api - v3.0.0

Published by timdorr about 5 years ago

This release is sponsored by RedAlert, a smart alerting platform for Tesla vehicles.


Sorry for the quick major bump again, but this is warranted. The internal HTTP client I was using (HTTParty) was entirely thread-unsafe, so things like Sidekiq jobs or other multi-user systems would be impossible to implement safely.

As a bonus, I've updated the streaming API to use the new WebSocket endpoint. The old HTTP streaming endpoint is completely defunct now.

Changes

  • Replace HTTParty with Faraday. This ensures instances stay separate from each other.
  • Update Vehicle.stream to use the WebSocket endpoint.
  • Add a Client.vehicle(id) endpoint for getting a single vehicle from the API.
tesla-api - v2.0.0

Published by timdorr about 5 years ago

Changes

  • Revamped TeslaApi::Client
    • .new now uses keyword arguments: email:, access_token:, access_token_expires_at:, refresh_token:, client_id:, and client_secret:. Note: access_token_expires_at should be a DateTime.
    • Methods .token=, .expires_in=, .created_at= have been removed. You can set these when creating the client.
    • Added a refresh_access_token method to obtain a new access token using a refresh token. Note: Tesla invalidates the previous refresh token when obtaining the new access token.
tesla-api - v1.5.0

Published by timdorr over 5 years ago

Changes

  • Support for seat/steering wheel heater requests (#116 by @jor-dan)
  • Add Sentry Mode command (#123 by @jor-dan)
  • Retrieve refresh_token from the OAuth login (#136 by @beni)
tesla-api - v1.4.1

Published by timdorr almost 6 years ago

Small fix for streaming data. Sorry about the breakage!

tesla-api - v1.4.0

Published by timdorr almost 6 years ago

  • Add nearby_charging_sites
  • Add schedule_software_update and cancel_software_update
  • Add navigation_request
  • Add charge_port_door_close and test the open command.
  • Test the data endpoint and remove the inactive sunroof tests. (Note: I'm keeping the nonfunctional API to avoid a breaking change. And maybe Tesla will turn it back on someday?)
tesla-api - v1.3.0

Published by timdorr almost 6 years ago

  • Fix open_frunk
  • Add initial Autopark/Summon support
  • Add speed limit commands (#73)
  • Add new fields to streaming output (#39)
  • Update trunk_open to actuate_trunk (#77)
  • Add User Agent headers to requests (#78)
tesla-api - v1.2.0

Published by timdorr over 8 years ago

  • Add set_valet_mode and reset_valet_pin commands.
tesla-api - v1.1.0

Published by timdorr over 9 years ago

  • Adds login! to Client. Login is no longer automatic.
  • Adds token= to Client. Supports the re-use of previous tokens.
tesla-api - v1.0.0

Published by timdorr almost 10 years ago

  • Adds keyless/remote start functionality
  • Includes endpoint for trunk opening (currently disabled by Tesla)
  • Fills in test suite. Streaming API is still missing, but difficult to test because of em-http-request's nature.
tesla-api - v0.1.0

Published by timdorr almost 10 years ago

  • Initial conversion into a gem.
tesla-api - v0.9.0

Published by timdorr almost 10 years ago

  • Adds a test suite.
  • We'll go 1.0 once the coverage is close to 100%