Popravljeni vent endpointi na nove konzolne klice
parent
0d74389113
commit
84bd2791b2
|
@ -5,12 +5,20 @@ source .env
|
||||||
ventilator=$1
|
ventilator=$1
|
||||||
|
|
||||||
if [[ ! $ventilator ]]; then
|
if [[ ! $ventilator ]]; then
|
||||||
echo "Izberi ventilator (1 ali 2 kot parameter)"
|
echo "Izberi ventilator (1 ali 2 kot parameter; 3 za oba ter 0 za izklop)"
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
url="$VIR/?m=1&o=$ventilator"
|
if [[ $ventilator = 1 ]]; then
|
||||||
|
url="$VIR/cm?cmnd=PojdiLevo%202000"
|
||||||
|
elif [[ $ventilator = 2 ]]; then
|
||||||
|
url="$VIR/cm?cmnd=PojdiDesno%202000"
|
||||||
|
elif [[ $ventilator = 3 ]]; then
|
||||||
|
url="$VIR/cm?cmnd=PojdiRavno%202000"
|
||||||
|
elif [[ $ventilator = 0 ]]; then
|
||||||
|
url="$VIR/cm?cmnd=UgasniVse"
|
||||||
|
else
|
||||||
|
echo "Izbrana možnost ($ventilator) je neveljavna"
|
||||||
|
fi
|
||||||
|
|
||||||
curl "$url"
|
curl "$url"
|
||||||
sleep 2
|
|
||||||
curl "$url"
|
|
||||||
|
|
|
@ -1,9 +1,12 @@
|
||||||
rtp-cam: {
|
rtp-cam: {
|
||||||
type = "rtp"
|
type = "rtp"
|
||||||
id = 666 description = "esp32 cam!"
|
id = 666
|
||||||
|
description = "esp32 cam!"
|
||||||
metadata = "You can use this metadata section to put any info you want!"
|
metadata = "You can use this metadata section to put any info you want!"
|
||||||
audio = false video = true
|
audio = false
|
||||||
|
video = true
|
||||||
videoport = 8004
|
videoport = 8004
|
||||||
videopt = 100
|
videopt = 100
|
||||||
|
videortpmap = "VP8/90000"
|
||||||
videocodec = "vp8"
|
videocodec = "vp8"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue