Skip to content

πŸš—πŸ“Ή Tesla Dash Cam Footage Management System | Automate video backup, cloud storage, and remote access for Tesla's built-in dash cam using a Raspberry Pi Zero W. Extract, store, and sync your driving footage with ease! πŸ“β˜οΈ

License

Notifications You must be signed in to change notification settings

milesburton/teslacam

Repository files navigation

πŸš— Tesla Cam: Dash Cam Footage Management System πŸ“Ή

🌟 Current Capabilities

  • πŸ’Ύ Backup: Secure storage of Tesla Cam videos
  • ☁️ Cloud Integration:
    • Dropbox upload when internet is available
    • Optional remote sync services
  • πŸ“± Mobile Access:
    • Web UI for video viewing
    • Download and service management
    • (Temporarily disabled)

πŸš€ Project Overview

πŸ€” The Problem

Tesla's dash cam system (introduced in V9) lacks an easy way to:

  • Push videos to the cloud
  • View footage in near real-time

πŸ’‘ Our Solution

By using a Raspberry Pi Zero W, we can:

  • Emulate a USB drive
  • Periodically store video data
  • Enable advanced features like:
    • Cloud backup
    • Live streaming
    • Remote access

πŸ›  Hardware Requirements

  1. 🚘 Tesla (2017 AP 2.5 or newer)
  2. πŸ“ Raspberry Pi Zero W
  3. πŸ“‘ Wireless access point
  4. πŸ’½ SDHC Card
    • Minimum 16GB
    • Fastest write speeds possible
  5. πŸ”Œ High-quality USB A to Micro USB cable
  6. 🏠 Optional: Raspberry Pi case with ventilation

πŸ’» Software Requirements

  1. 🐧 Raspbian Stretch Lite (2018-11-13 or later)
  2. πŸ’Ώ Disk imaging tool (Etcher recommended)
  3. 🐳 Docker
  4. πŸ”§ OTG Mode enabled in boot configuration

🚦 Quick Setup Guide

On Your Desktop Computer

  1. πŸ“₯ Download Raspbian Lite
  2. πŸ–ŠοΈ Modify boot partition:
    • Add dtoverlay=dwc2 to config.txt
    • Add modules-load=dwc2,g_mass_storage to cmdline.txt
  3. πŸ“Ά Configure WiFi
  4. πŸ”“ Enable SSH by creating empty ssh file

On Raspberry Pi (via SSH)

  1. πŸ”Œ Connect Pi to Tesla's USB port
  2. πŸ–₯️ SSH into Pi
  3. πŸš€ Run installation script:
    $ GET_TESLACAM=`mktemp` \
    curl -fsSL https://git.io/JeWlq -o ${GET_TESLACAM} && \ 
    sh ${GET_TESLACAM} && \
    rm ${GET_TESLACAM}

πŸ”§ Optional Services

πŸ“‘ Rsync Upload

  • Generate SSH key
  • Configure remote target
  • Automatically upload videos

☁️ Dropbox Upload

  • Obtain Dropbox token
  • Configure upload container
  • Automatic cloud backup

🧠 Technical Insights

  • πŸ“Ή Tesla V9 Dash Cam Details:
    • Records up to 1 hour
    • Circular buffer
    • 1-minute video increments
    • ~28MB per minute
  • ⚠️ Key Challenges:
    • Minimizing video loss during transfer
    • Handling unpredictable power scenarios
    • Quick video extraction

🚧 Future Roadmap

  • πŸŽ₯ Video streaming capabilities
  • 🌐 Reverse VPN access
  • πŸ›  Remote configuration
  • πŸ“ˆ Improved performance metrics
  • πŸ”’ Read-only file system
  • πŸ“² Automatic WiFi hotspot

πŸ™Œ Support the Project

Disclaimer: Project is experimental. Use at your own risk! 🚨

About

πŸš—πŸ“Ή Tesla Dash Cam Footage Management System | Automate video backup, cloud storage, and remote access for Tesla's built-in dash cam using a Raspberry Pi Zero W. Extract, store, and sync your driving footage with ease! πŸ“β˜οΈ

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •