-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.schema.json
215 lines (215 loc) · 6.35 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
{
"pluginAlias": "NoIP",
"pluginType": "platform",
"singular": true,
"customUi": true,
"customUiPath": "./dist/homebridge-ui",
"headerDisplay": "<p align='center'><img width='250px' src='https://raw.githubusercontent.com/homebridge-plugins/homebridge-noip/latest/branding/Homebridge_x_No-IP.svg'></p>\n\nThe **Homebridge No-IP** plugin allows you to update your No-IP hostnames. \n\nTo get started link your No-IP account using the button below.",
"footerDisplay": "Your No-IP account has been linked. Please raise any issues on our [project page](https://github.com/homebridge-plugins/homebridge-noip/issues).\n\nIf you would like to have other features, fill out [Feature Request Form](https://github.com/homebridge-plugins/homebridge-noip/issues/new?assignees=&labels=&template=feature_request.md).",
"schema": {
"type": "object",
"properties": {
"name": {
"type": "string",
"title": "Name",
"default": "NoIP",
"required": true
},
"devices": {
"type": "array",
"items": {
"title": "Devices",
"type": "object",
"properties": {
"configDeviceName": {
"title": "Device Name",
"type": "string",
"pattern": "^[a-zA-Z0-9]+([a-zA-Z0-9 ]*[a-zA-Z0-9]+)?$",
"placeholder": "My Device"
},
"username": {
"title": "NoIP Username/Email",
"type": "string",
"required": true,
"x-schema-form": {
"type": "email"
}
},
"password": {
"title": "NoIP Password",
"type": "string",
"x-schema-form": {
"type": "password"
}
},
"ipv4or6": {
"title": "IPv4 or IPv6",
"type": "string",
"required": true,
"default": "ipv4",
"oneOf": [
{
"title": "IPv4",
"enum": ["ipv4"]
},
{
"title": "IPv6",
"enum": ["ipv6"]
}
]
},
"ipProvider": {
"title": "IP Provider",
"type": "string",
"required": true,
"default": "ipinfo",
"oneOf": [
{
"title": "ipify.org",
"enum": ["ipify"]
},
{
"title": "getmyip.dev",
"enum": ["getmyip"]
},
{
"title": "ipapi.co",
"enum": ["ipapi"]
},
{
"title": "my-ip.io",
"enum": ["myip"]
},
{
"title": "ipinfo.io",
"enum": ["ipinfo"]
}
]
},
"hostname": {
"title": "Hostname",
"type": "string"
},
"firmware": {
"title": "Firmware Override",
"type": "string",
"placeholder": "1.2.8"
},
"refreshRate": {
"title": "Device Refresh Rate",
"type": "number",
"minimum": 1800,
"placeholder": 1800,
"description": "Indicates the number of seconds between polls of the No-IP service."
},
"logging": {
"title": "Device Logging Override Setting",
"type": "string",
"required": true,
"default": "",
"oneOf": [
{
"title": "Default Logging",
"enum": [""]
},
{
"title": "Standard Logging",
"enum": ["standard"]
},
{
"title": "No Logging",
"enum": ["none"]
},
{
"title": "Debug Logging",
"enum": ["debug"]
}
]
},
"delete": {
"title": "Delete Device",
"type": "boolean"
}
}
}
},
"refreshRate": {
"title": "Refresh Rate",
"type": "number",
"minimum": 1800,
"placeholder": 1800,
"description": "Indicates the number of seconds between polls of the No-IP service."
},
"logging": {
"title": "Plugin Logging Setting",
"type": "string",
"required": true,
"default": "",
"oneOf": [
{
"title": "Default Logging",
"enum": [""]
},
{
"title": "Standard Logging",
"enum": ["standard"]
},
{
"title": "No Logging",
"enum": ["none"]
},
{
"title": "Debug Logging",
"enum": ["debug"]
}
]
},
"allowInvalidCharacters": {
"title": "Allow Invalid Characters",
"type": "boolean",
"default": false,
"description": "Allow invalid characters in the configDeviceName. This is not recommended."
}
}
},
"layout": [
{
"key": "devices",
"notitle": false,
"type": "tabarray",
"title": "{{ value.configDeviceName || value.hostname || 'New Hostname' }}",
"expandable": true,
"expanded": false,
"orderable": false,
"items": [
"devices[].configDeviceName",
"devices[].hostname",
"devices[].username",
"devices[].password",
"devices[].ipv4or6",
"devices[].ipProvider",
"devices[].firmware",
"devices[].refreshRate",
"devices[].logging"
]
},
{
"type": "fieldset",
"title": "Advanced Settings",
"expandable": true,
"expanded": false,
"items": [
{
"type": "help",
"helpvalue": "<h5>Refresh Rate</h5><em class='primary-text'>Refresh Rate indicates the number of seconds between polls of the No-IP service.</em>"
},
{
"key": "refreshRate",
"notitle": true
},
"logging",
"allowInvalidCharacters"
]
}
]
}