alandtse/tesla

Implement the Streaming API for improved data accuracy while driving

Open

#539 opened on Mar 14, 2023

View on GitHub
 (7 comments) (0 reactions) (0 assignees)Python (122 forks)github user discovery
enhancementgood first issuehelp wanted

Repository metrics

Stars
 (741 stars)
PR merge metrics
 (Avg merge 13d 8h) (14 merged PRs in 30d)

Description

Currently data-updates while driving appear to be limited to a 60-second refresh timeout. There is a streaming API that is available while the vehicle is in motion, this will give near-real-time updates to the following: speed,odometer, soc, elevation, est_heading est_lat, est_lng, power, shift_state, range, est_range, heading

A reference implementation of this is available (via TeslaMate, in Ruby). https://github.com/adriankumpf/teslamate/commit/a691784926eed4c6ac08b98b2d8c60f1b7950d89#diff-9f70483b27cf0755e732038378b0d7682e404eca39594eddd76036c3b0d7a772

Note this appears to mirror the approach taken by the official Tesla app.

Contributor guide