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

    NVR API GetAlarm returning error

    Discussion About Products
    2
    3
    342
    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_597493679579258_597493679579258
      user_597493679579258 last edited by user_597493679579258_597493679579258

      I'm currently working on a python script to pull alarm status in order to activate an external device (light, siren etc), I have the API working to the degree that I can pull a token and use it to integrate the NVR for status eg GetChannelStatus is working correctly. The issue I have is that GetAlarm is returning an error. I am using python requests with:

      def alm_state(config,token):
          payload = [
              {
                  "cmd":"GetAlarm",
                  "action":1,
                  "param":{
                      "Alarm":{
                          "type":"md",
                          "channel":0,
                      }
                  }
              }
          ]
          return requests.post(f'http://{config["reolink"]["nvr_ip"]}/api.cgi?cmd=GetAlarm&token={token}', json=payload).json()

      Token and URL are working, the json conforms to the latest API documentation and mirrors the Pypi request for the same information.

      The response is as follows:

      [
        {
          "cmd":"Unknown",
          "code"=1,
          "error": {
            "details": "not support",
            "rspCode": -9
          }
        }
      ]

      The System is an RLN16-410 with 11 x RLC810A cameras attached.

      Reply Quote
      Share
      • Share this Post
      • Facebook
      • Twitter
      • copy the link
        Copied!
      0
        • user_597493679579258_597493679579258
          user_597493679579258 @user_597493679579258 last edited by

          @user_597493679579258_597493679579258
          The answer was to use GetMdAlarm

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

            @user_597493679579258_597493679579258 Correct.

            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