Synology Surveillance Station API in Python
![Build Status](https://camo.githubusercontent.com/e355b2f071ebe9139ea8b296f75ef26e148810c0b4f02f4bd3fecf40bcef91da/68747470733a2f2f7472617669732d63692e6f72672f6b323068756d616e2f7375727665696c6c616e636573746174696f6e2e737667)
Python3 binding to Synology Surveillance API. I refer to the following document:
Surveillance_Station_Web_API_v2.0.pdf.
Endpoint |
Description |
SYNO.SurveillanceStation.Info |
Retrieve Surveillance Station-related general information |
Endpoint |
Description |
Missing |
SYNO.SurveillanceStation.Camera |
Retrieve camera-related information |
SaveOptimizeParam, SYNO.SurveillanceStation.Camera.Event, SYNO.SurveillanceStation.Camera.Import |
SYNO.SurveillanceStation.ActionRule |
Provides a method to acquire information of ActionRule |
|
SYNO.SurveillanceStation.Notification |
Control notification |
SYNO.SurveillanceStation.Notification.SMS, SYNO.SurveillanceStation.Notification.PushService, SYNO.SurveillanceStation.Notification.Email, SYNO.SurveillanceStation.Notification.Filter |
Endpoint |
Description |
SYNO.SurveillanceStation.PTZ |
Perform camera PTZ actions |
SYNO.SurveillanceStation.ExternalRecording |
Control external recording of cameras |
SYNO.SurveillanceStation.Event |
Query event information |
SYNO.SurveillanceStation.Device |
Get information of Visual Station and CMS |
SYNO.SurveillanceStation.Emap |
Get information of defined E-Maps |
SYNO.SurveillanceStation.Streaming |
Get video stream of live view and recorded events |
SYNO.SurveillanceStation.AudioStream |
Get audio stream of live view |
SYNO.SurveillanceStation.VideoStream |
Get video stream of live view |
pip install [--upgrade] https://github.com/k20human/surveillancestation/tarball/master#egg=surveillance-station
# Create API
api = Surveillancestation(host=config['host'], user=config['login'], passwd=config['password'])
# Get Surveillance Station infos
print('Get info')
jsonprint(api.info.get_info())
# Don't forget to logout
api.logout()