Raspberry Pi Camera

From ProjectPages
Jump to: navigation, search

Camera setup

$ raspistill -o image.jpg

$ sudo apt-get install git

git clone https://github.com/silvanmelchior/RPi_Cam_Web_Interface.git
cd RPi_Cam_Web_Interface

$ sudo apt-get install python3-pip -y

$ sudo pip3 install paho-mqtt

$ sudo apt-get install python-rpi.gpio python3-rpi.gpio

$ sudo nano /var/www/html/uconfig

motion_external 0
motion_threshold 10000
motion_detection true

Restart camera /home/pi/RPi_Cam_Web_Interface/start.sh

In Camera Control Buffer (1000... ms), default 0:3000

Gives a circular buffer of at least 3 seconds which is prepended to captured video