Reolink updates Learn More
Meet Reolink at IFA 2024! Learn More
Reolink Q&A Learn More
Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
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-410ERROR: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())
Welcome Back!
Hi there! Join the Commnunity to get all the latest news, tips and more!