Navigation

    Home
    All Categories
    • KEEN Trail Camera
    • Announcements and News
    • Wishlist
    • #ReolinkTrial
    • Discussion About Products
    • Reolink Captures
    • Reolink Client & APP
    #ReolinkTrial
    Reolink Captures
    Log in to post
    Guest
    • Guest
    • Register
    • Login

    Spring Renewal - Share Spring Time-lapse to Win Cameras

    Learn More

    360° Fisheye Indoor Camera - Why We Made Fisheye & What We Have Done Learn More

    Full Introduction and Tips for Shooting Time-lapse Video with Reolink Camera Learn More

    New Reolink Client v.8.8.5 - Auto Upgrade Client Feature! Learn More

    How to Enable and disable recording on my Reolink cameras using HTML or PHP?

    Discussion About Products
    5
    5
    67
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • user_660739089141819_660739089141819
      user_660739089141819 last edited by

      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

      Reply Quote
      Share
      • Share this Post
      • Facebook
      • Twitter
      • copy the link
        Copied!
      0
        • user_653179371208819_653179371208819
          Brinegar021 @user_660739089141819 last edited by

          @user_660739089141819_660739089141819 Can you find solution? if yes give me solution.

          Reply Quote
          Share
          • Share this Post
          • Facebook
          • Twitter
          • copy the link
            Copied!
          0
          • joseph chircop_497308027822318
            joseph_chircop Global Moderator @user_660739089141819 last edited by joseph chircop_497308027822318

            @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.

            Reply Quote
            Share
            • Share this Post
            • Facebook
            • Twitter
            • copy the link
              Copied!
            0
            View 0 replies
          • user_660914434023530_660914434023530
            user_660914434023530 last edited by user_660914434023530_660914434023530

            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 Quote
            Share
            • Share this Post
            • Facebook
            • Twitter
            • copy the link
              Copied!
            0
              • user_637618372325376_637618372325376
                user_637618372325376 @user_660914434023530 last edited by

                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.

                Reply Quote
                Share
                • Share this Post
                • Facebook
                • Twitter
                • copy the link
                  Copied!
                0
                View 0 replies
              • First post
                Last post
              All Categories
              Announcements and News Reolink Client & APP Discussion About Products #ReolinkTrial Reolink Captures Wishlist KEEN Trail Camera
              Never miss Reolink hot deals, news, and updates tailored for you.

              Thanks for your subscription!

              Please enter a valid email address.

              Oops… Something went wrong. Please try again later.

              You are already subscribed to this email list. :)

              Submission failed. Please try again later.

              Reolink Store|Support|About Us|Privacy Policy|Terms and Conditions

              Copyright 2023 © Reolink All Rights Reserved.

              Welcome Back!

              Hi there! Join the Commnunity to get all the latest news, tips and more!

              Join Now