iobroker.motioneye 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -21
- package/README.md +145 -137
- package/admin/i18n/de.json +2 -2
- package/admin/i18n/en.json +49 -49
- package/admin/i18n/es.json +2 -2
- package/admin/i18n/fr.json +2 -2
- package/admin/i18n/it.json +2 -2
- package/admin/i18n/nl.json +2 -2
- package/admin/i18n/pl.json +2 -2
- package/admin/i18n/pt.json +2 -2
- package/admin/i18n/ru.json +2 -2
- package/admin/i18n/uk.json +2 -2
- package/admin/i18n/zh-cn.json +2 -2
- package/admin/img/inventwo.svg +2 -2
- package/admin/jsonConfig.json +302 -302
- package/io-package.json +192 -166
- package/lib/adapter-config.d.ts +19 -19
- package/lib/cameraRegistry.test.js +56 -56
- package/lib/modeProfiles.test.js +36 -36
- package/lib/streamManager.test.js +19 -19
- package/main.js +21 -15
- package/package.json +79 -79
package/admin/jsonConfig.json
CHANGED
|
@@ -1,302 +1,302 @@
|
|
|
1
|
-
{
|
|
2
|
-
"i18n": true,
|
|
3
|
-
"type": "tabs",
|
|
4
|
-
"items": {
|
|
5
|
-
"_general": {
|
|
6
|
-
"type": "panel",
|
|
7
|
-
"label": "tab_settings",
|
|
8
|
-
"icon": "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCI+PHBhdGggZmlsbD0iY3VycmVudENvbG9yIiBkPSJNMTIsMTUuNUEzLjUsMy41IDAgMCwxIDguNSwxMkEzLjUsMy41IDAgMCwxIDEyLDguNUEzLjUsMy41IDAgMCwxIDE1LjUsMTJBMy41LDMuNSAwIDAsMSAxMiwxNS41TTE5LjQzLDEyLjk3QzE5LjQ3LDEyLjY1IDE5LjUsMTIuMzMgMTkuNSwxMkMxOS41LDExLjY3IDE5LjQ3LDExLjM0IDE5LjQzLDExTDIxLjU0LDkuMzdDMjEuNzMsOS4yMiAyMS43OCw4Ljk1IDIxLjY2LDguNzNMMTkuNjYsNS4yN0MxOS41NCw1LjA1IDE5LjI3LDQuOTYgMTkuMDUsNS4wNUwxNi41Niw2LjA1QzE2LjA0LDUuNjYgMTUuNSw1LjMyIDE0Ljg3LDUuMDdMMTQuNSwyLjQyQzE0LjQ2LDIuMTggMTQuMjUsMiAxNCwySDEwQzkuNzUsMiA5LjU0LDIuMTggOS41LDIuNDJMOS4xMyw1LjA3QzguNSw1LjMyIDcuOTYsNS42NiA3LjQ0LDYuMDVMNC45NSw1LjA1QzQuNzMsNC45NiA0LjQ2LDUuMDUgNC4zNCw1LjI3TDIuMzQsOC43M0MyLjIxLDguOTUgMi4yNyw5LjIyIDIuNDYsOS4zN0w0LjU3LDExQzQuNTMsMTEuMzQgNC41LDExLjY3IDQuNSwxMkM0LjUsMTIuMzMgNC41MywxMi42NSA0LjU3LDEyLjk3TDIuNDYsMTQuNjNDMi4yNywxNC43OCAyLjIxLDE1LjA1IDIuMzQsMTUuMjdMNC4zNCwxOC43M0M0LjQ2LDE4Ljk1IDQuNzMsMTkuMDMgNC45NSwxOC45NUw3LjQ0LDE3Ljk0QzcuOTYsMTguMzQgOC41LDE4LjY4IDkuMTMsMTguOTNMOS41LDIxLjU4QzkuNTQsMjEuODIgOS43NSwyMiAxMCwyMkgxNEMxNC4yNSwyMiAxNC40NiwyMS44MiAxNC41LDIxLjU4TDE0Ljg3LDE4LjkzQzE1LjUsMTguNjcgMTYuMDQsMTguMzQgMTYuNTYsMTcuOTRMMTkuMDUsMTguOTVDMTkuMjcsMTkuMDMgMTkuNTQsMTguOTUgMTkuNjYsMTguNzNMMjEuNjYsMTUuMjdDMjEuNzgsMTUuMDUgMjEuNzMsMTQuNzggMjEuNTQsMTQuNjNMMTkuNDMsMTIuOTdaIi8+PC9zdmc+",
|
|
9
|
-
"items": {
|
|
10
|
-
"_connectionHeader": {
|
|
11
|
-
"type": "header",
|
|
12
|
-
"text": "header_connection",
|
|
13
|
-
"size": 3
|
|
14
|
-
},
|
|
15
|
-
"motionHost": {
|
|
16
|
-
"type": "text",
|
|
17
|
-
"label": "motionHost",
|
|
18
|
-
"xs": 12,
|
|
19
|
-
"sm": 12,
|
|
20
|
-
"md": 6,
|
|
21
|
-
"lg": 6,
|
|
22
|
-
"xl": 6,
|
|
23
|
-
"help": "motionHost_help"
|
|
24
|
-
},
|
|
25
|
-
"motionPort": {
|
|
26
|
-
"type": "number",
|
|
27
|
-
"label": "motionPort",
|
|
28
|
-
"min": 1,
|
|
29
|
-
"max": 65535,
|
|
30
|
-
"default": 7999,
|
|
31
|
-
"xs": 12,
|
|
32
|
-
"sm": 6,
|
|
33
|
-
"md": 3,
|
|
34
|
-
"lg": 3,
|
|
35
|
-
"xl": 3,
|
|
36
|
-
"help": "motionPort_help"
|
|
37
|
-
},
|
|
38
|
-
"motionEyePort": {
|
|
39
|
-
"type": "number",
|
|
40
|
-
"label": "motionEyePort",
|
|
41
|
-
"min": 1,
|
|
42
|
-
"max": 65535,
|
|
43
|
-
"default": 8765,
|
|
44
|
-
"xs": 12,
|
|
45
|
-
"sm": 6,
|
|
46
|
-
"md": 3,
|
|
47
|
-
"lg": 3,
|
|
48
|
-
"xl": 3,
|
|
49
|
-
"help": "motionEyePort_help"
|
|
50
|
-
},
|
|
51
|
-
"motionEyeUser": {
|
|
52
|
-
"type": "text",
|
|
53
|
-
"label": "motionEyeUser",
|
|
54
|
-
"default": "admin",
|
|
55
|
-
"xs": 12,
|
|
56
|
-
"sm": 6,
|
|
57
|
-
"md": 4,
|
|
58
|
-
"lg": 4,
|
|
59
|
-
"xl": 4
|
|
60
|
-
},
|
|
61
|
-
"motionEyePassword": {
|
|
62
|
-
"type": "password",
|
|
63
|
-
"label": "motionEyePassword",
|
|
64
|
-
"xs": 12,
|
|
65
|
-
"sm": 6,
|
|
66
|
-
"md": 4,
|
|
67
|
-
"lg": 4,
|
|
68
|
-
"xl": 4,
|
|
69
|
-
"help": "motionEyePassword_help"
|
|
70
|
-
},
|
|
71
|
-
"useMotionEyeConfig": {
|
|
72
|
-
"type": "checkbox",
|
|
73
|
-
"label": "useMotionEyeConfig",
|
|
74
|
-
"default": true,
|
|
75
|
-
"xs": 12,
|
|
76
|
-
"sm": 12,
|
|
77
|
-
"md": 12,
|
|
78
|
-
"lg": 12,
|
|
79
|
-
"xl": 12,
|
|
80
|
-
"help": "useMotionEyeConfig_help"
|
|
81
|
-
},
|
|
82
|
-
"_webhookHeader": {
|
|
83
|
-
"type": "header",
|
|
84
|
-
"text": "header_webhook",
|
|
85
|
-
"size": 3,
|
|
86
|
-
"newLine": true
|
|
87
|
-
},
|
|
88
|
-
"webhookPort": {
|
|
89
|
-
"type": "number",
|
|
90
|
-
"label": "webhookPort",
|
|
91
|
-
"min": 1,
|
|
92
|
-
"max": 65535,
|
|
93
|
-
"default": 8090,
|
|
94
|
-
"xs": 12,
|
|
95
|
-
"sm": 6,
|
|
96
|
-
"md": 4,
|
|
97
|
-
"lg": 4,
|
|
98
|
-
"xl": 4,
|
|
99
|
-
"help": "webhookPort_help"
|
|
100
|
-
},
|
|
101
|
-
"webhookBind": {
|
|
102
|
-
"type": "text",
|
|
103
|
-
"label": "webhookBind",
|
|
104
|
-
"default": "0.0.0.0",
|
|
105
|
-
"xs": 12,
|
|
106
|
-
"sm": 6,
|
|
107
|
-
"md": 4,
|
|
108
|
-
"lg": 4,
|
|
109
|
-
"xl": 4,
|
|
110
|
-
"help": "webhookBind_help"
|
|
111
|
-
},
|
|
112
|
-
"webhookHost": {
|
|
113
|
-
"type": "text",
|
|
114
|
-
"label": "webhookHost",
|
|
115
|
-
"xs": 12,
|
|
116
|
-
"sm": 12,
|
|
117
|
-
"md": 8,
|
|
118
|
-
"lg": 8,
|
|
119
|
-
"xl": 8,
|
|
120
|
-
"help": "webhookHost_help"
|
|
121
|
-
},
|
|
122
|
-
"motionResetMs": {
|
|
123
|
-
"type": "number",
|
|
124
|
-
"label": "motionResetMs",
|
|
125
|
-
"min": 1000,
|
|
126
|
-
"max": 300000,
|
|
127
|
-
"default": 15000,
|
|
128
|
-
"xs": 12,
|
|
129
|
-
"sm": 6,
|
|
130
|
-
"md": 4,
|
|
131
|
-
"lg": 4,
|
|
132
|
-
"xl": 4,
|
|
133
|
-
"help": "motionResetMs_help"
|
|
134
|
-
},
|
|
135
|
-
"_timingHeader": {
|
|
136
|
-
"type": "header",
|
|
137
|
-
"text": "header_timing",
|
|
138
|
-
"size": 3,
|
|
139
|
-
"newLine": true
|
|
140
|
-
},
|
|
141
|
-
"statusPollIntervalSec": {
|
|
142
|
-
"type": "number",
|
|
143
|
-
"label": "statusPollIntervalSec",
|
|
144
|
-
"min": 30,
|
|
145
|
-
"max": 86400,
|
|
146
|
-
"default": 300,
|
|
147
|
-
"xs": 12,
|
|
148
|
-
"sm": 6,
|
|
149
|
-
"md": 4,
|
|
150
|
-
"lg": 4,
|
|
151
|
-
"xl": 4
|
|
152
|
-
},
|
|
153
|
-
"requestTimeoutMs": {
|
|
154
|
-
"type": "number",
|
|
155
|
-
"label": "requestTimeoutMs",
|
|
156
|
-
"min": 5000,
|
|
157
|
-
"max": 120000,
|
|
158
|
-
"default": 45000,
|
|
159
|
-
"xs": 12,
|
|
160
|
-
"sm": 6,
|
|
161
|
-
"md": 4,
|
|
162
|
-
"lg": 4,
|
|
163
|
-
"xl": 4
|
|
164
|
-
},
|
|
165
|
-
"_streamHeader": {
|
|
166
|
-
"type": "header",
|
|
167
|
-
"text": "header_stream",
|
|
168
|
-
"size": 3,
|
|
169
|
-
"newLine": true
|
|
170
|
-
},
|
|
171
|
-
"disableStreamOnStart": {
|
|
172
|
-
"type": "checkbox",
|
|
173
|
-
"label": "disableStreamOnStart",
|
|
174
|
-
"default": true,
|
|
175
|
-
"xs": 12,
|
|
176
|
-
"sm": 6,
|
|
177
|
-
"md": 6,
|
|
178
|
-
"lg": 6,
|
|
179
|
-
"xl": 6
|
|
180
|
-
},
|
|
181
|
-
"applyMediaSettingsOnStart": {
|
|
182
|
-
"type": "checkbox",
|
|
183
|
-
"label": "applyMediaSettingsOnStart",
|
|
184
|
-
"default": true,
|
|
185
|
-
"xs": 12,
|
|
186
|
-
"sm": 6,
|
|
187
|
-
"md": 6,
|
|
188
|
-
"lg": 6,
|
|
189
|
-
"xl": 6
|
|
190
|
-
},
|
|
191
|
-
"streamAutoOffMs": {
|
|
192
|
-
"type": "number",
|
|
193
|
-
"label": "streamAutoOffMs",
|
|
194
|
-
"min": 0,
|
|
195
|
-
"max": 3600000,
|
|
196
|
-
"default": 120000,
|
|
197
|
-
"xs": 12,
|
|
198
|
-
"sm": 6,
|
|
199
|
-
"md": 4,
|
|
200
|
-
"lg": 4,
|
|
201
|
-
"xl": 4,
|
|
202
|
-
"help": "streamAutoOffMs_help"
|
|
203
|
-
},
|
|
204
|
-
"defaultMode": {
|
|
205
|
-
"type": "select",
|
|
206
|
-
"label": "defaultMode",
|
|
207
|
-
"options": [
|
|
208
|
-
{ "label": "mode_off", "value": "off" },
|
|
209
|
-
{ "label": "mode_still", "value": "still" },
|
|
210
|
-
{ "label": "mode_sharp", "value": "sharp" }
|
|
211
|
-
],
|
|
212
|
-
"default": "off",
|
|
213
|
-
"xs": 12,
|
|
214
|
-
"sm": 6,
|
|
215
|
-
"md": 4,
|
|
216
|
-
"lg": 4,
|
|
217
|
-
"xl": 4
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
},
|
|
221
|
-
"_cameras": {
|
|
222
|
-
"type": "panel",
|
|
223
|
-
"label": "tab_cameras",
|
|
224
|
-
"icon": "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCI+PHBhdGggZmlsbD0iY3VycmVudENvbG9yIiBkPSJNMTcgMTAuNVY3YzAtLjU1LS40NS0xLTEtMUg0Yy0uNTUgMC0xIC40NS0xIDF2MTBjMCAuNTUuNDUgMSAxIDFoMTJjLjU1IDAgMS0uNDUgMS0xdi0zLjVsNCA0di0xMWwtNCA0eiIvPjwvc3ZnPg==",
|
|
225
|
-
"items": {
|
|
226
|
-
"_camerasHeader": {
|
|
227
|
-
"type": "header",
|
|
228
|
-
"text": "header_cameras",
|
|
229
|
-
"size": 3
|
|
230
|
-
},
|
|
231
|
-
"_camerasInfo": {
|
|
232
|
-
"type": "staticText",
|
|
233
|
-
"text": "cameras_info",
|
|
234
|
-
"xs": 12,
|
|
235
|
-
"sm": 12,
|
|
236
|
-
"md": 12,
|
|
237
|
-
"lg": 12,
|
|
238
|
-
"xl": 12,
|
|
239
|
-
"style": {
|
|
240
|
-
"fontSize": "0.875rem",
|
|
241
|
-
"whiteSpace": "pre-wrap",
|
|
242
|
-
"marginBottom": "10px"
|
|
243
|
-
}
|
|
244
|
-
},
|
|
245
|
-
"cameras": {
|
|
246
|
-
"type": "table",
|
|
247
|
-
"newLine": true,
|
|
248
|
-
"label": "cameras_table",
|
|
249
|
-
"xs": 12,
|
|
250
|
-
"sm": 12,
|
|
251
|
-
"md": 12,
|
|
252
|
-
"lg": 12,
|
|
253
|
-
"xl": 12,
|
|
254
|
-
"items": [
|
|
255
|
-
{
|
|
256
|
-
"type": "text",
|
|
257
|
-
"attr": "name",
|
|
258
|
-
"title": "camera_name",
|
|
259
|
-
"width": "22%",
|
|
260
|
-
"tooltip": "camera_name_help"
|
|
261
|
-
},
|
|
262
|
-
{
|
|
263
|
-
"type": "number",
|
|
264
|
-
"attr": "motionEyeId",
|
|
265
|
-
"title": "camera_motionEyeId",
|
|
266
|
-
"width": "12%",
|
|
267
|
-
"min": 1,
|
|
268
|
-
"tooltip": "camera_motionEyeId_help"
|
|
269
|
-
},
|
|
270
|
-
{
|
|
271
|
-
"type": "text",
|
|
272
|
-
"attr": "id",
|
|
273
|
-
"title": "camera_id",
|
|
274
|
-
"width": "18%",
|
|
275
|
-
"placeholder": "camera_id_placeholder",
|
|
276
|
-
"tooltip": "camera_id_help"
|
|
277
|
-
},
|
|
278
|
-
{
|
|
279
|
-
"type": "select",
|
|
280
|
-
"attr": "defaultMode",
|
|
281
|
-
"title": "camera_defaultMode",
|
|
282
|
-
"width": "18%",
|
|
283
|
-
"options": [
|
|
284
|
-
{ "label": "mode_off", "value": "off" },
|
|
285
|
-
{ "label": "mode_still", "value": "still" },
|
|
286
|
-
{ "label": "mode_sharp", "value": "sharp" }
|
|
287
|
-
],
|
|
288
|
-
"default": "off"
|
|
289
|
-
},
|
|
290
|
-
{
|
|
291
|
-
"type": "checkbox",
|
|
292
|
-
"attr": "enabled",
|
|
293
|
-
"title": "camera_enabled",
|
|
294
|
-
"width": "10%",
|
|
295
|
-
"default": true
|
|
296
|
-
}
|
|
297
|
-
]
|
|
298
|
-
}
|
|
299
|
-
}
|
|
300
|
-
}
|
|
301
|
-
}
|
|
302
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"i18n": true,
|
|
3
|
+
"type": "tabs",
|
|
4
|
+
"items": {
|
|
5
|
+
"_general": {
|
|
6
|
+
"type": "panel",
|
|
7
|
+
"label": "tab_settings",
|
|
8
|
+
"icon": "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCI+PHBhdGggZmlsbD0iY3VycmVudENvbG9yIiBkPSJNMTIsMTUuNUEzLjUsMy41IDAgMCwxIDguNSwxMkEzLjUsMy41IDAgMCwxIDEyLDguNUEzLjUsMy41IDAgMCwxIDE1LjUsMTJBMy41LDMuNSAwIDAsMSAxMiwxNS41TTE5LjQzLDEyLjk3QzE5LjQ3LDEyLjY1IDE5LjUsMTIuMzMgMTkuNSwxMkMxOS41LDExLjY3IDE5LjQ3LDExLjM0IDE5LjQzLDExTDIxLjU0LDkuMzdDMjEuNzMsOS4yMiAyMS43OCw4Ljk1IDIxLjY2LDguNzNMMTkuNjYsNS4yN0MxOS41NCw1LjA1IDE5LjI3LDQuOTYgMTkuMDUsNS4wNUwxNi41Niw2LjA1QzE2LjA0LDUuNjYgMTUuNSw1LjMyIDE0Ljg3LDUuMDdMMTQuNSwyLjQyQzE0LjQ2LDIuMTggMTQuMjUsMiAxNCwySDEwQzkuNzUsMiA5LjU0LDIuMTggOS41LDIuNDJMOS4xMyw1LjA3QzguNSw1LjMyIDcuOTYsNS42NiA3LjQ0LDYuMDVMNC45NSw1LjA1QzQuNzMsNC45NiA0LjQ2LDUuMDUgNC4zNCw1LjI3TDIuMzQsOC43M0MyLjIxLDguOTUgMi4yNyw5LjIyIDIuNDYsOS4zN0w0LjU3LDExQzQuNTMsMTEuMzQgNC41LDExLjY3IDQuNSwxMkM0LjUsMTIuMzMgNC41MywxMi42NSA0LjU3LDEyLjk3TDIuNDYsMTQuNjNDMi4yNywxNC43OCAyLjIxLDE1LjA1IDIuMzQsMTUuMjdMNC4zNCwxOC43M0M0LjQ2LDE4Ljk1IDQuNzMsMTkuMDMgNC45NSwxOC45NUw3LjQ0LDE3Ljk0QzcuOTYsMTguMzQgOC41LDE4LjY4IDkuMTMsMTguOTNMOS41LDIxLjU4QzkuNTQsMjEuODIgOS43NSwyMiAxMCwyMkgxNEMxNC4yNSwyMiAxNC40NiwyMS44MiAxNC41LDIxLjU4TDE0Ljg3LDE4LjkzQzE1LjUsMTguNjcgMTYuMDQsMTguMzQgMTYuNTYsMTcuOTRMMTkuMDUsMTguOTVDMTkuMjcsMTkuMDMgMTkuNTQsMTguOTUgMTkuNjYsMTguNzNMMjEuNjYsMTUuMjdDMjEuNzgsMTUuMDUgMjEuNzMsMTQuNzggMjEuNTQsMTQuNjNMMTkuNDMsMTIuOTdaIi8+PC9zdmc+",
|
|
9
|
+
"items": {
|
|
10
|
+
"_connectionHeader": {
|
|
11
|
+
"type": "header",
|
|
12
|
+
"text": "header_connection",
|
|
13
|
+
"size": 3
|
|
14
|
+
},
|
|
15
|
+
"motionHost": {
|
|
16
|
+
"type": "text",
|
|
17
|
+
"label": "motionHost",
|
|
18
|
+
"xs": 12,
|
|
19
|
+
"sm": 12,
|
|
20
|
+
"md": 6,
|
|
21
|
+
"lg": 6,
|
|
22
|
+
"xl": 6,
|
|
23
|
+
"help": "motionHost_help"
|
|
24
|
+
},
|
|
25
|
+
"motionPort": {
|
|
26
|
+
"type": "number",
|
|
27
|
+
"label": "motionPort",
|
|
28
|
+
"min": 1,
|
|
29
|
+
"max": 65535,
|
|
30
|
+
"default": 7999,
|
|
31
|
+
"xs": 12,
|
|
32
|
+
"sm": 6,
|
|
33
|
+
"md": 3,
|
|
34
|
+
"lg": 3,
|
|
35
|
+
"xl": 3,
|
|
36
|
+
"help": "motionPort_help"
|
|
37
|
+
},
|
|
38
|
+
"motionEyePort": {
|
|
39
|
+
"type": "number",
|
|
40
|
+
"label": "motionEyePort",
|
|
41
|
+
"min": 1,
|
|
42
|
+
"max": 65535,
|
|
43
|
+
"default": 8765,
|
|
44
|
+
"xs": 12,
|
|
45
|
+
"sm": 6,
|
|
46
|
+
"md": 3,
|
|
47
|
+
"lg": 3,
|
|
48
|
+
"xl": 3,
|
|
49
|
+
"help": "motionEyePort_help"
|
|
50
|
+
},
|
|
51
|
+
"motionEyeUser": {
|
|
52
|
+
"type": "text",
|
|
53
|
+
"label": "motionEyeUser",
|
|
54
|
+
"default": "admin",
|
|
55
|
+
"xs": 12,
|
|
56
|
+
"sm": 6,
|
|
57
|
+
"md": 4,
|
|
58
|
+
"lg": 4,
|
|
59
|
+
"xl": 4
|
|
60
|
+
},
|
|
61
|
+
"motionEyePassword": {
|
|
62
|
+
"type": "password",
|
|
63
|
+
"label": "motionEyePassword",
|
|
64
|
+
"xs": 12,
|
|
65
|
+
"sm": 6,
|
|
66
|
+
"md": 4,
|
|
67
|
+
"lg": 4,
|
|
68
|
+
"xl": 4,
|
|
69
|
+
"help": "motionEyePassword_help"
|
|
70
|
+
},
|
|
71
|
+
"useMotionEyeConfig": {
|
|
72
|
+
"type": "checkbox",
|
|
73
|
+
"label": "useMotionEyeConfig",
|
|
74
|
+
"default": true,
|
|
75
|
+
"xs": 12,
|
|
76
|
+
"sm": 12,
|
|
77
|
+
"md": 12,
|
|
78
|
+
"lg": 12,
|
|
79
|
+
"xl": 12,
|
|
80
|
+
"help": "useMotionEyeConfig_help"
|
|
81
|
+
},
|
|
82
|
+
"_webhookHeader": {
|
|
83
|
+
"type": "header",
|
|
84
|
+
"text": "header_webhook",
|
|
85
|
+
"size": 3,
|
|
86
|
+
"newLine": true
|
|
87
|
+
},
|
|
88
|
+
"webhookPort": {
|
|
89
|
+
"type": "number",
|
|
90
|
+
"label": "webhookPort",
|
|
91
|
+
"min": 1,
|
|
92
|
+
"max": 65535,
|
|
93
|
+
"default": 8090,
|
|
94
|
+
"xs": 12,
|
|
95
|
+
"sm": 6,
|
|
96
|
+
"md": 4,
|
|
97
|
+
"lg": 4,
|
|
98
|
+
"xl": 4,
|
|
99
|
+
"help": "webhookPort_help"
|
|
100
|
+
},
|
|
101
|
+
"webhookBind": {
|
|
102
|
+
"type": "text",
|
|
103
|
+
"label": "webhookBind",
|
|
104
|
+
"default": "0.0.0.0",
|
|
105
|
+
"xs": 12,
|
|
106
|
+
"sm": 6,
|
|
107
|
+
"md": 4,
|
|
108
|
+
"lg": 4,
|
|
109
|
+
"xl": 4,
|
|
110
|
+
"help": "webhookBind_help"
|
|
111
|
+
},
|
|
112
|
+
"webhookHost": {
|
|
113
|
+
"type": "text",
|
|
114
|
+
"label": "webhookHost",
|
|
115
|
+
"xs": 12,
|
|
116
|
+
"sm": 12,
|
|
117
|
+
"md": 8,
|
|
118
|
+
"lg": 8,
|
|
119
|
+
"xl": 8,
|
|
120
|
+
"help": "webhookHost_help"
|
|
121
|
+
},
|
|
122
|
+
"motionResetMs": {
|
|
123
|
+
"type": "number",
|
|
124
|
+
"label": "motionResetMs",
|
|
125
|
+
"min": 1000,
|
|
126
|
+
"max": 300000,
|
|
127
|
+
"default": 15000,
|
|
128
|
+
"xs": 12,
|
|
129
|
+
"sm": 6,
|
|
130
|
+
"md": 4,
|
|
131
|
+
"lg": 4,
|
|
132
|
+
"xl": 4,
|
|
133
|
+
"help": "motionResetMs_help"
|
|
134
|
+
},
|
|
135
|
+
"_timingHeader": {
|
|
136
|
+
"type": "header",
|
|
137
|
+
"text": "header_timing",
|
|
138
|
+
"size": 3,
|
|
139
|
+
"newLine": true
|
|
140
|
+
},
|
|
141
|
+
"statusPollIntervalSec": {
|
|
142
|
+
"type": "number",
|
|
143
|
+
"label": "statusPollIntervalSec",
|
|
144
|
+
"min": 30,
|
|
145
|
+
"max": 86400,
|
|
146
|
+
"default": 300,
|
|
147
|
+
"xs": 12,
|
|
148
|
+
"sm": 6,
|
|
149
|
+
"md": 4,
|
|
150
|
+
"lg": 4,
|
|
151
|
+
"xl": 4
|
|
152
|
+
},
|
|
153
|
+
"requestTimeoutMs": {
|
|
154
|
+
"type": "number",
|
|
155
|
+
"label": "requestTimeoutMs",
|
|
156
|
+
"min": 5000,
|
|
157
|
+
"max": 120000,
|
|
158
|
+
"default": 45000,
|
|
159
|
+
"xs": 12,
|
|
160
|
+
"sm": 6,
|
|
161
|
+
"md": 4,
|
|
162
|
+
"lg": 4,
|
|
163
|
+
"xl": 4
|
|
164
|
+
},
|
|
165
|
+
"_streamHeader": {
|
|
166
|
+
"type": "header",
|
|
167
|
+
"text": "header_stream",
|
|
168
|
+
"size": 3,
|
|
169
|
+
"newLine": true
|
|
170
|
+
},
|
|
171
|
+
"disableStreamOnStart": {
|
|
172
|
+
"type": "checkbox",
|
|
173
|
+
"label": "disableStreamOnStart",
|
|
174
|
+
"default": true,
|
|
175
|
+
"xs": 12,
|
|
176
|
+
"sm": 6,
|
|
177
|
+
"md": 6,
|
|
178
|
+
"lg": 6,
|
|
179
|
+
"xl": 6
|
|
180
|
+
},
|
|
181
|
+
"applyMediaSettingsOnStart": {
|
|
182
|
+
"type": "checkbox",
|
|
183
|
+
"label": "applyMediaSettingsOnStart",
|
|
184
|
+
"default": true,
|
|
185
|
+
"xs": 12,
|
|
186
|
+
"sm": 6,
|
|
187
|
+
"md": 6,
|
|
188
|
+
"lg": 6,
|
|
189
|
+
"xl": 6
|
|
190
|
+
},
|
|
191
|
+
"streamAutoOffMs": {
|
|
192
|
+
"type": "number",
|
|
193
|
+
"label": "streamAutoOffMs",
|
|
194
|
+
"min": 0,
|
|
195
|
+
"max": 3600000,
|
|
196
|
+
"default": 120000,
|
|
197
|
+
"xs": 12,
|
|
198
|
+
"sm": 6,
|
|
199
|
+
"md": 4,
|
|
200
|
+
"lg": 4,
|
|
201
|
+
"xl": 4,
|
|
202
|
+
"help": "streamAutoOffMs_help"
|
|
203
|
+
},
|
|
204
|
+
"defaultMode": {
|
|
205
|
+
"type": "select",
|
|
206
|
+
"label": "defaultMode",
|
|
207
|
+
"options": [
|
|
208
|
+
{ "label": "mode_off", "value": "off" },
|
|
209
|
+
{ "label": "mode_still", "value": "still" },
|
|
210
|
+
{ "label": "mode_sharp", "value": "sharp" }
|
|
211
|
+
],
|
|
212
|
+
"default": "off",
|
|
213
|
+
"xs": 12,
|
|
214
|
+
"sm": 6,
|
|
215
|
+
"md": 4,
|
|
216
|
+
"lg": 4,
|
|
217
|
+
"xl": 4
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
},
|
|
221
|
+
"_cameras": {
|
|
222
|
+
"type": "panel",
|
|
223
|
+
"label": "tab_cameras",
|
|
224
|
+
"icon": "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCI+PHBhdGggZmlsbD0iY3VycmVudENvbG9yIiBkPSJNMTcgMTAuNVY3YzAtLjU1LS40NS0xLTEtMUg0Yy0uNTUgMC0xIC40NS0xIDF2MTBjMCAuNTUuNDUgMSAxIDFoMTJjLjU1IDAgMS0uNDUgMS0xdi0zLjVsNCA0di0xMWwtNCA0eiIvPjwvc3ZnPg==",
|
|
225
|
+
"items": {
|
|
226
|
+
"_camerasHeader": {
|
|
227
|
+
"type": "header",
|
|
228
|
+
"text": "header_cameras",
|
|
229
|
+
"size": 3
|
|
230
|
+
},
|
|
231
|
+
"_camerasInfo": {
|
|
232
|
+
"type": "staticText",
|
|
233
|
+
"text": "cameras_info",
|
|
234
|
+
"xs": 12,
|
|
235
|
+
"sm": 12,
|
|
236
|
+
"md": 12,
|
|
237
|
+
"lg": 12,
|
|
238
|
+
"xl": 12,
|
|
239
|
+
"style": {
|
|
240
|
+
"fontSize": "0.875rem",
|
|
241
|
+
"whiteSpace": "pre-wrap",
|
|
242
|
+
"marginBottom": "10px"
|
|
243
|
+
}
|
|
244
|
+
},
|
|
245
|
+
"cameras": {
|
|
246
|
+
"type": "table",
|
|
247
|
+
"newLine": true,
|
|
248
|
+
"label": "cameras_table",
|
|
249
|
+
"xs": 12,
|
|
250
|
+
"sm": 12,
|
|
251
|
+
"md": 12,
|
|
252
|
+
"lg": 12,
|
|
253
|
+
"xl": 12,
|
|
254
|
+
"items": [
|
|
255
|
+
{
|
|
256
|
+
"type": "text",
|
|
257
|
+
"attr": "name",
|
|
258
|
+
"title": "camera_name",
|
|
259
|
+
"width": "22%",
|
|
260
|
+
"tooltip": "camera_name_help"
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
"type": "number",
|
|
264
|
+
"attr": "motionEyeId",
|
|
265
|
+
"title": "camera_motionEyeId",
|
|
266
|
+
"width": "12%",
|
|
267
|
+
"min": 1,
|
|
268
|
+
"tooltip": "camera_motionEyeId_help"
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
"type": "text",
|
|
272
|
+
"attr": "id",
|
|
273
|
+
"title": "camera_id",
|
|
274
|
+
"width": "18%",
|
|
275
|
+
"placeholder": "camera_id_placeholder",
|
|
276
|
+
"tooltip": "camera_id_help"
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
"type": "select",
|
|
280
|
+
"attr": "defaultMode",
|
|
281
|
+
"title": "camera_defaultMode",
|
|
282
|
+
"width": "18%",
|
|
283
|
+
"options": [
|
|
284
|
+
{ "label": "mode_off", "value": "off" },
|
|
285
|
+
{ "label": "mode_still", "value": "still" },
|
|
286
|
+
{ "label": "mode_sharp", "value": "sharp" }
|
|
287
|
+
],
|
|
288
|
+
"default": "off"
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
"type": "checkbox",
|
|
292
|
+
"attr": "enabled",
|
|
293
|
+
"title": "camera_enabled",
|
|
294
|
+
"width": "10%",
|
|
295
|
+
"default": true
|
|
296
|
+
}
|
|
297
|
+
]
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
}
|