forked from thoukydides/homebridge-skybell
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.schema.json
69 lines (69 loc) · 2.8 KB
/
config.schema.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
{
"pluginAlias": "SkyBell",
"pluginType": "platform",
"singular": true,
"headerDisplay": "For help please refer to the [README](https://github.com/thoukydides/homebridge-skybell/blob/master/README.md) and [`config.json`](https://github.com/thoukydides/homebridge-skybell/wiki/config.json).",
"footerDisplay": "© 2017-2020 [Alexander Thoukydides](https://www.thouky.co.uk/)",
"schema": {
"type": "object",
"properties": {
"username": {
"title": "Username",
"type": "string",
"format": "email",
"required": true
},
"password": {
"title": "Password",
"type": "string",
"required": true
},
"port": {
"title": "Webhooks Port",
"type": "integer",
"minimum": 1024,
"maximum": 65535
},
"secret": {
"title": "Webhooks Secret",
"type": "string"
}
}
},
"form": [{
"type": "fieldset",
"title": "SkyBell Account",
"description": "Please enter the email address and password used to log into the SkyBell HD app:",
"expandable": false,
"items": [{
"type": "flex",
"flex-flow": "row",
"items": [{
"key": "username",
"placeholder": "e.g. [email protected]"
},{
"key": "password",
"type": "password",
"placeholder": "e.g. Passw0rd!"
}]
}]
},{
"type": "fieldset",
"title": "Webhooks Setup <i>(optional)</i>",
"description": "Webhooks can be used to speed-up detection of button press and motion events.<br>See <a href='https://github.com/thoukydides/homebridge-skybell/wiki/Webhooks'>Webhooks</a> and <a href='https://github.com/thoukydides/homebridge-skybell/wiki/Webhooks-Sniffer'>Webhooks Sniffer</a> for more details.",
"expandable": true,
"expanded": false,
"items": [{
"key": "port",
"description": "Select the port number on which the webhooks server should listen for requests.",
"type": "number",
"placeholder": "e.g. 47569"
},{
"key": "secret",
"condition": "model.port",
"description": "An optional phrase used to authenticate webhook requests. If this is specified then the same phrase must be included in all webhook requests.",
"placeholder": "e.g. My webhooks secret"
}]
}],
"display": null
}