|
楼主 |
发表于 2018-5-27 22:42:30
|
显示全部楼层
这样命令在哪里键入啊?在树莓派里怎么安装homebridge-synology啊?sudo npm install -g homebridge-synology
Configuration
config.json
Example:
{
"bridge": {
"name": "Homebridge",
"username": "CC:22:3D:E3:CE:51",
"port": 51826,
"pin": "031-45-154"
},
"description": "This is an example configuration file for homebridge synology plugin",
"hint": "Always paste into jsonlint.com validation page before starting your homebridge, saves a lot of frustration",
"accessories": [
{
"accessory": "Synology",
"name": "Diskstation", // the name is displayed in homekit
"ip": "192.168.178.1", // ip of your diskstation
"mac": "A1:B3:C34:E5:EX", // mac of your diskstation
"port": "port number", // (optional) port number of the webinterface, default 5000 (or 5001 if you set secure=true)
"secure": false, // set this to true if you use a secure connection (https)
"account": "admin",
"password": "supersecret",
"version": 5, // (optional) DSM Version, default is 6
"timeout": 5000, // (optional) in ms, increase this value for slow diskstations
"disabled": ["temp"], // (optional) see "disable services"
"doPolling": true, // (optional) default is false
"pollingInterval": 60 // (optional) in s, default is 60
}
]
} |
|