There have been several disjointed tutorials on making a raspberrypi or orangepi into a surveillance camera. So I threw this together to maybe help someone out there with any issues.
I used the orangepipc+ but any orangepi board should work as long as it has the basics, internet connectivity, storage, and a camera. (I highly suggest heatsinks as well)
any feedback or enhancements to this tutorial are greatly appreciated.
------------------------------------------------------------------
ORANGEPI IPCAMERA
------------------------------------------------------------------
su root
apt-get update
apt-get upgrade
apt-get install
wget https://github.com/ccrisan/motioneye/wiki/precompiled/ffmpeg_3.1.1-1_armhf.deb
dpkg -i ffmpeg_3.1.1-1_armhf.deb
apt-get remove libavcodec-extra-56 libavformat56 libavresample2 libavutil54
apt-get install python-pip python-dev curl libssl-dev libcurl4-openssl-dev libjpeg-dev libx264-142 libavcodec56 libavformat56 libmysqlclient18 libswscale3 libpq5
wget https://github.com/Motion-Project/motion/releases/download/release-4.0.1/pi_jessie_motion_4.0.1-1_armhf.deb
dpkg -i pi_jessie_motion_4.0.1-1_armhf.deb
pip install motioneye
mkdir -p /etc/motioneye
cp /usr/local/share/motioneye/extra/motioneye.conf.sample /etc/motioneye/motioneye.conf
mkdir -p /var/lib/motioneye
cp /usr/local/share/motioneye/extra/motioneye.systemd-unit-local /etc/systemd/system/motioneye.service
systemctl daemon-reload
systemctl enable motioneye
systemctl start motioneye
sudo modprobe gc2035
sudo modprobe vfe_v4l2
systemctl restart motioneye
Accessing The Frontend
After having successfully followed the installation instructions, the motionEye server should be running on your system and listening on port 8765. Fire up your favorite web browser and visit the following URL (replacing [your_ip] with... well, your system's IP address):
http://[your_ip]:8765/
Use admin with empty password when prompted for credentials. For further details on how to configure motionEye, see Configuration.
------------------------------------------------------------------
FOR UPDATES;
------------------------------------------------------------------
pip install motioneye --upgrade
systemctl restart motioneye
sudo nano /etc/motioneye/motioneye.conf
ctrl+x then y (nano)
Modifiy the motion.config file to turnoff localhost;
stream_localhost off
change the port to 80 from 8765 if desired by;
systemctl enable motion
systemctl start motion
Tutorial sources;
https://github.com/ccrisan/motioneye/wiki/Install-On-Raspbian
http://www.orangepi.org/orangepibbsen/forum.php?mod=viewthread&tid=941
http://www.orangepi.org/orangepibbsen/forum.php?mod=viewthread&tid=1988 (some resources for motion)
http://www.cnx-software.com/2015/09/26/how-to-use-orange-pi-camera-in-linux-with-motion/(VERY OLD)
WIP tutorial, I want to add a version with facial recognition using openface and a version using ALPR (automatic license plate recognition, as the orangepi systems can have 2GB of ram)
Update 1 09/30/16;
seems there is a issue with motioneye and being unable to find the csi camera. I'm trying to find a work around, any help is appreciated.
Update 2 11/05/2016
Updated motioneye installation
added information on motion and basic setup (incomplete)
the editor seems to be breaking my wget addresses
I forgot to add the login information and frontend... *DOH*