support multiple cameras

This commit is contained in:
2023-07-04 22:42:21 +02:00
parent 9e4a217b5f
commit 59e6c5048b
8 changed files with 68 additions and 59 deletions

View File

@ -1,28 +1,9 @@
# msv-webcam-backend
useradd --system msvwebcambackend -m
passwd -l msvwebcambackend
- `mkdir /opt/msv-webcam-backend/`
- `cd /opt/msv-webcam-backend/`
- import `msv_webcam_backend.py` and `config.py`
- Set the constants in `config.py`
- import `msv_webcam_backend.py`
- `chmod +x /opt/msv-webcam-backend/msv_webcam_backend.py`
- `chown -R msvwebcambackend /opt/msv-webcam-backend/`
- `nano /etc/systemd/system/msv-webcam-backend.service`
- create dst dir `mkdir -p /var/www/html/msv-buehl-moos.de/webcam/data`
- `systemctl daemon-reload && systemctl enable --now msv-webcam-backend.service`
mkdir /var/www/html/msv-buehl-moos.de/webcam/
chown -R wwwrun:wwwrun /var/www/html/msv-buehl-moos.de/
location /webcam {
root /var/www/html/msv-buehl-moos.de;
index index.html;
}