Giter VIP home page Giter VIP logo

reolink's Introduction

Reolink Python package

This is a package implementing the Reolink IP camera API. Also it’s providing a way to subscribe to Reolink events, so real-time events can be received on a webhook.

Usage

api = camera_api.Api('192.168.1.10', 80, 'user', 'mypassword')

# get settings, like ports etc.: await api.get_settings()

# Store the subscribe port subscribe_port = api.onvif_port

# get the states: await api.get_states()

# print some state value: print(api.ir_state)

# enable the infrared lights: await api.set_ir_lights(True)

# enable the spotlight: await api.set_spotlight(True)

# enable the siron: await api.set_sirenTrue)

# logout await api.logout()

# Now subscribe to events, suppose our webhook url is http://192.168.1.11/webhook123

sman = subscription_manager.Manager('192.168.1.10', subscribePort, ' user', 'mypassword') await sman.subscribe('http://192.168.1.11/webhook123')

# After some minutes check the renew timer (keep the eventing alive): if (sman.renewTimer <= 100): await sman.renew()

# Unsubscribe await sman.unsubscribe()

reolink's People

Contributors

cpainchaud avatar fwestenberg avatar ptyers avatar felfert avatar xannor avatar lasseslambertsen avatar gerard33 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.