Skip to content

A Python interface for Sercomm IP camera configuration

License

Notifications You must be signed in to change notification settings

brandond/sercomm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages