MotionEye. Installation: различия между версиями
Cless (обсуждение | вклад) |
Cless (обсуждение | вклад) |
||
| Строка 20: | Строка 20: | ||
<code>mkdir -p /var/lib/motioneye</code> | <code>mkdir -p /var/lib/motioneye</code> | ||
Add an init script, configure it to run at startup and start the motionEye server | === Add an init script, configure it to run at startup and start the motionEye server === | ||
=== Debian 7, sysvinit-based: === | ==== Debian 7, sysvinit-based: ==== | ||
<code>cp /usr/local/share/motioneye/extra/motioneye.init-debian /etc/init.d/motioneye</code> | <code>cp /usr/local/share/motioneye/extra/motioneye.init-debian /etc/init.d/motioneye</code> | ||
| Строка 31: | Строка 31: | ||
<code>/etc/init.d/motioneye start</code> | <code>/etc/init.d/motioneye start</code> | ||
=== Debian 8 and newer, systemd-based: === | ==== Debian 8 and newer, systemd-based: ==== | ||
<code>cp /usr/local/share/motioneye/extra/motioneye.systemd-unit-local /etc/systemd/system/motioneye.service</code> | <code>cp /usr/local/share/motioneye/extra/motioneye.systemd-unit-local /etc/systemd/system/motioneye.service</code> | ||
Версия 23:03, 16 ноября 2023
Installation
Debian
Install utils
apt-get install motion ffmpeg v4l-utils
note: Python 2.7 is required. If your system still runs Python 2.6 or older, please upgrade.
apt-get install python-pip python-dev python-setuptools curl libssl-dev libcurl4-openssl-dev libjpeg-dev libz-dev
Motioneye installation
pip install motioneye
Config
mkdir -p /etc/motioneye
cp /usr/local/share/motioneye/extra/motioneye.conf.sample /etc/motioneye/motioneye.conf
Prepare the media directory
mkdir -p /var/lib/motioneye
Add an init script, configure it to run at startup and start the motionEye server
Debian 7, sysvinit-based:
cp /usr/local/share/motioneye/extra/motioneye.init-debian /etc/init.d/motioneye
chmod +x /etc/init.d/motioneye
update-rc.d -f motioneye defaults
/etc/init.d/motioneye start
Debian 8 and newer, systemd-based:
cp /usr/local/share/motioneye/extra/motioneye.systemd-unit-local /etc/systemd/system/motioneye.service
systemctl daemon-reload
systemctl enable motioneye
systemctl start motioneye
To upgrade to the newest version of motioneye, after it has been released, just issue:
pip install motioneye --upgrade
systemctl restart motioneye
Go to web
http://192.168.1.100:8765
admin
<ПУСТОЙ_ПАРОЛЬ>
Raspberry PI
Качаем образ для нашего устройства
https://github.com/ccrisan/motioneyeos/releases
Записываем образ на SD карту
В windows это можно сделать программой Etcher
Загружаемся на rpi с SD карты
Устройство получит IP адрес по DHCP
Проходим по веб
http://192.168.1.100
admin
<ПУСТОЙ_ПАРОЛЬ>
IP Camera connection
Camera Profvideo IP20 as example
Убеждаемся что протокол RTSP на камере включен
??? # путь для подключения камеры из motioneye ??? rtsp://192.168.17.205:554/
Для определения URI rtsp для подключения камеры используем программу "Onvif device manager"