Tuesday, July 14, 2020

Installing motionEye on Orange Pi Lite

I found this article in Japanese about how to install motionEye on an Orange Pi Lite. This article is more a "note to self" for use when I get down to actually installing it.

First is to download Armbian for the Orange Pi Lite, either the Ubuntu or Debian version. Then, flash the image to a microSD card. Use this microSD card to boot the Orange Pi Lite.

The initial login credentials should be root for the user and 1234 for the password. After which you will be prompted to change the root password. You should also follow the prompts to create a normal user.

Then, once in the console terminal, use the following commands to update the distro, install the requirements for motionEye, and finally install it via pip.

su

apt-get update

apt-get install -y motion ffmpeg v4l-utils

apt-get install -y python-pip python-dev curl libssl-dev libcurl4-openssl-dev libjpeg-dev

apt-get install zlib1g-dev libfreetype6-dev liblcms2-dev libwebp-dev tcl8.5-dev tk8.5-dev python-tk

apt-get install build-essential libffi-dev

pip install --upgrade setuptools

pip install wheel

pip install motioneye

sudo 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

pip install motioneye --upgrade

systemctl restart motioneye


This should start motionEye, which can then be accessed via port 8765. For example, if the Orange Pi Lite's IP address is 192.168.1.123, use a web browser to access the following address.
http://192.168.1.123:8765/

Login as admin (no password) to complete the rest of the setup.

I have been using an ESP32-CAM module as a simple IP camera at home, but the problem I face is stability. I am hoping that I can use the Orange Pi Lite with a USB camera module to create a more stable solution. Well, this "note to self" is for when I eventually get down to doing this. Hopefully, it is helpful to others too. Note that as of the date of this post, I have not actually tried this out yet and the procedure is simply taken from the article mentioned at the top of the post.

No comments: