Thu. Aug 11th, 2022
Motioneye OS/Motioneye Server

Aproximate time: 15 minutes

The other day I had a fox get in to my duck pen, I was very frustrated because he killed 4 of my
ducks actually 5 (I had to put one down cuz he tore him up so bad). I was very mad that he did that
because we had that happen at first but we figured it out. Well it so happens that I had a Wyze Cam
v2 Wyzec2 for you individuals that like following model numbers. I knew that MotionEYE OS works on
a Pi so I thought maybe there is one that works with Docker or Containers. Well it happens that
there is a MotionEYE Software that can be installed on an Ubuntu Server container or OS. There
was to my delight. I read through the instructions and then tried to follow them I had to make a couple
of slight changes all in all his instructions worked to perfection. So let’s get started with the steps.

  • Right click the PiMOX (Proxmox for you non Raspberry Pi Folks) Create CT
  • Enter your hostname (it’s just a name)
  • uncheck the nesting box
  • type in a password and confirm your password click <next>
  • Under storage select where your ISOs are stored and then select the template (Ubuntu Server for me) <next>
  • Set the disk size I used 30 gb <next>
  • CPUs select how many cores you want I used 1 <next>
  • Memory I set mine to 2048 which is 2gb and Iset the swap to 1024 / 1 gb <next>
  • Uncheck the firewall box, put in a static ip for some reason DHCP didn’t work for me. ip.addr/cidr ex: 10.10.1.101/24 then the gateway 10.10.1.1 then click <next>
  • DNS Domain: something.local <- Your internal domain: DNS Servers: This can be internal or external. Click <next>
  • If you are good with your choices click <finish>
  • Now on the left navigation, right click on the hostname and click start
sudo apt update && sudo apt upgrade -y
sudo apt-get install ssh curl motion ffmpeg v4l-utils -y
sudo reboot
sudo apt-get install python2 -y
sudo curl https://bootstrap.pypa.io/pip/2.7/get-pip.py --output get-pip.py
sudo python2 get-pip.py
sudo apt-get install libffi-dev libzbar-dev libzbar0 -y
sudo apt-get install python2-dev libssl-dev libcurl4-openssl-dev libjpeg-dev -y
sudo pip2 install motioneye
sudo mkdir -p /etc/motioneye
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
This is where you configure each individual camera.

To Upgrade motioneye use the following

pip2 install motioneye --upgrade
systemctl restart motioneye

Let me know if you need anymore info on this. I will write up a “how to use” motioneye in the near future. I will also do a video on it as well.

Thank you for reading and come again please.

By Michael Cooper

30 years in it, Senior Systems Engineer

Leave a Reply

Your email address will not be published.