Navigation

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

    Learn More

    Reolink updates Learn More

    Meet Reolink at IFA 2024! Learn More

    Reolink Q&A Learn More

    Start/Stop patrol API issue on RLC-823A 16X

    Discussion About Products
    2
    10
    999
    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.
    • das-dos_208145718501556
      das-dos last edited by

      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 token
      TOKEN=$(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 tour
      curl -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!

      Reply Quote
      Share
      • Share this Post
      • Facebook
      • Twitter
      • copy the link
        Copied!
      0
        • joseph_1979
          Joseph Global Moderator @das-dos last edited by joseph_1979

          @das-dos_208145718501556 Try this without token and ensure https is enabled. None of my cameras have the patrol feature :(.

          curl -s -k -X POST -H "Content-Type: application/json" -d "[{\"cmd\":\"PtzCtrl\",\"action\":0,\"param\":{\"channel\":0,\"op\":\"StartPatrol\",\"id\":0}}]" "https://192.168.1.X/cgi-bin/api.cgi?user=${username}&password=${passwd}"


          Reply Quote
          Share
          • Share this Post
          • Facebook
          • Twitter
          • copy the link
            Copied!
          0
          • das-dos_208145718501556
            das-dos @Joseph last edited by

            @joseph_1979
            Thank you Joseph for your kind assistance. Unfortunately this is not working.
            Maybe you or someone else has another idea?

            Reply Quote
            Share
            • Share this Post
            • Facebook
            • Twitter
            • copy the link
              Copied!
            0
            • joseph_1979
              Joseph Global Moderator @das-dos last edited by joseph_1979

              @das-dos_208145718501556 I replaced the '5' with '0'. Please insert your IP and credentials and try again. What is the error received? Ensure https is enabled. I tried the command on a non-patrolled PTZ camera and hereunder find the expected response. This is because parameter StartPatrol is not accepted on my camera.





              Reply Quote
              Share
              • Share this Post
              • Facebook
              • Twitter
              • copy the link
                Copied!
              0
              • das-dos_208145718501556
                das-dos @Joseph last edited by

                @joseph_1979 Hi Joseph,
                I changed your 4 to 0 before (and also tested 1) and used the code as follows:

                #!/bin/bash
                curl -s -k -X POST -H "Content-Type: application/json" -d "[{\"cmd\":\"PtzCtrl\",\"action\":0,\"param\":{\"channel\":0,\"op\":\"StartPatrol\",\"id\":0}}]" "https://$IP_adress_of_cam/cgi-bin/api.cgi?cmd=PtzCtrl&user=$XXX&password=$YYYY"

                The script does not respond anything, it does not come back.

                https is activated.

                Any ideas?

                Reply Quote
                Share
                • Share this Post
                • Facebook
                • Twitter
                • copy the link
                  Copied!
                0
                • joseph_1979
                  Joseph Global Moderator @das-dos last edited by joseph_1979

                  @das-dos_208145718501556 No response!! So command is not reaching the camera as otherwise there is a response. Can you please send the command directly rather than executing the script? Can you ping the camera?

                  Try this simple cmd to get the time

                  curl -s -k -X POST -H "Content-Type : application/json" -d "[{\"cmd\":\"GetTime\",\"action\":1}]" "https://camera_IP/cgi-bin/api.cgi?user=USER&password=PASSWORD"

                  Reply Quote
                  Share
                  • Share this Post
                  • Facebook
                  • Twitter
                  • copy the link
                    Copied!
                  0
                  • das-dos_208145718501556
                    das-dos @Joseph last edited by

                    This post is deleted!
                    Reply Quote
                    Share
                    0
                    • das-dos_208145718501556
                      das-dos @Joseph last edited by

                      Hi Joseph,

                      your time command is working. But your PTZ command not. The PTZ command is not giving any response at all.
                      So it´s not a connection issue. The connection is really good. I do not have any interruptions at all even in full HD stream.

                      Strange. I still think the cam does not understand all of the Reolink API command.Maybe because this RLC-823A 16X version is completely new or they changed the API.

                      Highly appreciated if you have further ideas which I could test.

                      Reply Quote
                      Share
                      • Share this Post
                      • Facebook
                      • Twitter
                      • copy the link
                        Copied!
                      0
                      • das-dos_208145718501556
                        das-dos @das-dos last edited by

                        @das-dos_208145718501556 stupid mistake in writing at my end. Your PTZ code is running fine!
                        Sorry for wasting your time with my reply´s and many many thanks for your support!

                        Reply Quote
                        Share
                        • Share this Post
                        • Facebook
                        • Twitter
                        • copy the link
                          Copied!
                        0
                        • joseph_1979
                          Joseph Global Moderator @das-dos last edited by

                          @das-dos_208145718501556 Ha ha ha............. it's normal. Sometimes a glass of wine and some nuts will help together with a good movie :).

                          Reply Quote
                          Share
                          • Share this Post
                          • Facebook
                          • Twitter
                          • copy the link
                            Copied!
                          0
                          View 7 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 2025 © Reolink All Rights Reserved.

                        Welcome Back!

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

                        Join Now