-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathconfig.schema.json
executable file
·255 lines (255 loc) · 8.25 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
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
{
"pluginAlias": "homebridge-display",
"pluginType": "platform",
"singular": true,
"headerDisplay": "Instructions for setting up the config can be found on the [GitHub Wiki](https://github.com/EricAndrechek/homebridge-display/wiki/Installation)",
"schema": {
"Config": {
"expandable": false,
"type": "object",
"properties": {
"background": {
"title": "Background Image URL",
"type": "string",
"default": "https://i.postimg.cc/MpjZQcnn/background-image.jpg",
"required": true
},
"app_id": {
"title": "App Icon Image URL",
"type": "string",
"default": "https://i.postimg.cc/jjCsX4gH/home-black-ios.png",
"required": true
},
"private": {
"title": "Password Protection Enabled (currently not set up to do anything)",
"type": "boolean",
"default": false,
"required": true
},
"port": {
"title": "Homebridge-Display Port",
"type": "integer",
"default": 6969,
"required": true
},
"customTitle": {
"title": "Custom Webpage Title",
"type": "string",
"default": "Home2.0",
"required": true
},
"customCSS": {
"title": "Paste your own CSS to override CSS on the page to tweak things you don't like",
"type": "string",
"required": false
}
}
},
"Boxes": {
"title": "Decide what each box displays",
"type": "object",
"expandable": false,
"properties": {
"Box1": {
"title": "First Box",
"type": "string",
"default": "blank",
"oneOf": [
{ "title": "Spotify Control", "enum": ["spotify"] },
{ "title": "Sonos Control", "enum": ["sonos"] },
{ "title": "Calculator", "enum": ["calculator"] },
{ "title": "Clock", "enum": ["clock"] },
{ "title": "Weather", "enum": ["weather"] },
{ "title": "RSS News Feed", "enum": ["news"] },
{ "title": "Lyrics", "enum": ["lyrics"] },
{ "title": "Accessory Control", "enum": ["iot"] },
{ "title": "Mirror", "enum": ["mirror"] },
{ "title": "Blank", "enum": ["blank"] }
],
"required": true
},
"Box2": {
"title": "Second Box",
"type": "string",
"default": "blank",
"oneOf": [
{ "title": "Spotify Control", "enum": ["spotify"] },
{ "title": "Sonos Control", "enum": ["sonos"] },
{ "title": "Calculator", "enum": ["calculator"] },
{ "title": "Clock", "enum": ["clock"] },
{ "title": "Weather", "enum": ["weather"] },
{ "title": "RSS News Feed", "enum": ["news"] },
{ "title": "Lyrics", "enum": ["lyrics"] },
{ "title": "Accessory Control", "enum": ["iot"] },
{ "title": "Mirror", "enum": ["mirror"] },
{ "title": "Blank", "enum": ["blank"] }
],
"required": true
},
"Box3": {
"title": "Third Box",
"type": "string",
"default": "blank",
"oneOf": [
{ "title": "Spotify Control", "enum": ["spotify"] },
{ "title": "Sonos Control", "enum": ["sonos"] },
{ "title": "Calculator", "enum": ["calculator"] },
{ "title": "Clock", "enum": ["clock"] },
{ "title": "Weather", "enum": ["weather"] },
{ "title": "RSS News Feed", "enum": ["news"] },
{ "title": "Lyrics", "enum": ["lyrics"] },
{ "title": "Accessory Control", "enum": ["iot"] },
{ "title": "Mirror", "enum": ["mirror"] },
{ "title": "Blank", "enum": ["blank"] }
],
"required": true
},
"Box4": {
"title": "Fourth Box",
"type": "string",
"default": "blank",
"oneOf": [
{ "title": "Spotify Control", "enum": ["spotify"] },
{ "title": "Sonos Control", "enum": ["sonos"] },
{ "title": "Calculator", "enum": ["calculator"] },
{ "title": "Clock", "enum": ["clock"] },
{ "title": "Weather", "enum": ["weather"] },
{ "title": "RSS News Feed", "enum": ["news"] },
{ "title": "Lyrics", "enum": ["lyrics"] },
{ "title": "Accessory Control", "enum": ["iot"] },
{ "title": "Mirror", "enum": ["mirror"] },
{ "title": "Blank", "enum": ["blank"] }
],
"required": true
},
"Box5": {
"title": "Fifth Box",
"type": "string",
"default": "blank",
"oneOf": [
{ "title": "Spotify Control", "enum": ["spotify"] },
{ "title": "Sonos Control", "enum": ["sonos"] },
{ "title": "Calculator", "enum": ["calculator"] },
{ "title": "Clock", "enum": ["clock"] },
{ "title": "Weather", "enum": ["weather"] },
{ "title": "RSS News Feed", "enum": ["news"] },
{ "title": "Lyrics", "enum": ["lyrics"] },
{ "title": "Accessory Control", "enum": ["iot"] },
{ "title": "Mirror", "enum": ["mirror"] },
{ "title": "Blank", "enum": ["blank"] }
],
"required": true
},
"Box6": {
"title": "Sixth Box",
"type": "string",
"default": "blank",
"oneOf": [
{ "title": "Spotify Control", "enum": ["spotify"] },
{ "title": "Sonos Control", "enum": ["sonos"] },
{ "title": "Calculator", "enum": ["calculator"] },
{ "title": "Clock", "enum": ["clock"] },
{ "title": "Weather", "enum": ["weather"] },
{ "title": "RSS News Feed", "enum": ["news"] },
{ "title": "Lyrics", "enum": ["lyrics"] },
{ "title": "Accessory Control", "enum": ["iot"] },
{ "title": "Mirror", "enum": ["mirror"] },
{ "title": "Blank", "enum": ["blank"] }
],
"required": true
}
}
},
"Spotify": {
"title": "Spotify",
"expandable": true,
"type": "object",
"properties": {
"cid": {
"title": "Client ID",
"type": "string",
"default": "",
"required": false
},
"cs": {
"title": "Client Secret",
"type": "string",
"default": "",
"required": false
},
"rurl": {
"title": "Callback URL for Spotify Login",
"type": "string",
"placeholder": "http://homebridge.local:6969/callback",
"required": false
}
}
},
"Newsfeed": {
"title": "RSS News Feeds",
"expandable": true,
"type": "object",
"properties": {
"feed": {
"type": "array",
"items": {
"title": "RSS Feed URL",
"type": "string"
},
"required": false
},
"delay": {
"type": "integer",
"title": "Amount of time (in seconds) one story is shown for",
"required": false,
"default": 60
}
}
},
"Clock": {
"title": "Clock",
"expandable": true,
"type": "object",
"properties": {
"format": {
"title": "Date/Time format. See wiki for info",
"type": "string",
"default": "cccc, LLLL d, y\\nh:mm:ss a"
}
}
},
"Weather": {
"title": "Weather",
"expandable": true,
"type": "object",
"properties": {
"units": {
"title": "Units",
"type": "string",
"default": "F",
"oneOf": [
{ "title": "Celsius", "enum": ["C"] },
{ "title": "Fahrenheit", "enum": ["F"] }
]
},
"api_key": {
"title": "API Key",
"type": "string",
"required": false
},
"lat": {
"title": "Latitude",
"type": "number",
"placeholder": 42.5986,
"required": false
},
"lon": {
"title": "Latitude",
"type": "number",
"placeholder": -84.5986,
"required": false
}
}
}
}
}