-
Hello, I would like to enable and disable recording/monitoring on my Reolink cameras using HTML or PHP. The Reolink command overview (Java) doesn't help me.
Has anyone already implemented this function and could help me?
Thanks, ThomasReply QuoteShare0- Share this Post
-
copy the link
Copied!
-
@user_660739089141819_660739089141819 Can you find solution? if yes give me solution.
-
@user_660739089141819_660739089141819 You can use the curl command from your Windows CMD prompt.
curl -s -k -X POST -H "Content-Type : application/json" -d "[{\"cmd\":\"SetRecV20\",\"action\":0,\"param\":{\"Rec\":{\"channel\":0,\"enable\":VALUE}}}]" "https://#IP_OF_CAMERA#/cgi-bin/api.cgi?user=#username#&password=#password#"
Replace VALUE by 0 to disable and 1 to enable, IP_OF_CAMERA the IP of the camera and the credentials.
-
It appears that Reolink cameras do not have a direct API for enabling and disabling recording via HTML or PHP. However, you can enable or disable recording on Reolink cameras using the Reolink App or Client. UPSers Login
Reply QuoteShare0- Share this Post
-
copy the link
Copied!
-
I just want to tell you that You can enable and disable recording on Reolink cameras using Reolink's API, which supports HTTP requests to control the cameras. You can use a combination of HTML and PHP to send HTTP requests to the camera's API to control recording.
And here's an example of how you can enable recording on a Reolink camera using PHP:<?php $url = "http://[camera_ip]/cgi-bin/api.cgi?cmd=snap&action=stop"; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $response = curl_exec($ch); curl_close($ch); echo $response; ?> <?php $url = "http://[camera_ip]/cgi-bin/api.cgi?cmd=snap&action=start"; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $response = curl_exec($ch); curl_close($ch); echo $response; ?>
Note that you need to replace
[camera_ip]
with the IP address of your Reolink camera. Additionally, you may need to consult the Reolink API documentation for more information on the available commands and their parameters.
How to Enable and disable recording on my Reolink cameras using HTML or PHP?
-
Hello, I would like to enable and disable recording/monitoring on my Reolink cameras using HTML or PHP. The Reolink command overview (Java) doesn't help me.
Has anyone already implemented this function and could help me?
Thanks, Thomas -
It appears that Reolink cameras do not have a direct API for enabling and disabling recording via HTML or PHP. However, you can enable or disable recording on Reolink cameras using the Reolink App or Client. UPSers Login
All Categories