Skip to content

jrcichra/smartcar

Repository files navigation

SmartCar Actions Status Docker Hub

A collection of karmen containers to build a distributed car container network

Smartcar footage:

smartcar gif

Current Functionality

  • Starts and stops recording with ignition
  • Transfers footage to NAS when you come home
  • Collects obdii sensor data locally on an interval

Current containers

More containers on the way (OBDII) - make new containers and make a pull request!

Getting started

You need some hardware and handywork to get this started in your car.

  1. Look at your car's wiring diagram. Find out where you can tap into 12V (w/ a buck converter and a fuse)
  2. Also see what wire corelates to your ignition
  3. (I used wires going to my car radio (12V & ignition on/off))
  4. You'll need a latch relay that is triggered with ignition on. This powers the Pi
  5. Once the Pi is on, smartcar will emit "key_on" by default, starting the recording process
  6. You'll need another relay system to determine when the ignition went off, but on a different pin, that does not turn off the Pi (remember, your Pi is on because of the former latch relay)

NOTE: as of writing the pin numbers are hardcoded in gpio.py

Configuration

config.yml

See my example RPi config. TLDR; karmen takes a declarative mapping of container events to container actions

docker-compose.yml

See my example RPi compose.