iobroker.sql 1.16.0 → 1.16.1
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/README.md +12 -8
- package/admin/i18n/pt/translations.json +1 -1
- package/admin/jsonCustom.json +5 -3
- package/admin/words.js +1 -1
- package/io-package.json +16 -14
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -253,8 +253,8 @@ If you want to delete entry from the Database you can use the build in system fu
|
|
|
253
253
|
|
|
254
254
|
```
|
|
255
255
|
sendTo('sql.0', 'delete', [
|
|
256
|
-
{id: 'mbus.0.counter.xxx, state: {ts: 1589458809352},
|
|
257
|
-
{id: 'mbus.0.counter.yyy, state: {ts: 1589458809353}
|
|
256
|
+
{id: 'mbus.0.counter.xxx', state: {ts: 1589458809352},
|
|
257
|
+
{id: 'mbus.0.counter.yyy', state: {ts: 1589458809353}
|
|
258
258
|
], result => console.log('deleted'));
|
|
259
259
|
```
|
|
260
260
|
|
|
@@ -262,8 +262,8 @@ To delete ALL history data for some data point execute:
|
|
|
262
262
|
|
|
263
263
|
```
|
|
264
264
|
sendTo('sql.0', 'deleteAll', [
|
|
265
|
-
{id: 'mbus.0.counter.xxx}
|
|
266
|
-
{id: 'mbus.0.counter.yyy}
|
|
265
|
+
{id: 'mbus.0.counter.xxx'}
|
|
266
|
+
{id: 'mbus.0.counter.yyy'}
|
|
267
267
|
], result => console.log('deleted'));
|
|
268
268
|
```
|
|
269
269
|
|
|
@@ -271,8 +271,8 @@ To delete history data for some data point and for some range execute:
|
|
|
271
271
|
|
|
272
272
|
```
|
|
273
273
|
sendTo('sql.0', 'deleteRange', [
|
|
274
|
-
{id: 'mbus.0.counter.xxx, start: '2019-01-01T00:00:00.000Z', end: '2019-12-31T23:59:59.999'},
|
|
275
|
-
{id: 'mbus.0.counter.yyy, start: 1589458809352, end: 1589458809353}
|
|
274
|
+
{id: 'mbus.0.counter.xxx', start: '2019-01-01T00:00:00.000Z', end: '2019-12-31T23:59:59.999'},
|
|
275
|
+
{id: 'mbus.0.counter.yyy', start: 1589458809352, end: 1589458809353}
|
|
276
276
|
], result => console.log('deleted'));
|
|
277
277
|
```
|
|
278
278
|
|
|
@@ -285,8 +285,8 @@ If you want to change entry's value, quality or acknowledge flag in the database
|
|
|
285
285
|
|
|
286
286
|
```
|
|
287
287
|
sendTo('sql.0', 'update', [
|
|
288
|
-
{id: 'mbus.0.counter.xxx, state: {ts: 1589458809352, val: 15, ack: true, q: 0},
|
|
289
|
-
{id: 'mbus.0.counter.
|
|
288
|
+
{id: 'mbus.0.counter.xxx', state: {ts: 1589458809352, val: 15, ack: true, q: 0},
|
|
289
|
+
{id: 'mbus.0.counter.yyy', state: {ts: 1589458809353, val: 16, ack: true, q: 0}
|
|
290
290
|
], result => console.log('deleted'));
|
|
291
291
|
```
|
|
292
292
|
|
|
@@ -420,6 +420,10 @@ sendTo('sql.0', 'getEnabledDPs', {}, function (result) {
|
|
|
420
420
|
-->
|
|
421
421
|
|
|
422
422
|
## Changelog
|
|
423
|
+
### 1.16.1 (2021-12-19)
|
|
424
|
+
* (Excodibur) Hide settings not relevant when "log changes only" is not used
|
|
425
|
+
* (Apollon77) Allow all number values for debounce again
|
|
426
|
+
|
|
423
427
|
### 1.16.0 (2021-12-14)
|
|
424
428
|
* (bluefox) Support only `js.controller` >= 3.3.x
|
|
425
429
|
* (bluefox) Used system/custom view for collecting the objects
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"Input path with the file name.": "Por exemplo. /opt/sqlite/data.db",
|
|
26
26
|
"Maximum concurrent connections": "Máximo de conexões simultâneas",
|
|
27
27
|
"Maximum concurrent connections:": "",
|
|
28
|
-
"Ok": "
|
|
28
|
+
"Ok": "Ok",
|
|
29
29
|
"Password": "Senha",
|
|
30
30
|
"Password confirm": "Confirmação de senha",
|
|
31
31
|
"Password confirmation is not equal with password!": "A confirmação da senha não é igual com a senha!",
|
package/admin/jsonCustom.json
CHANGED
|
@@ -342,7 +342,7 @@
|
|
|
342
342
|
"type": "number",
|
|
343
343
|
"label": "De-bounce time",
|
|
344
344
|
"help": "De-bounce interval(ms)",
|
|
345
|
-
"min":
|
|
345
|
+
"min": 0,
|
|
346
346
|
"max": 86400000,
|
|
347
347
|
"defaultFunc": "customObj && customObj.common && customObj.common.type === 'number' ? instanceObj.native.debounce : 0",
|
|
348
348
|
"sm": 6
|
|
@@ -355,7 +355,8 @@
|
|
|
355
355
|
"max": 86400000,
|
|
356
356
|
"help": "0 = disabled",
|
|
357
357
|
"defaultFunc": "instanceObj.native.changesRelogInterval",
|
|
358
|
-
"sm": 6
|
|
358
|
+
"sm": 6,
|
|
359
|
+
"disabled": "!data.changesOnly"
|
|
359
360
|
},
|
|
360
361
|
"changesMinDelta": {
|
|
361
362
|
"type": "number",
|
|
@@ -364,7 +365,8 @@
|
|
|
364
365
|
"defaultFunc": "customObj && customObj.common && customObj.common.type === 'number' ? instanceObj.native.changesMinDelta : 0",
|
|
365
366
|
"default": 0,
|
|
366
367
|
"sm": 6,
|
|
367
|
-
"help": "0 = disable delta check"
|
|
368
|
+
"help": "0 = disable delta check",
|
|
369
|
+
"disabled": "!data.changesOnly"
|
|
368
370
|
},
|
|
369
371
|
"storageType": {
|
|
370
372
|
"newLine": true,
|
package/admin/words.js
CHANGED
|
@@ -28,7 +28,7 @@ systemDictionary = {
|
|
|
28
28
|
"Input path with the file name.": { "en": "E.g. /opt/sqlite/data.db", "de": "Z.B. /opt/sqlite/data.db", "ru": "Например /opt/sqlite/data.db", "pt": "Por exemplo. /opt/sqlite/data.db", "nl": "Bijv. /opt/sqlite/data.db", "fr": "Par exemple. /opt/sqlite/data.db", "it": "Per esempio. /opt/sqlite/data.db", "es": "P.ej. /opt/sqlite/data.db", "pl": "Na przykład. /opt/sqlite/data.db", "zh-cn": "例如。 "},
|
|
29
29
|
"Maximum concurrent connections": { "en": "Maximum concurrent connections", "de": "Max. gleichzeitige Verbindungen", "ru": "Максимальное количество одновременных подключений", "pt": "Máximo de conexões simultâneas", "nl": "Maximum aantal gelijktijdige verbindingen", "fr": "Nombre maximal de connexions simultanées", "it": "Numero massimo di connessioni simultanee", "es": "Máximas conexiones concurrentes", "pl": "Maksymalna liczba jednoczesnych połączeń", "zh-cn": "最大并发连接数"},
|
|
30
30
|
"Maximum concurrent connections:": { "en": "Maximum concurrent connections:", "de": "Maximale Anzahl parallele Verbindungen:", "zh-cn": "最大并发连接数:"},
|
|
31
|
-
"Ok": { "en": "Ok", "de": "Ok", "ru": "Ok", "pt": "
|
|
31
|
+
"Ok": { "en": "Ok", "de": "Ok", "ru": "Ok", "pt": "Ok", "nl": "OK", "fr": "D'accord", "it": "Ok", "es": "De acuerdo", "pl": "Ok", "zh-cn": "好的"},
|
|
32
32
|
"Password": { "en": "Password", "de": "Passwort", "ru": "Пароль", "pt": "Senha", "nl": "Wachtwoord", "fr": "Mot de passe", "it": "Parola d'ordine", "es": "Contraseña", "pl": "Hasło", "zh-cn": "密码"},
|
|
33
33
|
"Password confirm": { "en": "Password confirm", "de": "Passwort-Wiederholung", "ru": "Подтверждение пароля", "pt": "Confirmação de senha", "nl": "Wachtwoord bevestigen", "fr": "Confirmer le mot de passe", "it": "Conferma la password", "es": "Contraseña confirmada", "pl": "Potwierdź hasło", "zh-cn": "确认密码"},
|
|
34
34
|
"Password confirmation is not equal with password!": {"en": "Password confirmation is not equal with password!", "de": "Passwort-Bestätigung stimmt nicht mit dem Passwort überein!", "ru": "Подтверждение пароля не совпадает с паролем!", "pt": "A confirmação da senha não é igual com a senha!", "nl": "Wachtwoordbevestiging is niet gelijk aan wachtwoord!", "fr": "La confirmation du mot de passe n'est pas égale au mot de passe!", "it": "La conferma della password non è uguale alla password!", "es": "La confirmación de la contraseña no es igual a la contraseña!", "pl": "Potwierdzenie hasła nie jest równe hasłu!", "zh-cn": "密码确认不等于密码!"},
|
package/io-package.json
CHANGED
|
@@ -26,8 +26,20 @@
|
|
|
26
26
|
"pl": "Rejestrowanie stanów w SQL DB",
|
|
27
27
|
"zh-cn": "将状态记录到SQL DB"
|
|
28
28
|
},
|
|
29
|
-
"version": "1.16.
|
|
29
|
+
"version": "1.16.1",
|
|
30
30
|
"news": {
|
|
31
|
+
"1.16.1": {
|
|
32
|
+
"en": "Hide settings not relevant when \"log changes only\" is not used\nAllow all number values for debounce again",
|
|
33
|
+
"de": "Nicht relevante Einstellungen ausblenden, wenn \"Nur Änderungen protokollieren\" nicht verwendet wird\nAlle Zahlenwerte wieder für die Entprellung zulassen",
|
|
34
|
+
"ru": "Скрыть настройки, не актуальные, если не используется \"только изменения журнала\"\nРазрешить все числовые значения для устранения дребезга снова",
|
|
35
|
+
"pt": "Ocultar configurações irrelevantes quando \"apenas registro de alterações\" não é usado\nPermitir todos os valores numéricos para debounce novamente",
|
|
36
|
+
"nl": "Instellingen verbergen die niet relevant zijn wanneer \"alleen logboekwijzigingen\" niet wordt gebruikt\nSta alle getalwaarden opnieuw toe voor debounce",
|
|
37
|
+
"fr": "Masquer les paramètres non pertinents lorsque \"log changes only\" n'est pas utilisé\nAutoriser à nouveau toutes les valeurs numériques pour l'anti-rebond",
|
|
38
|
+
"it": "Nascondi le impostazioni non rilevanti quando \"solo modifiche al registro\" non viene utilizzato\nConsenti di nuovo l'antirimbalzo di tutti i valori numerici",
|
|
39
|
+
"es": "Ocultar la configuración que no es relevante cuando no se utiliza \"solo cambios de registro\"\nPermitir todos los valores numéricos para antirrebote nuevamente",
|
|
40
|
+
"pl": "Ukryj ustawienia nieistotne, gdy nie używasz opcji „tylko rejestruj zmiany”\nZezwól ponownie na odrzucenie wszystkich wartości liczbowych",
|
|
41
|
+
"zh-cn": "不使用“仅记录更改”时隐藏不相关的设置\n再次允许所有数值去抖动"
|
|
42
|
+
},
|
|
31
43
|
"1.16.0": {
|
|
32
44
|
"en": "Support only `js.controller` >= 3.3.x\nUsed system/custom view for collecting the objects\nImplemented option to ignore zero- or/and below zero- values",
|
|
33
45
|
"de": "Unterstützt nur `js.controller` >= 3.3.x\nVerwendete Systemansicht/benutzerdefinierte Ansicht zum Sammeln der Objekte\nImplementierte Option zum Ignorieren von Null- oder/und Unter-Null-Werten",
|
|
@@ -99,18 +111,6 @@
|
|
|
99
111
|
"es": "Añadida la opción \"No crear base de datos\". P.ej. si se creó DB y no es necesario que lo haga, porque el usuario no tiene suficientes derechos.",
|
|
100
112
|
"pl": "Dodano opcję „Nie twórz bazy danych”. Na przykład. jeśli baza danych została utworzona i nie jest to wymagane, ponieważ użytkownik nie ma wystarczających uprawnień.",
|
|
101
113
|
"zh-cn": "添加了选项“不创建数据库”。例如。如果已创建数据库,则不需要这样做,因为用户没有足够的权限。"
|
|
102
|
-
},
|
|
103
|
-
"1.15.2": {
|
|
104
|
-
"en": "prevent wrong errors that realId is missing",
|
|
105
|
-
"de": "Verhindern Sie falsche Fehler, bei denen realId fehlt",
|
|
106
|
-
"ru": "предотвратить неправильные ошибки, которые отсутствуют в realId",
|
|
107
|
-
"pt": "evitar erros errados que faltam realId",
|
|
108
|
-
"nl": "voorkom verkeerde fouten die realId mist",
|
|
109
|
-
"fr": "éviter les erreurs erronées manquantes dans realId",
|
|
110
|
-
"it": "prevenire errori errati che realId manca",
|
|
111
|
-
"es": "evitar errores incorrectos que faltan realId",
|
|
112
|
-
"pl": "zapobiega błędnym błędom, których brakuje realId",
|
|
113
|
-
"zh-cn": "防止缺少realId的错误错误"
|
|
114
114
|
}
|
|
115
115
|
},
|
|
116
116
|
"mode": "daemon",
|
|
@@ -159,7 +159,9 @@
|
|
|
159
159
|
},
|
|
160
160
|
"jsonCustom": true,
|
|
161
161
|
"jsonConfig": true,
|
|
162
|
-
"tier": 1
|
|
162
|
+
"tier": 1,
|
|
163
|
+
"connectionType": "none",
|
|
164
|
+
"dataSource": "push"
|
|
163
165
|
},
|
|
164
166
|
"native": {
|
|
165
167
|
"connLink": "",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "iobroker.sql",
|
|
3
3
|
"description": "Log state sql in a two-stages process (first to Redis, then to CouchDB)",
|
|
4
|
-
"version": "1.16.
|
|
4
|
+
"version": "1.16.1",
|
|
5
5
|
"author": "bluefox <dogafox@gmail.com>",
|
|
6
6
|
"contributors": [
|
|
7
7
|
"bluefox <dogafox@gmail.com>",
|
|
@@ -27,11 +27,11 @@
|
|
|
27
27
|
"mssql": "^6.3.1"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"sql-client": "^
|
|
30
|
+
"sql-client": "^3.0.0",
|
|
31
31
|
"@iobroker/adapter-core": "^2.5.1"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@alcalzone/release-script": "^3.4.
|
|
34
|
+
"@alcalzone/release-script": "^3.4.2",
|
|
35
35
|
"@alcalzone/release-script-plugin-iobroker": "^3.4.1",
|
|
36
36
|
"@alcalzone/release-script-plugin-license": "^3.4.1",
|
|
37
37
|
"axios": "^0.24.0",
|