Skip to content

Instantly share code, notes, and snippets.

@andriiburka
Created September 8, 2017 14:40
Show Gist options
  • Save andriiburka/3f683b074a1063d3253451b1ff442eb5 to your computer and use it in GitHub Desktop.
Save andriiburka/3f683b074a1063d3253451b1ff442eb5 to your computer and use it in GitHub Desktop.
MotionEye Security Camera for Apple HomeKit RPI3 USB
clear
echo "Starting Motioneye Installation"
sleep 1
clear
cd /home/pi
sudo wget https://github.com/ccrisan/motioneye/wiki/precompiled/ffmpeg_3.1.1-1_armhf.deb
sudo dpkg -i ffmpeg_3.1.1-1_armhf.deb
sudo rm -rf ffmpeg_3.1.1-1_armhf.deb
sudo apt-get remove libavcodec-extra-56 libavformat56 libavresample2 libavutil54
sudo apt-get install libavutil54 libavformat56 libswscale3 -y
sudo apt-get install python-pip python-dev curl libssl-dev libcurl4-openssl-dev libjpeg-dev libx264-142 libavcodec56 libavformat56 libmysqlclient18 libswscale3 libpq5 v4l-utils -y
sudo wget https://github.com/Motion-Project/motion/releases/download/release-4.0.1/pi_jessie_motion_4.0.1-1_armhf.deb
sudo dpkg -i pi_jessie_motion_4.0.1-1_armhf.deb
sudo rm -rf pi_jessie_motion_4.0.1-1_armhf.deb
sudo pip install motioneye
sudo mkdir -p /etc/motioneye
sudo cp /usr/local/share/motioneye/extra/motioneye.conf.sample /etc/motioneye/motioneye.conf
sudo mkdir -p /var/lib/motioneye
sudo cp /usr/local/share/motioneye/extra/motioneye.systemd-unit-local /etc/systemd/system/motioneye.service
sudo systemctl daemon-reload
sudo systemctl enable motioneye
sudo systemctl start motioneye
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment