brandond / sercomm

A Python interface for Sercomm IP camera configuration

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

sercomm

A Python interface for Sercomm IP camera configuration

Usage

from sercomm import SercommCamera
camera = SercommCamera('10.0.1.123', username='administrator', password='', ssl=False)

# Configure a POST webhook. Only a single webhook is supported
camera.enable_webhook('http://myserver/webhooks/webhook_id', method='POST')

# Enable events, triggered at most once per minute
camera.set_event_interval(enabled=True, interval=1)

# Enable webhook for passive infrared and video motion detection events
camera.set_event_destinations('pir', webhook=True)
camera.set_event_destinations('mt', webhook=True)

# Get the current MJPEG video address
print(camera.mjpeg_url)

About

A Python interface for Sercomm IP camera configuration

License:Apache License 2.0


Languages

Language:Python 100.0%