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

    Fixed autofocus value via API

    Discussion About Products
    2
    2
    402
    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

      Hi!
      I have a RLC-823A 16X and steering it via API (via linux curl commands) to go to certain patrol points.

      Currently I have an issue that the autofocus do center a wrong thing within the camera area which is significantly closer to the cam then the area I would like to have autofocused in the background more far away.

      Therefore within my script, when steering to this specific patrol point, I would like to disable the autofocus via API, then to set a fixed focus value and when steering to the next patrol point I would like to enable the autofocus again.

      Could someone help me with the curl command including the https API code to do so?

      Many thanks in advance 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 the following. Assume you have set preset index 6. in API v8 I cannot find any function which allows you to focus only.

          curl -s -k -X POST -H "Content-Type : application/json" -d "[{\"cmd\": \"GetAutoFocus\",\"action\": 1,\"param\": {\"channel\": 0}}]" "https://192.168.1.XXX/cgi-bin/api.cgi?user=#username#&password=#password#"

          curl -s -k -X POST -H "Content-Type : application/json" -d "[{\"cmd\": \"GetPtzPatrol\",\"action\": 1,\"param\": {\"channel\": 0}}]" "https://192.168.1.XXX/cgi-bin/api.cgi?user=#username#&password=#password#"

          You can use GetPtzPreset

          curl -s -k -X POST -H "Content-Type : application/json" -d "[{\"cmd": \"SetAutoFocus\",\"action\": 0,\"param\": {\"AutoFocus\": {\"channel\": 0,\"disable\": 1}}}]" "https://192.168.1.XXX/cgi-bin/api.cgi?user=#username#&password=#password#"

          curl -s -k -X POST -H "Content-Type : application/json" -d "[{\"cmd\": \"StartZoomFocus\",\"action\": 0,\"param\": {\"ZoomFocus\": {\"channel\": 0,\"pos\": 6,\"op\": \"ZoomPos\"}}}]" "https://192.168.1.XXX/cgi-bin/api.cgi?user=#username#&password=#password#"

          curl -s -k -X POST -H "Content-Type : application/json" -d "[{\"cmd\": \"SetAutoFocus\",\"action\": 0,\"param\": {\"AutoFocus\": {\"channel\": 0,\"disable\": 0}}}]" "https://192.168.1.XXX/cgi-bin/api.cgi?user=#username#&password=#password#"

          Note that I didn't test these APIs as I am at the office.

          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 2025 © Reolink All Rights Reserved.

        Welcome Back!

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

        Join Now