iobroker.sql 1.16.1 → 2.1.0

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.
@@ -1,352 +1,33 @@
1
1
  {
2
- "i18n": {
3
- "1 day": {
4
- "en": "1 day",
5
- "de": "1 Tag",
6
- "ru": "1 день",
7
- "pt": "1 dia",
8
- "nl": "1 dag",
9
- "fr": "Un jour",
10
- "it": "1 giorno",
11
- "es": "1 día",
12
- "pl": "1 dzień"
13
- },
14
- "1 months": {
15
- "en": "1 months",
16
- "de": "1 Monat",
17
- "ru": "1 месяц",
18
- "pt": "1 mês",
19
- "nl": "1 maanden",
20
- "fr": "1 mois",
21
- "it": "1 mese",
22
- "es": "1 mes",
23
- "pl": "1 miesiąc"
24
- },
25
- "1 week": {
26
- "en": "1 week",
27
- "de": "1 Woche",
28
- "ru": "1 неделя",
29
- "pt": "1 semana",
30
- "nl": "1 week",
31
- "fr": "1 semaine",
32
- "it": "1 settimana",
33
- "es": "1 semana",
34
- "pl": "1 tydzień"
35
- },
36
- "1 year": {
37
- "en": "1 year",
38
- "de": "1 Jahr",
39
- "ru": "1 год",
40
- "pt": "1 ano",
41
- "nl": "1 jaar",
42
- "fr": "1 an",
43
- "it": "1 anno",
44
- "es": "1 año",
45
- "pl": "1 rok"
46
- },
47
- "2 weeks": {
48
- "en": "2 weeks",
49
- "de": "2 Wochen",
50
- "ru": "2 недели",
51
- "pt": "2 semanas",
52
- "nl": "2 weken",
53
- "fr": "2 semaines",
54
- "it": "2 settimane",
55
- "es": "2 semanas",
56
- "pl": "2 tygodnie"
57
- },
58
- "2 years": {
59
- "en": "2 years",
60
- "de": "2 Jahre",
61
- "ru": "2 года",
62
- "pt": "2 anos",
63
- "nl": "2 jaar",
64
- "fr": "2 ans",
65
- "it": "2 anni",
66
- "es": "2 años",
67
- "pl": "2 lata"
68
- },
69
- "3 days": {
70
- "en": "3 days",
71
- "de": "3 Tage",
72
- "ru": "3 дня",
73
- "pt": "3 dias",
74
- "nl": "3 dagen",
75
- "fr": "3 jours",
76
- "it": "3 giorni",
77
- "es": "3 días",
78
- "pl": "3 dni"
79
- },
80
- "3 months": {
81
- "en": "3 months",
82
- "de": "3 Monate",
83
- "ru": "3 месяца",
84
- "pt": "3 meses",
85
- "nl": "3 maanden",
86
- "fr": "3 mois",
87
- "it": "3 mesi",
88
- "es": "3 meses",
89
- "pl": "3 miesiące"
90
- },
91
- "5 days": {
92
- "en": "5 days",
93
- "de": "5 Tage",
94
- "ru": "5 дней",
95
- "pt": "5 dias",
96
- "nl": "5 dagen",
97
- "fr": "5 jours",
98
- "it": "5 giorni",
99
- "es": "5 dias",
100
- "pl": "5 dni"
101
- },
102
- "6 months": {
103
- "en": "6 months",
104
- "de": "6 Monate",
105
- "ru": "6 месяцев",
106
- "pt": "6 meses",
107
- "nl": "6 maanden",
108
- "fr": "6 mois",
109
- "it": "6 mesi",
110
- "es": "6 meses",
111
- "pl": "6 miesięcy"
112
- },
113
- "Store as": {
114
- "en": "Store as",
115
- "de": "Speichern als",
116
- "ru": "Сохранить как",
117
- "pt": "Armazenar como",
118
- "nl": "Opslaan als",
119
- "fr": "Magasin comme",
120
- "it": "Conservare come",
121
- "es": "Przechowuj jako",
122
- "pl": "Przechowuj jako"
123
- },
124
- "Automatic": {
125
- "en": "Automatic",
126
- "de": "Automatisch",
127
- "ru": "автоматическая",
128
- "pt": "Automático",
129
- "nl": "automatisch",
130
- "fr": "Automatique",
131
- "it": "Automatico",
132
- "es": "Automatycznyy",
133
- "pl": "Automatyczny",
134
- "zh-cn": "自动"
135
- },
136
- "String": {
137
- "en": "String",
138
- "de": "Zeichenfolge",
139
- "ru": "строка",
140
- "pt": "Corda",
141
- "nl": "Draad",
142
- "fr": "Chaîne",
143
- "it": "Stringa",
144
- "es": "Strunowy",
145
- "pl": "Strunowy"
146
- },
147
- "Number": {
148
- "en": "Number",
149
- "de": "Nummer",
150
- "ru": "Число",
151
- "pt": "Número",
152
- "nl": "Aantal",
153
- "fr": "Nombre",
154
- "it": "Numero",
155
- "es": "Numer",
156
- "pl": "Numer"
157
- },
158
- "Boolean": {
159
- "en": "Boolean",
160
- "de": "Boolesch",
161
- "ru": "логический",
162
- "pt": "boleano",
163
- "nl": "Boolean",
164
- "fr": "Booléen",
165
- "it": "booleano",
166
- "es": "Booleano",
167
- "pl": "Boolean"
168
- },
169
- "De-bounce interval(ms)": {
170
- "en": "Ignore changes till value stays unchanged for X ms",
171
- "de": "Änderungen ignorieren, bis der Wert für X ms unverändert bleibt",
172
- "ru": "Игнорировать изменения до тех пор, пока значение не останется неизменным в течение X мс",
173
- "pt": "Ignorar alterações até que o valor permaneça inalterado por X ms",
174
- "nl": "Wijzigingen negeren totdat waarde ongewijzigd blijft voor X ms",
175
- "fr": "Ignorer les modifications jusqu'à ce que la valeur reste inchangée pour X ms",
176
- "it": "Ignora le modifiche fino a quando il valore rimane invariato per X ms",
177
- "es": "Ignorar cambios hasta que el valor permanezca sin cambios durante X ms",
178
- "pl": "Zignoruj ​​zmiany, aż wartość pozostanie niezmieniona przez X ms",
179
- "zh-cn": "忽略更改,直到值保持不变为X毫秒<br>(去抖时间)"
180
- },
181
- "De-bounce time": {
182
- "en": "Debounce Time",
183
- "de": "Entprellzeit",
184
- "ru": "Дребезг",
185
- "pt": "Tempo de Depuração",
186
- "nl": "Debounce Time",
187
- "fr": "Debounce Time",
188
- "it": "Debounce Time",
189
- "es": "Tiempo de rebote",
190
- "pl": "Czas odbicia",
191
- "zh-cn": "去抖时间"
192
- },
193
- "Storage retention": {
194
- "en": "Storage retention",
195
- "de": "Storage Vorhaltezeit",
196
- "ru": "Сохранять в файле",
197
- "pt": "Retenção de armazenamento",
198
- "nl": "Opslag retentie",
199
- "fr": "Conservation du stockage",
200
- "it": "Conservazione di memoria",
201
- "es": "Retención de almacenamiento",
202
- "pl": "Przechowywanie danych"
203
- },
204
- "keep forever": {
205
- "en": "keep forever",
206
- "de": "keine automatische Löschung",
207
- "ru": "хранить вечно",
208
- "pt": "mantenha para sempre",
209
- "nl": "blijf voor altijd",
210
- "fr": "garde pour toujours",
211
- "it": "tienilo per sempre",
212
- "es": "mantener para siempre",
213
- "pl": "zachowaj na zawsze"
214
- },
215
- "log changes interval(s)": {
216
- "en": "Record the same values (seconds)",
217
- "de": "trotzdem gleiche Werte aufzeichnen (Sekunden)",
218
- "ru": "по-прежнему записывать те же значения (в секундах)",
219
- "pt": "ainda gravar os mesmos valores (segundos)",
220
- "nl": "nog steeds dezelfde waarden (seconden)",
221
- "fr": "toujours enregistrer les mêmes valeurs (secondes)",
222
- "it": "registra ancora gli stessi valori (secondi)",
223
- "es": "sigue registrando los mismos valores (segundos)",
224
- "pl": "nadal nagrywaj te same wartości (sekundy)",
225
- "zh-cn": "仍记录相同的值(秒)<br>(0 =禁用)"
226
- },
227
- "0 = disabled": {
228
- "en": "0 = disabled",
229
- "de": "0 = deaktiviert",
230
- "ru": "0 = отключить",
231
- "pt": "0 = desabilitar",
232
- "nl": "0 = uitschakelen",
233
- "fr": "0 = désactiver",
234
- "it": "0 = disabilita",
235
- "es": "0 = deshabilitar",
236
- "pl": "0 = wyłącz",
237
- "zh-cn": "0 =禁用"
238
- },
239
- "log changes minimal delta": {
240
- "en": "Minimum difference from last value",
241
- "de": "Minimale Differenz zum letzten Wert",
242
- "ru": "Минимальное отличие от последнего значения",
243
- "pt": "Diferença mínima do último valor",
244
- "nl": "Minimaal verschil met laatste waarde",
245
- "fr": "Différence minimale par rapport à la dernière valeur",
246
- "it": "Differenza minima dall'ultimo valore",
247
- "es": "Diferencia mínima desde el último valor",
248
- "pl": "Minimalna różnica od ostatniej wartości",
249
- "zh-cn": "与上一个值的最小差异"
250
- },
251
- "0 = disable delta check": {
252
- "en": "0 = disable delta check",
253
- "de": "0 = Deltaprüfung deaktivieren",
254
- "ru": "0 = отключить дельта-проверку",
255
- "pt": "0 = desabilitar verificação delta",
256
- "nl": "0 = deltablokkering uitschakelen",
257
- "fr": "0 = désactiver la vérification delta",
258
- "it": "0 = disabilita il controllo delta",
259
- "es": "0 = deshabilitar la comprobación delta",
260
- "pl": "0 = wyłącz kontrolę delta",
261
- "zh-cn": "0 =禁用增量检查"
262
- },
263
- "log changes only": {
264
- "en": "Record changes only",
265
- "de": "Nur Änderungen aufzeichnen",
266
- "ru": "Запись только изменений",
267
- "pt": "Registrar apenas alterações",
268
- "nl": "Wijzigingen alleen registreren",
269
- "fr": "Enregistrer les modifications uniquement",
270
- "it": "Registra solo le modifiche",
271
- "es": "Registrar solo cambios",
272
- "pl": "Zapisz tylko zmiany",
273
- "zh-cn": "仅记录更改"
274
- },
275
- "aliasId": {
276
- "en": "Alias-ID",
277
- "de": "Alias-ID",
278
- "ru": "Псевдоним ИД",
279
- "pt": "Alias-ID",
280
- "nl": "Alias-ID",
281
- "fr": "Alias-ID",
282
- "it": "Alias-ID",
283
- "es": "Alias-ID",
284
- "pl": "Alias-ID"
285
- },
286
- "Alias Info": {
287
- "en": "if Alias-ID is set, the data will be logged as this ID in data files",
288
- "de": "Wenn Alias-ID gesetzt ist, werden die Daten als diese ID in Datendateien protokolliert",
289
- "ru": "если установлен Alias-ID, данные будут регистрироваться как этот идентификатор в файлах данных",
290
- "pt": "Se o Alias-ID for definido, os dados serão registrados como esse ID em arquivos de dados",
291
- "nl": "als Alias-ID is ingesteld, worden de gegevens als dit ID in databestanden vastgelegd",
292
- "fr": "Si Alias-ID est défini, les données seront enregistrées comme cet ID dans les fichiers de données",
293
- "it": "se Alias-ID è impostato, i dati verranno registrati come questo ID nei file di dati",
294
- "es": "si se establece Alias-ID, los datos se registrarán como esta ID en los archivos de datos",
295
- "pl": "jeśli ustawiony jest Alias-ID, dane będą rejestrowane jako te ID w plikach danych"
296
- },
297
- "Counter": {
298
- "en": "Counter",
299
- "de": "Zähler",
300
- "ru": "счетчик",
301
- "pt": "Contador",
302
- "nl": "Teller",
303
- "fr": "Compteur",
304
- "it": "contatore",
305
- "es": "Mostrador",
306
- "pl": "Licznik",
307
- "zh-cn": "计数器"
2
+ "i18n": true,
3
+ "type": "panel",
4
+ "items": {
5
+ "debounceTime": {
6
+ "newLine": true,
7
+ "type": "number",
8
+ "sm": 6,
9
+ "min": 0,
10
+ "max": 86400000,
11
+ "defaultFunc": "customObj && customObj.common && customObj.common.type === 'number' ? instanceObj.native.debounceTime : 0",
12
+ "label": "De-bounce time",
13
+ "help": "De-bounce interval(ms)"
308
14
  },
309
- "ignore zero or null values": {
310
- "en": "ignore zero or null values (==0)",
311
- "de": "Zero- oder Nullwerte ignorieren (==0)",
312
- "ru": "игнорировать нулевые или нулевые значения (== 0)",
313
- "pt": "ignorar valores zero ou nulos (== 0)",
314
- "nl": "negeer nul- of null-waarden (==0)",
315
- "fr": "ignorer les valeurs nulles ou nulles (==0)",
316
- "it": "ignora i valori zero o null (==0)",
317
- "es": "ignorar valores cero o nulos (== 0)",
318
- "pl": "zignoruj wartości zero lub null (==0)",
319
- "zh-cn": "忽略零或空值 (==0)"
15
+ "blockTime": {
16
+ "type": "number",
17
+ "sm": 6,
18
+ "min": 0,
19
+ "max": 86400000,
20
+ "label": "Block time",
21
+ "defaultFunc": "(data.debounce || data.debounce === '0' || data.debounce === 0) ? parseInt(data.debounce, 10) : instanceObj.native.blockTime",
22
+ "help": "blockTime"
320
23
  },
321
- "ignore values below zero": {
322
- "en": "ignore values below zero (<0)",
323
- "de": "Werte unter 0 ignorieren (<0)",
324
- "ru": "игнорировать значения ниже нуля (<0)",
325
- "pt": "ignorar valores abaixo de zero (<0)",
326
- "nl": "negeer waarden onder nul (<0)",
327
- "fr": "ignorer les valeurs inférieures à zéro (<0)",
328
- "it": "ignora i valori inferiori a zero (<0)",
329
- "es": "ignorar valores por debajo de cero (<0)",
330
- "pl": "zignoruj wartości poniżej zera (<0)",
331
- "zh-cn": "忽略低于零 (<0) 的值"
332
- }
333
- },
334
- "items": {
335
24
  "changesOnly": {
25
+ "newLine": true,
336
26
  "type": "checkbox",
337
27
  "label": "log changes only",
338
28
  "defaultFunc": "customObj && customObj.common && customObj.common.type === 'number'",
339
29
  "sm": 6
340
30
  },
341
- "debounce": {
342
- "type": "number",
343
- "label": "De-bounce time",
344
- "help": "De-bounce interval(ms)",
345
- "min": 0,
346
- "max": 86400000,
347
- "defaultFunc": "customObj && customObj.common && customObj.common.type === 'number' ? instanceObj.native.debounce : 0",
348
- "sm": 6
349
- },
350
31
  "changesRelogInterval": {
351
32
  "newLine": true,
352
33
  "type": "number",
@@ -368,6 +49,39 @@
368
49
  "help": "0 = disable delta check",
369
50
  "disabled": "!data.changesOnly"
370
51
  },
52
+ "ignoreBelowNumber": {
53
+ "newLine": true,
54
+ "type": "text",
55
+ "label": "ignore values below x",
56
+ "hidden": "!customObj || !customObj.common || customObj.common.type !== 'number'",
57
+ "defaultFunc": "data.ignoreBelowZero ? '0' : ''",
58
+ "validator": "((data.ignoreBelowNumber || '').toString().length === 0) || isFinite(data.ignoreBelowNumber)",
59
+ "validatorErrorText": "Enter a number or leave the field empty",
60
+ "validatorNoSaveOnError": true,
61
+ "sm": 6
62
+ },
63
+ "ignoreAboveNumber": {
64
+ "type": "text",
65
+ "label": "ignore values above x",
66
+ "hidden": "!customObj || !customObj.common || customObj.common.type !== 'number'",
67
+ "validator": "((data.ignoreAboveNumber || '').toString().length === 0) || isFinite(data.ignoreAboveNumber)",
68
+ "validatorErrorText": "Enter a number or leave the field empty",
69
+ "validatorNoSaveOnError": true,
70
+ "sm": 6
71
+ },
72
+ "ignoreZero": {
73
+ "newLine": true,
74
+ "type": "checkbox",
75
+ "label": "ignore zero or null values",
76
+ "sm": 6
77
+ },
78
+ "disableSkippedValueLogging": {
79
+ "newLine": true,
80
+ "label": "Disable charting optimized logging of skipped values",
81
+ "type": "checkbox",
82
+ "sm": 12,
83
+ "defaultFunc": "instanceObj.native.disableSkippedValueLogging || false"
84
+ },
371
85
  "storageType": {
372
86
  "newLine": true,
373
87
  "type": "select",
@@ -393,7 +107,24 @@
393
107
  "default": "",
394
108
  "sm": 6
395
109
  },
110
+ "counter": {
111
+ "type": "checkbox",
112
+ "label": "Counter",
113
+ "default": false,
114
+ "hidden": "data.storageType !== 'Number'",
115
+ "sm": 6
116
+ },
117
+ "aliasId": {
118
+ "newLine": true,
119
+ "type": "text",
120
+ "label": "aliasId",
121
+ "maxLength": 255,
122
+ "default": "",
123
+ "sm": 12,
124
+ "help": "Alias Info"
125
+ },
396
126
  "retention": {
127
+ "newLine": true,
397
128
  "type": "select",
398
129
  "label": "Storage retention",
399
130
  "options": [
@@ -440,38 +171,65 @@
440
171
  {
441
172
  "value": 86400,
442
173
  "label": "1 day"
174
+ },
175
+ {
176
+ "value": -1,
177
+ "label": "Custom timeframe"
443
178
  }
444
179
  ],
445
180
  "defaultFunc": "instanceObj.native.retention",
446
181
  "sm": 6
447
182
  },
448
- "counter": {
183
+ "customRetentionDuration": {
184
+ "type": "number",
185
+ "label": "Custom retention duration (days)",
186
+ "min": 1,
187
+ "sm": 12,
188
+ "md": 4,
189
+ "hidden": "(data.retention !== -1)",
190
+ "help": "Number of days to keep the data.",
191
+ "defaultFunc": "instanceObj.native.customRetentionDuration"
192
+ },
193
+ "maxLength": {
449
194
  "newLine": true,
450
- "type": "checkbox",
451
- "label": "Counter",
452
- "default": false,
453
- "visible": "data.storageType === 'Number'",
195
+ "type": "number",
196
+ "label": "maximum datapoint count in RAM",
197
+ "min": 0,
198
+ "max": 100000,
199
+ "defaultFunc": "customObj && customObj.common && customObj.common.type === 'number' ? instanceObj.native.maxLength : 10",
454
200
  "sm": 6
455
201
  },
456
- "aliasId": {
202
+ "round": {
457
203
  "newLine": true,
458
204
  "type": "text",
459
- "label": "aliasId",
460
- "maxLength": 255,
461
- "default": "",
462
- "sm": 12,
463
- "help": "Alias Info"
205
+ "label": "Round real to",
206
+ "sm": 6,
207
+ "validator": "((data.round || '').toString().length === 0) || isFinite(data.round)",
208
+ "validatorErrorText": "Enter a number or leave the field empty",
209
+ "validatorNoSaveOnError": true,
210
+ "hidden": "!customObj || !customObj.common || customObj.common.type !== 'number' || (data.storageType && data.storageType !== 'Number')"
464
211
  },
465
- "ignoreZero": {
212
+ "enableDebugLogs": {
466
213
  "newLine": true,
214
+ "label": "Enable enhanced debug logs for the datapoint",
467
215
  "type": "checkbox",
468
- "label": "ignore zero or null values",
216
+ "sm": 12,
217
+ "defaultFunc": "instanceObj.native.enableDebugLogs || false"
218
+ },
219
+ "debounce": {
220
+ "type": "number",
221
+ "label": "De-bounce time",
222
+ "help": "De-bounce interval(ms)",
223
+ "min": 0,
224
+ "max": 86400000,
225
+ "defaultFunc": "customObj && customObj.common && customObj.common.type === 'number' ? instanceObj.native.debounce : 0",
226
+ "hidden": "true",
469
227
  "sm": 6
470
228
  },
471
229
  "ignoreBelowZero": {
472
230
  "type": "checkbox",
473
231
  "label": "ignore values below zero",
474
- "hidden": "!customObj || !customObj.common || customObj.common.type !== 'number'",
232
+ "hidden": "true",
475
233
  "sm": 6
476
234
  }
477
235
  }