Reolink updates Learn More
Meet Reolink at IFA 2024! Learn More
Reolink Q&A Learn More
Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
My BeeCam has 5 defined preset positions, but Cruise doesn't really work very well because the focus points are different for each preset, they're not stored, and the RLC-423S doesn't auto-focus automatically after moving to a preset.So I wrote a script to do the following:
#!/bin/bashecho "username:"read UserNameecho "password:"read Passwordfor (( ; ; ))doReolinkToken='curl -s GET "http://192.168.1.11/cgi-bin/api.cgi?cmd=Login&token=null" -d '[{"cmd":"Login","action":0,"param":{"User":{"userName":"'$UserName'","password":"'$Password'"}}}]' | jq -r '.[].value.Token.name''echo $ReolinkTokenPositions=$1Dwell=$2PositionPause=4FocusPause=3for ((TheLoop=1; TheLoop<=$Positions; TheLoop++))do curl -s POST "http://192.168.1.11/cgi-bin/api.cgi?cmd=PtzCtrl&token=$ReolinkToken" -d '[{"cmd":"PtzCtrl","action":0,"param":{"channel":0,"op":"ToPos","speed":32,"id":'$TheLoop'}}]'echo "Panning to new preset . . . "sleep $PositionPausecurl -s POST "http://192.168.1.11/cgi-bin/api.cgi?cmd=PtzCtrl&token=$ReolinkToken" -d '[{"cmd":"PtzCtrl","action":0,"param":{"channel":0,"op":"ZoomInc","speed":32}}]'echo "Focusing . . . "sleep $FocusPausecurl -s POST "http://192.168.1.11/cgi-bin/api.cgi?cmd=PtzCtrl&token=$ReolinkToken" -d '[{"cmd":"PtzCtrl","action":0,"param":{"channel":0,"op":"Stop"}}]'echo "Dwelling for " $Dwell "seconds . . . "sleep $Dwelldonedone
Welcome Back!
Hi there! Join the Commnunity to get all the latest news, tips and more!