- Clone repo
- Create a python venv environment with
python -m venv env
- Activate the venv with
. env/bin/activate
- Install dependencies by running
pip install -r requirements.txt
- Test the installation by running
./getCamera.py
- Create a folder in the repository called
outputs/
- Test the script works by running
./dmv4.py
- If the script does not run from the previous command, run
chmod +x dmv4.py
and rerun the script - Run
sudo crontab -e
and add the line@reboot /home/$USER/DMV4/dmv4.py
- Save and reboot the Pi (recorded footage will be output to the
outputs/
folder)
- Run
sudo crontab -e
and remove or comment out the previously added line - Save and reboot