项目作者: philipkocanda

项目描述 :
Synology Surveillance Station CLI
高级语言: Python
项目地址: git://github.com/philipkocanda/synology-ss.git
创建时间: 2017-12-02T16:05:34Z
项目社区:https://github.com/philipkocanda/synology-ss

开源协议:

下载


Synology Surveillance Station CLI

Manage “Home Mode” status, toggle camera enabled/disabled state, and list the available cameras.

How it works:

  1. > ./synology-ss.py home_mode
  2. Home mode is off.
  1. > ./synology-ss.py home_mode on
  2. Home mode has been turned on.
  1. > ./synology-ss.py camera 1 on
  2. Camera 1 has been enabled.
  1. > ./synology-ss.py cameras
  2. ID Camera IP State Resolution
  3. --- ------------ ------------ ------------ ------------
  4. 1 camera-2 10.0.1.60 enabled 1280x720
  5. 2 camera-1 10.0.1.59 enabled 1280x720
  6. 3 raspberry-pi 10.0.1.58 disabled 800x600

That’s it!

Configuring

Make sure you have a config.json file in the same directory as the script. A config-template.json is included in the repo:

  1. {
  2. "username": "admin",
  3. "password": "",
  4. "url": "https://your-synology-nas.com:5001"
  5. }

Debugging

If something isn’t working out, pass the --debug option to see what’s going on.