which reolink camera do you have?
It’s reolink C2-pro
I have a RLC-23 and I saved preset locations to point at in the camera web interface and setup a restful command to that tell the camera to point at the saved preset locations.
that is exactly what I need. Would you mind sharing those rest commands?
Ok, I figured it out.
For those who want to know how:
- Open the admin page of your camera. Mine was on http://192.168.0.121
- Go to the PTZ section and see your pre-configured locations
- Open your debug tools of your browser (on mac, F12) and select the network tab
- Execute the command to move to default location
- Take a look at the network tab to see which url was called
- Enjoy
One example:
http://192.168.0.121/cgi-bin/api.cgi?cmd=PtzCtrl&token=xxxxxxx
Glad you figured it.
If you are on use Chrome Ctrl+Shift+i to bring up the network panel.
rest_command:
poolcamptz1:
url: http://192.168.1.128/cgi-bin/api.cgi?cmd=PtzCtrl&token=xxxxxxxxxxxx
method: POST
payload: '[{"cmd":"PtzCtrl","action":0,"param":{"channel":0,"op":"ToPos","speed":32,"id":1}}]'
"id"1 refers to saved camera position 1
1 Like
Yes, that’s exactly how I ended doing it, thank you. The hardest par was to get a token hourly inside the hassio way of doing things.
How did you mange that?
I wrote a detailed description here:
1 Like
Where you can check for the reolink
1 Like