ioBroker + MotionEye

Ref.: https://wiki.instar.de/Erweitert/IOBroker_auf_Raspberry_Pi/motionEye/

Preconditions

MotionEye uses port 8081. It is the same port that is used by ioBroker. So before installing MotionEye, change the ioBroker port to e.g. 7777.
Use admin-Adapter to change the port for ioBroker.

Install

# install required dependencies for motion
sudo apt-get install ffmpeg v4l-utils
sudo apt install libpq5 libmariadb3 libmicrohttpd12 mariadb-common mysql-common

# download and install latest motion version
wget https://github.com/Motion-Project/motion/releases/download/release-4.3.1/buster_motion_4.3.1-1_armhf.deb
sudo dpkg -i buster_motion_4.3.1-1_armhf.deb

# install all motioneye dependencies
sudo apt-get -y install python-pip python-dev libssl-dev libcurl4-openssl-dev libjpeg-dev libz-dev

# create configuration folder for motioneye
sudo mkdir -p /etc/motioneye
sudo cp /usr/local/share/motioneye/extra/motioneye.conf.sample /etc/motioneye/motioneye.conf

# create media folder for motioneye
sudo mkdir -p /var/lib/motioneye

# register mitioneye as service and start them
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

# to update motioneye run
sudo pip install motioneye --upgrade
sudo systemctl restart motioneye

Open MotionEye

Use your host-ip and port 8765 e.g. http://192.168.178.100:8765 to open MotionEye in browser. To login use adminas user without password.

Add your first camera using the menu button on the right side and than the dropdown box right from them.

You can access the stream of your first camera on port 8081 e.g. http://192.168.178.100:8081, increase the port by one for other cameras.