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).
Hello!i am trying to start/stop the patrol via API. It was working some months ago, but now no more. Maybe you have changed something in the API? Currently I am using this (within a linux bash script):# Get tokenTOKEN=$(curl -H 'Content-Type: application/json' \ -X POST \ --data '[{"cmd":"Login","action":0,"param":{"User":{"userName":"Username","password":"Password"}}}]' \ "http://IP-address/cgi-bin/api.cgi?cmd=Login&token=null" \ | jq -r '.[0].value.Token.name')# Start tourcurl -v -H 'Content-Type: application/json' \ -X POST \ --data '[{"cmd":"PtzCtrl","action":0,"param":{"channel":0,"op":"StartPatrol","id":0}}]' \ "http://IP-address/cgi-bin/api.cgi?cmd=PtzCtrl&token=$TOKEN"Could you please give me some advise?Many thanks for your kind assistance!
Welcome Back!
Hi there! Join the Commnunity to get all the latest news, tips and more!