galerija-bot/mjpeg-relay.sh

12 lines
241 B
Bash
Raw Normal View History

2023-06-06 16:33:42 +02:00
#!/bin/bash
source .env
# Inicializiraj kamero
url="$VIR/cm?cmnd=WcInit"
curl "$url"
2023-06-06 16:33:42 +02:00
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
cd $SCRIPT_DIR/mjpeg-relay
python2 relay.py http://localhost:8989/stream