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

    Cannot log into NVR using python API

    #ReolinkTrial
    2
    2
    735
    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.
    • AK_702558047166714
      AK last edited by

      Hi. New to reoling. All installed quickly NVR8-410 plus a few cameras. I can login from the PC browser, iPhone App, LAN and Externally. All working well.
      Installed reolink-ip and tried the sample code from python and I keep getting login error. Want to setup reolink cameras to raise an event when motion is detected.
      Any help is greatly appreciated!


      Windows10, Python 3.9 using Pycharm, Device RLN8-410

      ERROR:
      Failed to login at host 192.168.51.21:443.
      Failed to login at host 192.168.51.21:80.
      Host: 192.168.51.21:80: error obtaining host-settings response.

      CODE:

      from reolink_ip.api import Host
      import asyncio
      
      async def print_mac_address():
          # initialize the host
          host = Host('192.168.51.21', 80, 'admin', 'adk...')
          # connect and obtain/cache device settings and capabilities
          await host.get_host_data()
          # check if it is a camera or an NVR
          print("It is an NVR: %s, number of channels: %s", host.is_nvr, host.num_channels)
          # print mac address
          print(host.mac_address)
          # close the device connection
          await host.logout()
      
      if __name__ == "__main__":
          asyncio.run(print_mac_address())


      Reply Quote
      Share
      • Share this Post
      • Facebook
      • Twitter
      • copy the link
        Copied!
      0
        • user_721885226889401_721885226889401
          victormccormicke @AK last edited by user_721885226889401_721885226889401

          Hi. New to reoling. All installed quickly NVR8-410 plus a few cameras. I can login from the PC browser, iPhone App, LAN and Externally. All working well.
          Installed reolink-ip and tried the sample code from python and I keep getting login error. Want to setup reolink cameras to raise an event when motion is detected.
          Any help is greatly appreciated!
          TellPopeyes Survey


          Windows10, Python 3.9 using Pycharm, Device RLN8-410

          ERROR:
          Failed to login at host 192.168.51.21:443.
          Failed to login at host 192.168.51.21:80.
          Host: 192.168.51.21:80: error obtaining host-settings response.

          CODE:
          from reolink_ip.api import Host
          import asyncio
          
          async def print_mac_address():
              # initialize the host
              host = Host('192.168.51.21', 80, 'admin', 'adk...')
              # connect and obtain/cache device settings and capabilities
              await host.get_host_data()
              # check if it is a camera or an NVR
              print("It is an NVR: %s, number of channels: %s", host.is_nvr, host.num_channels)
              # print mac address
              print(host.mac_address)
              # close the device connection
              await host.logout()
          
          if __name__ == "__main__":
              asyncio.run(print_mac_address())

          Ensure that you're using the correct API endpoint and port in your Python code to communicate with the Reolink NVR. The default port is often 8000.

          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