some debugging tests

This commit is contained in:
mmaster 2021-09-23 22:55:13 +02:00
parent ca4883916f
commit 49f9f9b351
1 changed files with 4 additions and 2 deletions

View File

@ -1,6 +1,7 @@
#!/bin/sh
vars="/home/pi/birdcam/vars"
vars="vars"
#vars="/home/pi/birdcam/vars"
player="$(cat $vars | grep playercmd | cut -d'=' -f2)"
player_path="$(command -v $player)"
@ -54,7 +55,8 @@ fi
streamurl="rtsp://$1:554/user=admin&password=&channel=1&stream=0.sdp?real_stream"
if [ "$1" = "birdcam1" ]; then
$player_path $playerparam "$streamurl"
echo $player_path $playerparam "$streamurl"
sleep 60
elif [ "$1" = "birdcam2" ]; then
$player_path $playerparam "$streamurl"