A collection of karmen containers to build a distributed car container network
- Starts and stops recording with ignition
- Transfers footage to NAS when you come home
- Collects obdii sensor data locally on an interval
- Karmen
- Controller for managing all other containers
- Dashcam
- Interfaces with the Raspberry Pi Camera
- GPIO
- Interfaces with the GPIO pins (for ignition)
- Transfer
- Transfers footage to NAS when you get home
- OBDII
- Collect car sensor data (Speed, RPM, Throttle)
- Uses standard libarary: https://python-obd.readthedocs.io/en/latest/
More containers on the way (OBDII) - make new containers and make a pull request!
You need some hardware and handywork to get this started in your car.
- Look at your car's wiring diagram. Find out where you can tap into 12V (w/ a buck converter and a fuse)
- Also see what wire corelates to your ignition
- (I used wires going to my car radio (12V & ignition on/off))
- You'll need a latch relay that is triggered with ignition on. This powers the Pi
- Once the Pi is on, smartcar will emit "key_on" by default, starting the recording process
- 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
See my example RPi config. TLDR; karmen takes a declarative mapping of container events to container actions