Tesla Telemetry hooked up to ESP32
This was actually surprisingly easy.
Some of the hardware was delayed until tomorrow, so today I transferred the temporary python/Flask websocket to the ESP32. The hardest part was decoding the binary that Tesla streams in C instead of python.
I also moved the cloudflare tunnel that connects my domain to the ESP32 off of my laptop and onto an extra computer that’s always on on my wifi so that even when I close my laptop the tunnel stays open.
The data now follows this route:
Car > Tesla Backend > api.matthewglasser.org > cloudflare tunnel (extra computer) > ESP32
Next Steps
Tomorrow the rest of the hardware should (finally) come, and I’ll hook up the other sensors, stepper motor, battery, etc. After I wire & code that I’ll just have to mount the actual cable and pulleys to control the charging cable and the sensors.