TeslaMate Analytics
Real-time data logging and visualization for my Tesla CyberTruck (Alice) and my Tesla Model 3 (Tessie). TeslaMate is a self-hosted data logger that tracks drives, charging sessions, efficiency, and more. I host it in AWS EC2 Linux AMI in docker containers.
What is TeslaMate?
TeslaMate is an open-source, self-hosted data logger for Tesla vehicles. It connects to the Tesla API to collect and store vehicle data, providing detailed insights into:
- Driving efficiency and energy consumption
- Charging statistics and costs
- Battery health and degradation
- Location tracking and trip history
- Climate control usage
- Software updates and vehicle status
Quick Stats
Total Distance
15,234 mi
Lifetime odometer
Energy Used
4,571 kWh
Total consumption
Efficiency
300 Wh/mi
Average efficiency
Saved vs Gas
$2,845
Fuel cost savings
Key Metrics I Track
Charging Analysis
Track charging sessions, costs, and efficiency. Compare home charging vs Supercharging costs and time.
Drive Efficiency
Monitor energy consumption patterns, regenerative braking effectiveness, and factors affecting range.
Battery Health
Long-term tracking of battery degradation, charging patterns, and their impact on range.
Trip History
Detailed logs of every trip including route, energy used, average speed, and environmental conditions.
Climate Impact
Understanding how temperature and climate control usage affects range and efficiency.
Cost Analysis
Comprehensive breakdown of electricity costs, maintenance, and comparison with ICE vehicle costs.
My Setup
I'm running TeslaMate on a Docker container hosted on my home server. The stack includes:
- TeslaMate: Core application for data collection
- PostgreSQL: Database for storing vehicle data
- Grafana: Visualization and dashboard creation
- Mosquitto: MQTT broker for real-time updates
- Nginx: Reverse proxy for secure external access
The entire setup is automated with Docker Compose and backed up nightly to ensure no data loss.
Privacy & Security
All data is self-hosted on my personal server and never shared with third parties. The dashboard above shows anonymized or aggregated data only. TeslaMate uses official Tesla API endpoints and follows best practices for data security.
Want to Set Up Your Own?
If you're a Tesla owner interested in tracking your vehicle data, here are some resources: