Code Monkey home page Code Monkey logo

teslausb's Introduction

teslausb

Intro

Raspberry Pi and other SBCs can emulate a USB drive, so can act as a drive for your Tesla to write dashcam footage to. Because the SBC has full access to the emulated drive, it can:

  • automatically copy the recordings to an archive server when you get home
  • hold both dashcam recordings and music files
  • automatically repair filesystem corruption produced by the Tesla's current failure to properly dismount the USB drives before cutting power to the USB ports
  • serve up a web UI to view or download the recordings
  • retain more than one hour of RecentClips (assuming large enough storage)

This video (not mine) has a nice overview of teslausb and how to install it:

teslausb intro and installation

If you are interested in having more detailed information about how TeslaUsb works, have a look into the wiki.

Prerequisites

Assumptions

  • You park in range of your wireless network.
  • Your wireless network is configured with WPA2 PSK access.

Hardware

Required:

  • A Raspberry Pi or other SBC that supports USB OTG.
  • A Micro SD card, at least 64 GB in size, and an adapter (if necessary) to connect the card to your computer.
  • Cable(s) to connect the SBC to the Tesla (USB A/Micro B cable for the Pi Zero, USB A/C cable for the Pi 4 and 5, other SBCs vary)

Optional:

  • A case and/or cooler for the SBC. For the Raspberry Pi 4 I like the "armor case" (available with or without fans), which appears to do a good job of protecting the Pi while keeping it cool.
  • USB Splitter if you don't want to lose a front USB port. The Onvian Splitter has been reported working by multiple people on reddit. Some SBCs require separate power and data connection, so may require a splitter or a USB hub to connect to the car.

Installing

To install teslausb on a Raspberry Pi, it is recommended to use the prebuilt image and one step setup instructions. For other SBCs, start here

Contributing

You're welcome to contribute to this repo by submitting pull requests and creating issues. For pull requests, please split complex changes into multiple pull requests when feasible, and follow the existing code style.

Meta

This repo contains steps and scripts originally from this thread on Reddit

Many people in that thread suggested that the scripts be hosted on GitHub but the author didn't seem interested in making that happen, so GitHub user "cimryan" hosted the scripts on GitHub with the Reddit user's permission.

teslausb's People

Contributors

marcone avatar cimryan avatar rtgoodwin avatar rtanaka avatar 599316527 avatar alanhoyle avatar kdvlr avatar gocnak avatar allanbank avatar bdjdev avatar skipfire avatar tomrund avatar carleeno avatar donc52 avatar axkg avatar thx723 avatar dopeghoti avatar withinfocus avatar magokimbra avatar lborloz avatar davideshay avatar ddoming73 avatar daveruijter avatar dmblakeley avatar rfvgyhn avatar bojanrajkovic avatar githubsean avatar coredumperror avatar prathiraj avatar paultran avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.