iobroker.influxdb 2.5.2 → 2.6.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/README.md CHANGED
@@ -282,8 +282,6 @@ sendTo('sql.0', 'update', [
282
282
 
283
283
  `ts` is mandatory. At least one other flags must be included in state object.
284
284
 
285
- Be careful with `counters`. The `counters` in DB will not be reset, and you must handle it yourself.
286
-
287
285
  ## History Logging Management via Javascript
288
286
  The adapter supports enabling and disabling of history logging via JavaScript and also retrieving the list of enabled data points with their settings.
289
287
 
@@ -355,6 +353,18 @@ sendTo('influxdb.0', 'getEnabledDPs', {}, function (result) {
355
353
  -->
356
354
 
357
355
  ## Changelog
356
+ ### 2.6.2 (2022-03-03)
357
+ * (Apollon77) Correctly handle db names with hyphens for InfluxDB 1
358
+ * (Apollon77) Fix getHistory for non boolean fields
359
+ * (Apollon77) Adjust shard group duration to influxdb proposals
360
+
361
+ ### 2.6.1 (2022-02-28)
362
+ * (Excodibur) Address issue with updating retention policy for influxDB 1
363
+
364
+ ### 2.6.0 (2022-02-24)
365
+ * (Excodibur) Make request timeout configurable - defaults to 30s
366
+ * (Apollon77) Add option to also accept self signed ssl certificates for InfluxDB 2.x
367
+
358
368
  ### 2.5.2 (2022-02-22)
359
369
  * (bluefox) Marked interpolated data with `i=true`
360
370
 
@@ -27,12 +27,14 @@
27
27
  "History adapter settings": "History-Adapter Einstellungen",
28
28
  "Host": "Server",
29
29
  "Lowering the retention period should be considered with caution: Past data exceeding the retention period will be lost.": "Eine Verkürzung der Vorhaltezeit ist mit Vorsicht zu genießen: Vergangene Daten, die die Vorhaltezeit überschreiten, gehen verloren.",
30
+ "Milliseconds": "Millisekunden",
30
31
  "Ok": "Ok",
31
32
  "Organization": "Organisation",
32
33
  "Password": "Passwort",
33
34
  "Password confirm": "Passwort-Wiederholung",
34
35
  "Please confirm!": "Bitte bestätigen!",
35
36
  "Port": "Port",
37
+ "Request timeout": "Request Timeout",
36
38
  "Reset DB": "Alle Daten in Datenbank löschen",
37
39
  "Round real to": "Aufrunden auf",
38
40
  "SQL history adapter settings": "SQL History Adapter Einstellungen",
@@ -45,6 +47,7 @@
45
47
  "Token": "Token",
46
48
  "Use tags to store metadata information, instead of fields": "Verwende Tags, anstelle von Feldern, um Metadateninformationen zu speichern",
47
49
  "User": "Benutzer",
50
+ "Validate SSL certificate": "SSL-Zertifikat validieren",
48
51
  "debounce": "Änderungen ignorieren, bis der Wert für X Millisekunden unverändert bleibt",
49
52
  "health-check help": "Regelmäßige Verfügbarkeits-Anfragen werden an den DB-Server gesendet, um zu überprüfen, ob er noch aktiv ist.",
50
53
  "keep forever": "keine automatische Löschung",
@@ -27,12 +27,14 @@
27
27
  "History adapter settings": "History adapter settings",
28
28
  "Host": "Host",
29
29
  "Lowering the retention period should be considered with caution: Past data exceeding the retention period will be lost.": "Lowering the retention period should be considered with caution: Past data exceeding the retention period will be lost.",
30
+ "Milliseconds": "Milliseconds",
30
31
  "Ok": "Ok",
31
32
  "Organization": "Organization",
32
33
  "Password": "Password",
33
34
  "Password confirm": "Password confirm",
34
35
  "Please confirm!": "Please confirm!",
35
36
  "Port": "Port",
37
+ "Request timeout": "Request timeout",
36
38
  "Reset DB": "Reset DB",
37
39
  "Round real to": "Round real to",
38
40
  "SQL history adapter settings": "SQL history adapter settings",
@@ -45,6 +47,7 @@
45
47
  "Token": "Token",
46
48
  "Use tags to store metadata information, instead of fields": "Use tags to store metadata information, instead of fields",
47
49
  "User": "User",
50
+ "Validate SSL certificate": "Validate SSL certificate",
48
51
  "debounce": "Ignore changes till value stays unchanged for X Milliseconds",
49
52
  "health-check help": "Regular health checks probes are sent to the DB server to check if it is still alive.",
50
53
  "keep forever": "keep forever",
@@ -27,12 +27,14 @@
27
27
  "History adapter settings": "Configuración del adaptador de historial",
28
28
  "Host": "Anfitrión",
29
29
  "Lowering the retention period should be considered with caution: Past data exceeding the retention period will be lost.": "Reducir el período de retención debe considerarse con precaución: los datos anteriores que excedan el período de retención se perderán.",
30
+ "Milliseconds": "milisegundos",
30
31
  "Ok": "De acuerdo",
31
32
  "Organization": "Organización",
32
33
  "Password": "Contraseña",
33
34
  "Password confirm": "Contraseña confirmada",
34
35
  "Please confirm!": "Por favor confirmar",
35
36
  "Port": "Puerto",
37
+ "Request timeout": "Pide tiempo fuera",
36
38
  "Reset DB": "Restablecer DB",
37
39
  "Round real to": "Redondo real a",
38
40
  "SQL history adapter settings": "Configuración del adaptador de historial SQL",
@@ -45,6 +47,7 @@
45
47
  "Token": "Simbólico",
46
48
  "Use tags to store metadata information, instead of fields": "Utilice etiquetas para almacenar información de metadatos, en lugar de campos",
47
49
  "User": "Usuario",
50
+ "Validate SSL certificate": "Validar certificado SSL",
48
51
  "debounce": "Ignorar cambios hasta que el valor permanezca sin cambios durante X milisegundos",
49
52
  "health-check help": "Se envían sondas de verificación de estado regulares al servidor de base de datos para verificar si todavía está vivo.",
50
53
  "keep forever": "mantener para siempre",
@@ -27,12 +27,14 @@
27
27
  "History adapter settings": "History adapter settings",
28
28
  "Host": "Host",
29
29
  "Lowering the retention period should be considered with caution: Past data exceeding the retention period will be lost.": "La réduction de la période de conservation doit être envisagée avec prudence : les données antérieures dépassant la période de conservation seront perdues.",
30
+ "Milliseconds": "Millisecondes",
30
31
  "Ok": "Ok",
31
32
  "Organization": "Organisation",
32
33
  "Password": "Password",
33
34
  "Password confirm": "Password confirm",
34
35
  "Please confirm!": "Veuillez confirmer",
35
36
  "Port": "Port",
37
+ "Request timeout": "Délai d'expiration de la demande",
36
38
  "Reset DB": "Reset DB",
37
39
  "Round real to": "Round real to",
38
40
  "SQL history adapter settings": "SQL history adapter settings",
@@ -45,6 +47,7 @@
45
47
  "Token": "Jeton",
46
48
  "Use tags to store metadata information, instead of fields": "Utilisez des balises pour stocker les informations de métadonnées, au lieu de champs",
47
49
  "User": "User",
50
+ "Validate SSL certificate": "Valider le certificat SSL",
48
51
  "debounce": "Ignorer les modifications jusqu'à ce que la valeur reste inchangée pour X millisecondes",
49
52
  "health-check help": "Des vérifications de santé régulières sont envoyées au serveur de base de données pour vérifier s'il est toujours actif.",
50
53
  "keep forever": "keep forever",
@@ -27,12 +27,14 @@
27
27
  "History adapter settings": "Impostazioni della scheda Cronologia",
28
28
  "Host": "Ospite",
29
29
  "Lowering the retention period should be considered with caution: Past data exceeding the retention period will be lost.": "La riduzione del periodo di conservazione deve essere considerata con cautela: i dati passati che superano il periodo di conservazione andranno persi.",
30
+ "Milliseconds": "Millisecondi",
30
31
  "Ok": "Ok",
31
32
  "Organization": "Organizzazione",
32
33
  "Password": "Parola d'ordine",
33
34
  "Password confirm": "Conferma la password",
34
35
  "Please confirm!": "Si prega di confermare",
35
36
  "Port": "Porta",
37
+ "Request timeout": "Richiedi timeout",
36
38
  "Reset DB": "Ripristina DB",
37
39
  "Round real to": "Turno reale a",
38
40
  "SQL history adapter settings": "Impostazioni della scheda cronologia SQL",
@@ -45,6 +47,7 @@
45
47
  "Token": "Gettone",
46
48
  "Use tags to store metadata information, instead of fields": "Usa i tag per memorizzare le informazioni sui metadati, invece dei campi",
47
49
  "User": "Utente",
50
+ "Validate SSL certificate": "Convalida il certificato SSL",
48
51
  "debounce": "Ignora le modifiche fino a quando il valore rimane invariato per X Milliseconds",
49
52
  "health-check help": "Controlli di integrità regolari vengono inviati al server DB per verificare se è ancora attivo.",
50
53
  "keep forever": "tienilo per sempre",
@@ -27,12 +27,14 @@
27
27
  "History adapter settings": "Geschiedenis adapter instellingen",
28
28
  "Host": "gastheer",
29
29
  "Lowering the retention period should be considered with caution: Past data exceeding the retention period will be lost.": "Het verlagen van de bewaarperiode moet met de nodige voorzichtigheid worden overwogen: gegevens uit het verleden die de bewaarperiode overschrijden, gaan verloren.",
30
+ "Milliseconds": "milliseconden",
30
31
  "Ok": "OK",
31
32
  "Organization": "Organisatie",
32
33
  "Password": "Wachtwoord",
33
34
  "Password confirm": "Wachtwoord bevestigen",
34
35
  "Please confirm!": "Bevestig alstublieft",
35
36
  "Port": "Haven",
37
+ "Request timeout": "Verzoek time-out",
36
38
  "Reset DB": "Stel DB opnieuw in",
37
39
  "Round real to": "Ronde echt naar",
38
40
  "SQL history adapter settings": "Instellingen voor SQL-geschiedenisadapter",
@@ -45,6 +47,7 @@
45
47
  "Token": "Teken",
46
48
  "Use tags to store metadata information, instead of fields": "Gebruik tags om metadata-informatie op te slaan in plaats van velden",
47
49
  "User": "Gebruiker",
50
+ "Validate SSL certificate": "SSL-certificaat valideren",
48
51
  "debounce": "Wijzigingen negeren totdat waarde ongewijzigd blijft voor X Milliseconds",
49
52
  "health-check help": "Regelmatige gezondheidscontroles worden naar de DB-server gestuurd om te controleren of deze nog in leven is.",
50
53
  "keep forever": "blijf voor altijd",
@@ -27,12 +27,14 @@
27
27
  "History adapter settings": "Ustawienia adaptera historii",
28
28
  "Host": "Gospodarz",
29
29
  "Lowering the retention period should be considered with caution: Past data exceeding the retention period will be lost.": "Obniżenie okresu przechowywania należy rozważać z ostrożnością: Przeszłe dane przekraczające okres przechowywania zostaną utracone.",
30
+ "Milliseconds": "Milisekundy",
30
31
  "Ok": "Ok",
31
32
  "Organization": "Organizacja",
32
33
  "Password": "Hasło",
33
34
  "Password confirm": "Potwierdź hasło",
34
35
  "Please confirm!": "Proszę potwierdzić",
35
36
  "Port": "Port",
37
+ "Request timeout": "Limit czasu żądania",
36
38
  "Reset DB": "Zresetuj DB",
37
39
  "Round real to": "Runda prawdziwa do",
38
40
  "SQL history adapter settings": "Ustawienia adaptera historii SQL",
@@ -45,6 +47,7 @@
45
47
  "Token": "Znak",
46
48
  "Use tags to store metadata information, instead of fields": "Używaj tagów do przechowywania informacji o metadanych zamiast pól",
47
49
  "User": "Użytkownik",
50
+ "Validate SSL certificate": "Zweryfikuj certyfikat SSL",
48
51
  "debounce": "Zignoruj ​​zmiany, aż wartość pozostanie niezmieniona przez X Milliseconds",
49
52
  "health-check help": "Regularne sondy sprawdzające kondycję są wysyłane do serwera bazy danych w celu sprawdzenia, czy nadal działa.",
50
53
  "keep forever": "zachowaj na zawsze",
@@ -27,12 +27,14 @@
27
27
  "History adapter settings": "Configurações do adaptador de histórico",
28
28
  "Host": "Hospedeiro",
29
29
  "Lowering the retention period should be considered with caution: Past data exceeding the retention period will be lost.": "A redução do período de retenção deve ser considerada com cautela: os dados anteriores que excederem o período de retenção serão perdidos.",
30
+ "Milliseconds": "Milissegundos",
30
31
  "Ok": "Ok",
31
32
  "Organization": "Organização",
32
33
  "Password": "Senha",
33
34
  "Password confirm": "Confirmação de senha",
34
35
  "Please confirm!": "Por favor confirme",
35
36
  "Port": "Porta",
37
+ "Request timeout": "Solicitar tempo limite",
36
38
  "Reset DB": "Redefinir DB",
37
39
  "Round real to": "Round real to",
38
40
  "SQL history adapter settings": "Configurações do adaptador de histórico SQL",
@@ -45,6 +47,7 @@
45
47
  "Token": "Símbolo",
46
48
  "Use tags to store metadata information, instead of fields": "Use tags para armazenar informações de metadados, em vez de campos",
47
49
  "User": "Do utilizador",
50
+ "Validate SSL certificate": "Validar certificado SSL",
48
51
  "debounce": "Ignorar alterações até que o valor permaneça inalterado por X Milissegundos",
49
52
  "health-check help": "Sondagens de verificações regulares de integridade são enviadas ao servidor de banco de dados para verificar se ele ainda está ativo.",
50
53
  "keep forever": "mantenha para sempre",
@@ -54,4 +57,4 @@
54
57
  "retention": "Retenção de armazenamento",
55
58
  "use 0 to not buffer at all": "Use 0 para não buffer no total",
56
59
  "usetags help": "Para obter mais informações, consulte a documentação: https://github.com/ioBroker/ioBroker.influxdb/blob/master/README.md#Store-metadata-information-as-tags-instead-of-fields"
57
- }
60
+ }
@@ -27,12 +27,14 @@
27
27
  "History adapter settings": "Настройки драйвера history",
28
28
  "Host": "Хост",
29
29
  "Lowering the retention period should be considered with caution: Past data exceeding the retention period will be lost.": "К уменьшению срока хранения следует подходить с осторожностью: прошлые данные, превышающие срок хранения, будут потеряны.",
30
+ "Milliseconds": "Миллисекунды",
30
31
  "Ok": "Ok",
31
32
  "Organization": "Организация",
32
33
  "Password": "Пароль",
33
34
  "Password confirm": "Подтверждение пароля",
34
35
  "Please confirm!": "Пожалуйста подтвердите",
35
36
  "Port": "Порт",
37
+ "Request timeout": "Время ожидания запроса",
36
38
  "Reset DB": "Очистить базу",
37
39
  "Round real to": "Округлять до",
38
40
  "SQL history adapter settings": "Настройки профайлера в SQL базу данных",
@@ -45,6 +47,7 @@
45
47
  "Token": "Токен",
46
48
  "Use tags to store metadata information, instead of fields": "Используйте теги для хранения информации метаданных вместо полей",
47
49
  "User": "Пользователь",
50
+ "Validate SSL certificate": "Проверить SSL-сертификат",
48
51
  "debounce": "Игнорировать изменения до тех пор, пока не будет постоянного значения в течение X миллисекунд",
49
52
  "health-check help": "На сервер БД отправляются регулярные зонды проверки работоспособности, чтобы проверить, жив ли он.",
50
53
  "keep forever": "хранить вечно",
@@ -27,12 +27,14 @@
27
27
  "History adapter settings": "历史记录适配器设置",
28
28
  "Host": "主持人",
29
29
  "Lowering the retention period should be considered with caution: Past data exceeding the retention period will be lost.": "应谨慎考虑降低保留期限:超过保留期限的过去数据将丢失。",
30
+ "Milliseconds": "毫秒",
30
31
  "Ok": "好的",
31
32
  "Organization": "组织",
32
33
  "Password": "密码",
33
34
  "Password confirm": "确认密码",
34
35
  "Please confirm!": "请确认",
35
36
  "Port": "港口",
37
+ "Request timeout": "请求超时",
36
38
  "Reset DB": "重置数据库",
37
39
  "Round real to": "舍入为实",
38
40
  "SQL history adapter settings": "SQL历史记录适配器设置",
@@ -45,6 +47,7 @@
45
47
  "Token": "代币",
46
48
  "Use tags to store metadata information, instead of fields": "使用标签来存储元数据信息,而不是字段",
47
49
  "User": "用户",
50
+ "Validate SSL certificate": "验证 SSL 证书",
48
51
  "debounce": "忽略更改,直到值保持不变为X毫秒",
49
52
  "health-check help": "定期健康检查探针会发送到数据库服务器以检查它是否还活着。",
50
53
  "keep forever": "永远保持",
@@ -76,7 +76,9 @@
76
76
  password: $('#password').val(),
77
77
  organization: $('#organization').val(),
78
78
  token: $('#token').val(),
79
- dbname: $('#dbname').val()
79
+ dbname: $('#dbname').val(),
80
+ requestTimeout: $("#requestTimeout").val(),
81
+ validateSSL: $("#validateSSL").val()
80
82
  }
81
83
  }, function (response) {
82
84
  $('#test').button('option', 'disabled', false);
@@ -110,20 +112,6 @@
110
112
  }
111
113
  });
112
114
  });
113
- $('#dbtype').on('change', function () {
114
- if ($(this).val() === 'sqlite') {
115
- $('.real-sql').hide();
116
- $('.baby-sql').show();
117
- } else if ($(this).val() === 'mssql') {
118
- $('.real-sql').show();
119
- $('.baby-sql').hide();
120
- } else {
121
- $('.real-sql').show();
122
- $('.baby-sql').hide();
123
- $('.ms-sql').hide();
124
- }
125
- }).trigger('change');
126
-
127
115
  $('#dbversion').on('change', function () {
128
116
  if ($(this).val() === '1.x') {
129
117
  $('.influx1').show();
@@ -236,6 +224,16 @@
236
224
  <input id="dbname" class="value"/>
237
225
  <label for="dbname" class="translate">DB Name</label>
238
226
  </div>
227
+ <div class="col s12 m4">
228
+ <input id="requestTimeout" class="value"/>
229
+ <label for="requestTimeout"><span class="translate">Request timeout</span> (<span class="translate">Milliseconds</span>)</label>
230
+ </div>
231
+ </div>
232
+ <div class="row influx2">
233
+ <div class="col s12 influx2">
234
+ <input id="validateSSL" type="checkbox" class="value"/>
235
+ <label for="validateSSL" class="translate">Validate SSL certificate</label>
236
+ </div>
239
237
  </div>
240
238
  <div class="row">
241
239
  <div class="col s12 m4">
@@ -85,7 +85,23 @@
85
85
  "sm": 12,
86
86
  "md": 8
87
87
  },
88
-
88
+ "requestTimeout": {
89
+ "newLine": true,
90
+ "type": "number",
91
+ "label": "Request timeout",
92
+ "help": "Milliseconds",
93
+ "sm": 12,
94
+ "md": 2
95
+ },
96
+ "validateSSL": {
97
+ "newLine": false,
98
+ "type": "checkbox",
99
+ "label": "Validate SSL certificate",
100
+ "hidden": "data.dbversion === '1.x'",
101
+ "disabled": "data.dbversion === '1.x'",
102
+ "sm": 12,
103
+ "md": 4
104
+ },
89
105
  "round": {
90
106
  "newLine": true,
91
107
  "type": "number",
@@ -120,7 +136,7 @@
120
136
  },
121
137
  "icon": "data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjUxMiIgdmlld0JveD0iMCAwIDMyIDMyIiB3aWR0aD0iNTEyIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPg0KICAgIDxwYXRoIGZpbGw9ImN1cnJlbnRDb2xvciIgZD0ibTIyLjk4NSAxMy42OTJoLS4wMTl2LTEuNzQ2YS44MjIuODIyIDAgMCAwIDAtLjEzOSAxIDEgMCAwIDAgLS4wMTEtLjE0NXYtNS4zNjhhLjcwOC43MDggMCAwIDAgMC0uMTM5IDIuNjQgMi42NCAwIDAgMCAtMS42MzQtMi4xNzFjLTEuNzUtLjk1NC01LjI2OS0xLjY0NS05LjMzLTEuNjQ1cy03LjU3OS42OTEtOS4zMjkgMS42NDVhMi42NCAyLjY0IDAgMCAwIC0xLjYzNSAyLjE2Ny43ODguNzg4IDAgMCAwIDAgLjEzNWwtLjAxIDUuNTIyYTEuMDQxIDEuMDQxIDAgMCAwIC4wMi4yNTZsLS4wMSA1LjRhLjg4NS44ODUgMCAwIDAgLjAxLjE5MWwtLjAxIDUuNDU1cy0uMTE4IDEuMTkgMS43ODQgMi4yNTVjMS4zMjguNzQ0IDMuOTU2IDEuNTM1IDkuMTg5IDEuNTM1YTM3LjA5MSAzNy4wOTEgMCAwIDAgNC43MTUtLjI2NCA3Ljk5MyA3Ljk5MyAwIDEgMCA2LjI2OC0xMi45NDV6bS0xOS42NjEtNy43NzJhNC43MDYgNC43MDYgMCAwIDEgLjk4Ni0uNDk0IDIzLjExMiAyMy4xMTIgMCAwIDEgNy42ODEtMS4wODcgMjMuMTExIDIzLjExMSAwIDAgMSA3LjY4MSAxLjA4NyA0LjczOSA0LjczOSAwIDAgMSAuOTg3LjQ5NCAxLjcgMS43IDAgMCAxIC4yMzIuMjA5IDIuMjc2IDIuMjc2IDAgMCAxIC0uMzE4LjMxOCA0Ljk4NCA0Ljk4NCAwIDAgMSAtLjkuNDM4IDIzLjE0IDIzLjE0IDAgMCAxIC03LjY4MSAxLjA4NiAyMy4xNDEgMjMuMTQxIDAgMCAxIC03LjY4Mi0xLjA4NiA1LjAxOSA1LjAxOSAwIDAgMSAtLjktLjQzOCAyLjMzNCAyLjMzNCAwIDAgMSAtLjMxOC0uMzE4IDEuNzcgMS43NyAwIDAgMSAuMjMyLS4yMDl6bS0uMyAyLjY0M2MxLjM4Ny43IDQuMDA1IDEuNDA4IDguOTY4IDEuNDA4czcuNTc1LS43IDguOTY0LTEuNDA2djMuMTEyYTIuMzE2IDIuMzE2IDAgMCAxIC0uNzM3LjY0N2MtMS4xNzQuNjY0LTMuNTMgMS4yNzktOC4yMjcgMS4yNzktNC42NjkgMC03LjAyOC0uNjE2LTguMjEyLTEuMjhhMi40NTUgMi40NTUgMCAwIDEgLS43NS0uNjQ2cTAtLjAzNi0uMDEyLS4wNzJ6bTguOTc2IDE2LjMzN2MtNC42NyAwLTcuMDI5LS42MTctOC4yMTMtMS4yODFhMi40MzggMi40MzggMCAwIDEgLS43NjItLjY2MmwuMDA2LTMuMWMxLjM4OC43IDQuMDA2IDEuNDA4IDguOTY5IDEuNDA4IDEuMTE3IDAgMi4xMTItLjAzNSAzLS4xLS4wMTEuMTY3LS4wMTYuMzM1LS4wMTYuNTA1YTcuOTM4IDcuOTM4IDAgMCAwIC42MTUgMy4wNzJjLTEuMDE4LjEwMy0yLjIwOC4xNTgtMy41OTkuMTU4em0zLjQtNS43OGMtLjk3NS4wODUtMi4xLjEzNC0zLjQuMTM0LTQuNjcgMC03LjAyOS0uNjE2LTguMjEzLTEuMjhhMi40MjkgMi40MjkgMCAwIDEgLS43NjEtLjY2MmwuMDA2LTMuMWMxLjM4OC43IDQuMDA2IDEuNDA4IDguOTY5IDEuNDA4YTMwLjIyMyAzMC4yMjMgMCAwIDAgNi41MzktLjU4NSA4LjAyIDguMDIgMCAwIDAgLTMuMTQgNC4wODZ6bTcuNTgxIDguNTRhNS45ODggNS45ODggMCAwIDEgLTUuODUxLTcuMzE1Yy4wMDYtLjAxOS4wMTEtLjAzOS4wMTYtLjA1OHMuMDA5LS4wMzkuMDEyLS4wNTlhNiA2IDAgMSAxIDUuODIzIDcuNDMyeiIvPg0KICAgIDxwYXRoIGZpbGw9ImN1cnJlbnRDb2xvciIgZD0ibTE5LjYzOSAyMS45YTEgMSAwIDAgMCAxLjQxOCAxLjQxMSAyLjYyOCAyLjYyOCAwIDAgMSAzLjcyNSAwIDEgMSAwIDAgMCAxLjQxOC0xLjQxMSA0LjYyOCA0LjYyOCAwIDAgMCAtNi41NjEgMHoiLz4NCiAgICA8ZWxsaXBzZSBmaWxsPSJjdXJyZW50Q29sb3IiIGN4PSIyMi45ODUiIGN5PSIyNC44NDMiIHJ4PSIxLjY2NyIgcnk9IjEuNjc0Ii8+DQogICAgPHBhdGggZmlsbD0iY3VycmVudENvbG9yIiBkPSJtMjcuOTc5IDE5Ljc2OGE3LjA0NSA3LjA0NSAwIDAgMCAtOS45ODggMCAxIDEgMCAxIDAgMS40MTcgMS40MTIgNS4wNDUgNS4wNDUgMCAwIDEgNy4xNTQgMCAxIDEgMCAxIDAgMS40MTctMS40MTJ6Ii8+DQo8L3N2Zz4=",
122
138
  "command": "test",
123
- "jsonData": "{\"config\": {\"dbversion\": \"${data.dbversion}\", \"protocol\": \"${data.protocol}\", \"port\": \"${data.port}\", \"host\": \"${data.host}\", \"user\": \"${data.user}\", \"organization\": \"${data.organization}\", \"dbname\": \"${data.dbname}\", \"password\": \"${data.password}\", \"token\": \"${data.token}\"}}",
139
+ "jsonData": "{\"config\": {\"dbversion\": \"${data.dbversion}\", \"protocol\": \"${data.protocol}\", \"port\": \"${data.port}\", \"host\": \"${data.host}\", \"user\": \"${data.user}\", \"organization\": \"${data.organization}\", \"dbname\": \"${data.dbname}\", \"requestTimeout\": \"${data.requestTimeout}\", \"validateSSL\": ${data.validateSSL}, \"password\": \"${data.password}\", \"token\": \"${data.token}\"}}",
124
140
  "label": "Test connection"
125
141
  },
126
142
 
package/admin/words.js CHANGED
@@ -30,17 +30,20 @@ systemDictionary = {
30
30
  "History adapter settings": { "en": "History adapter settings", "de": "History-Adapter Einstellungen", "ru": "Настройки драйвера history", "pt": "Configurações do adaptador de histórico", "nl": "Geschiedenis adapter instellingen", "fr": "History adapter settings", "it": "Impostazioni della scheda Cronologia", "es": "Configuración del adaptador de historial", "pl": "Ustawienia adaptera historii", "zh-cn": "历史记录适配器设置"},
31
31
  "Host": { "en": "Host", "de": "Server", "ru": "Хост", "pt": "Hospedeiro", "nl": "gastheer", "fr": "Host", "it": "Ospite", "es": "Anfitrión", "pl": "Gospodarz", "zh-cn": "主持人"},
32
32
  "Lowering the retention period should be considered with caution: Past data exceeding the retention period will be lost.": {"en": "Lowering the retention period should be considered with caution: Past data exceeding the retention period will be lost.", "de": "Eine Verkürzung der Vorhaltezeit ist mit Vorsicht zu genießen: Vergangene Daten, die die Vorhaltezeit überschreiten, gehen verloren.", "ru": "К уменьшению срока хранения следует подходить с осторожностью: прошлые данные, превышающие срок хранения, будут потеряны.", "pt": "A redução do período de retenção deve ser considerada com cautela: os dados anteriores que excederem o período de retenção serão perdidos.", "nl": "Het verlagen van de bewaarperiode moet met de nodige voorzichtigheid worden overwogen: gegevens uit het verleden die de bewaarperiode overschrijden, gaan verloren.", "fr": "La réduction de la période de conservation doit être envisagée avec prudence : les données antérieures dépassant la période de conservation seront perdues.", "it": "La riduzione del periodo di conservazione deve essere considerata con cautela: i dati passati che superano il periodo di conservazione andranno persi.", "es": "Reducir el período de retención debe considerarse con precaución: los datos anteriores que excedan el período de retención se perderán.", "pl": "Obniżenie okresu przechowywania należy rozważać z ostrożnością: Przeszłe dane przekraczające okres przechowywania zostaną utracone.", "zh-cn": "应谨慎考虑降低保留期限:超过保留期限的过去数据将丢失。"},
33
+ "Milliseconds": { "en": "Milliseconds", "de": "Millisekunden", "ru": "Миллисекунды", "pt": "Milissegundos", "nl": "milliseconden", "fr": "Millisecondes", "it": "Millisecondi", "es": "milisegundos", "pl": "Milisekundy", "zh-cn": "毫秒"},
33
34
  "Ok": { "en": "Ok", "de": "Ok", "ru": "Ok", "pt": "Ok", "nl": "OK", "fr": "Ok", "it": "Ok", "es": "De acuerdo", "pl": "Ok", "zh-cn": "好的"},
34
35
  "Organization": { "en": "Organization", "de": "Organisation", "ru": "Организация", "pt": "Organização", "nl": "Organisatie", "fr": "Organisation", "it": "Organizzazione", "es": "Organización", "pl": "Organizacja", "zh-cn": "组织"},
35
36
  "Password": { "en": "Password", "de": "Passwort", "ru": "Пароль", "pt": "Senha", "nl": "Wachtwoord", "fr": "Password", "it": "Parola d'ordine", "es": "Contraseña", "pl": "Hasło", "zh-cn": "密码"},
36
37
  "Password confirm": { "en": "Password confirm", "de": "Passwort-Wiederholung", "ru": "Подтверждение пароля", "pt": "Confirmação de senha", "nl": "Wachtwoord bevestigen", "fr": "Password confirm", "it": "Conferma la password", "es": "Contraseña confirmada", "pl": "Potwierdź hasło", "zh-cn": "确认密码"},
37
38
  "Please confirm!": { "en": "Please confirm!", "de": "Bitte bestätigen!", "ru": "Пожалуйста подтвердите", "pt": "Por favor confirme", "nl": "Bevestig alstublieft", "fr": "Veuillez confirmer", "it": "Si prega di confermare", "es": "Por favor confirmar", "pl": "Proszę potwierdzić", "zh-cn": "请确认"},
38
39
  "Port": { "en": "Port", "de": "Port", "ru": "Порт", "pt": "Porta", "nl": "Haven", "fr": "Port", "it": "Porta", "es": "Puerto", "pl": "Port", "zh-cn": "港口"},
40
+ "Request timeout": { "en": "Request timeout", "de": "Request Timeout", "ru": "Время ожидания запроса", "pt": "Solicitar tempo limite", "nl": "Verzoek time-out", "fr": "Délai d'expiration de la demande", "it": "Richiedi timeout", "es": "Pide tiempo fuera", "pl": "Limit czasu żądania", "zh-cn": "请求超时"},
39
41
  "Reset DB": { "en": "Reset DB", "de": "Alle Daten in Datenbank löschen", "ru": "Очистить базу", "pt": "Redefinir DB", "nl": "Stel DB opnieuw in", "fr": "Reset DB", "it": "Ripristina DB", "es": "Restablecer DB", "pl": "Zresetuj DB", "zh-cn": "重置数据库"},
40
42
  "Round real to": { "en": "Round real to", "de": "Aufrunden auf", "ru": "Округлять до", "pt": "Round real to", "nl": "Ronde echt naar", "fr": "Round real to", "it": "Turno reale a", "es": "Redondo real a", "pl": "Runda prawdziwa do", "zh-cn": "舍入为实"},
41
43
  "SQL history adapter settings": { "en": "SQL history adapter settings", "de": "SQL History Adapter Einstellungen", "ru": "Настройки профайлера в SQL базу данных", "pt": "Configurações do adaptador de histórico SQL", "nl": "Instellingen voor SQL-geschiedenisadapter", "fr": "SQL history adapter settings", "it": "Impostazioni della scheda cronologia SQL", "es": "Configuración del adaptador de historial SQL", "pl": "Ustawienia adaptera historii SQL", "zh-cn": "SQL历史记录适配器设置"},
42
44
  "Save last previous value": { "en": "Save last previous value", "de": "Speichere vorherigen Wert", "ru": "Сохранять предыдущее значение", "pt": "Salvar o último valor anterior", "nl": "Sla de laatste vorige waarde op", "fr": "Save last previous value", "it": "Salva l'ultimo valore precedente", "es": "Guarde el último valor anterior", "pl": "Zapisz ostatnią poprzednią wartość", "zh-cn": "保存上一个上一个值"},
43
45
  "Seconds": { "en": "Seconds", "de": "Sekunden", "ru": "секунд", "pt": "Segundos", "nl": "seconden", "fr": "Seconds", "it": "secondi", "es": "Segundos", "pl": "sekundy", "zh-cn": "秒"},
46
+ "Send health-check pings to database": { "en": "Send health-check pings to database", "de": "Pings zur Verfügbarkeitsprüfung an die Datenbank senden", "ru": "Отправлять эхо-запросы проверки работоспособности в базу данных", "pt": "Envie pings de verificação de integridade para o banco de dados", "nl": "Stuur gezondheidscheck pings naar database", "fr": "Envoyer des pings de vérification d'état à la base de données", "it": "Invia ping di controllo dello stato al database", "es": "Enviar pings de verificación de estado a la base de datos", "pl": "Wysyłaj pingi sprawdzające kondycję do bazy danych", "zh-cn": "将健康检查 ping 发送到数据库"},
44
47
  "Start or enable adapter first": { "en": "Start or enable adapter first", "de": "Adapter muss zuerst aktiviert werden", "ru": "Сначала надо запустить или активировать драйвер", "pt": "Inicie ou ative o adaptador primeiro", "nl": "Start of schakel eerst de adapter in", "fr": "Start or enable adapter first", "it": "Inizia o abilita prima l'adattatore", "es": "Comience o habilite el adaptador primero", "pl": "Najpierw włącz lub włącz adapter", "zh-cn": "首先启动或启用适配器"},
45
48
  "Test connection": { "en": "Test connection", "de": "Verbindung testen", "ru": "Проверить соединение", "pt": "Conexão de teste", "nl": "Test verbinding", "fr": "Test connection", "it": "Connessione di prova", "es": "Conexión de prueba", "pl": "Testuj połączenie", "zh-cn": "测试连接"},
46
49
  "This feature can only be used on databases that are empty, or already were setup with this feature enabled. Otherwise it will cause errors (see logs).": {"en": "This feature can only be used on databases that are empty, or already were setup with this feature enabled. Otherwise it will cause errors (see logs).", "de": "Diese Funktion kann nur für Datenbanken verwendet werden, die leer sind oder bereits mit aktivierter Funktion eingerichtet wurden. Andernfalls kommt es zu Fehlern (siehe Protokolle).", "ru": "Эту функцию можно использовать только с пустыми базами данных, которые уже были настроены с включенной этой функцией. В противном случае это вызовет ошибки (см. Логи).", "pt": "Este recurso só pode ser usado em bancos de dados que estão vazios ou já foram configurados com este recurso habilitado. Caso contrário, causará erros (consulte os logs).", "nl": "Deze functie kan alleen worden gebruikt op databases die leeg zijn of al zijn ingesteld met deze functie ingeschakeld. Anders veroorzaakt het fouten (zie logs).", "fr": "Cette fonctionnalité ne peut être utilisée que sur des bases de données vides ou déjà configurées avec cette fonctionnalité activée. Sinon, cela provoquera des erreurs (voir les journaux).", "it": "Questa funzione può essere utilizzata solo su database vuoti o già configurati con questa funzione abilitata. Altrimenti causerà errori (vedi log).", "es": "Esta función solo se puede utilizar en bases de datos que estén vacías o que ya se hayan configurado con esta función habilitada. De lo contrario, provocará errores (consulte los registros).", "pl": "Ta funkcja może być używana tylko w przypadku baz danych, które są puste lub zostały już skonfigurowane z włączoną tą funkcją. W przeciwnym razie spowoduje to błędy (patrz logi).", "zh-cn": "此功能只能用于空数据库或已启用此功能设置的数据库。否则会导致错误(见日志)。"},
@@ -48,6 +51,7 @@ systemDictionary = {
48
51
  "Use tags to store metadata information, instead of fields": {"en": "Use tags to store metadata information, instead of fields", "de": "Verwende Tags, anstelle von Feldern, um Metadateninformationen zu speichern", "ru": "Используйте теги для хранения информации метаданных вместо полей", "pt": "Use tags para armazenar informações de metadados, em vez de campos", "nl": "Gebruik tags om metadata-informatie op te slaan in plaats van velden", "fr": "Utilisez des balises pour stocker les informations de métadonnées, au lieu de champs", "it": "Usa i tag per memorizzare le informazioni sui metadati, invece dei campi", "es": "Utilice etiquetas para almacenar información de metadatos, en lugar de campos", "pl": "Używaj tagów do przechowywania informacji o metadanych zamiast pól", "zh-cn": "使用标签来存储元数据信息,而不是字段"},
49
52
  "User": { "en": "User", "de": "Benutzer", "ru": "Пользователь", "pt": "Do utilizador", "nl": "Gebruiker", "fr": "User", "it": "Utente", "es": "Usuario", "pl": "Użytkownik", "zh-cn": "用户"},
50
53
  "debounce": { "en": "Ignore changes till value stays unchanged for X Milliseconds", "de": "Änderungen ignorieren, bis der Wert für X Millisekunden unverändert bleibt", "ru": "Игнорировать изменения до тех пор, пока не будет постоянного значения в течение X миллисекунд", "pt": "Ignorar alterações até que o valor permaneça inalterado por X Milissegundos", "nl": "Wijzigingen negeren totdat waarde ongewijzigd blijft voor X Milliseconds", "fr": "Ignorer les modifications jusqu'à ce que la valeur reste inchangée pour X millisecondes", "it": "Ignora le modifiche fino a quando il valore rimane invariato per X Milliseconds", "es": "Ignorar cambios hasta que el valor permanezca sin cambios durante X milisegundos", "pl": "Zignoruj ​​zmiany, aż wartość pozostanie niezmieniona przez X Milliseconds", "zh-cn": "忽略更改,直到值保持不变为X毫秒"},
54
+ "health-check help": { "en": "Regular health checks probes are sent to the DB server to check if it is still alive.", "de": "Regelmäßige Verfügbarkeits-Anfragen werden an den DB-Server gesendet, um zu überprüfen, ob er noch aktiv ist.", "ru": "На сервер БД отправляются регулярные зонды проверки работоспособности, чтобы проверить, жив ли он.", "pt": "Sondagens de verificações regulares de integridade são enviadas ao servidor de banco de dados para verificar se ele ainda está ativo.", "nl": "Regelmatige gezondheidscontroles worden naar de DB-server gestuurd om te controleren of deze nog in leven is.", "fr": "Des vérifications de santé régulières sont envoyées au serveur de base de données pour vérifier s'il est toujours actif.", "it": "Controlli di integrità regolari vengono inviati al server DB per verificare se è ancora attivo.", "es": "Se envían sondas de verificación de estado regulares al servidor de base de datos para verificar si todavía está vivo.", "pl": "Regularne sondy sprawdzające kondycję są wysyłane do serwera bazy danych w celu sprawdzenia, czy nadal działa.", "zh-cn": "定期健康检查探针会发送到数据库服务器以检查它是否还活着。"},
51
55
  "keep forever": { "en": "keep forever", "de": "keine automatische Löschung", "ru": "хранить вечно", "pt": "mantenha para sempre", "nl": "blijf voor altijd", "fr": "keep forever", "it": "tienilo per sempre", "es": "mantener para siempre", "pl": "zachowaj na zawsze", "zh-cn": "永远保持"},
52
56
  "log changes interval(s)": { "en": "still record the same values (seconds)", "de": "trotzdem gleiche Werte aufzeichnen (Sekunden)", "ru": "Записывать значения в базу, даже если они не менялись каждые Х секунд", "pt": "ainda gravar os mesmos valores (segundos)", "nl": "nog steeds dezelfde waarden (seconden)", "fr": "toujours enregistrer les mêmes valeurs (secondes)", "it": "registra ancora gli stessi valori (secondi)", "es": "sigue registrando los mismos valores (segundos)", "pl": "nadal nagrywaj te same wartości (sekundy)", "zh-cn": "仍记录相同的值(秒"},
53
57
  "log changes minimal delta": { "en": "Minimum difference from last value", "de": "Minimale Differenz zum letzten Wert", "ru": "Минимальное отличие от предыдущего значения", "pt": "Diferença mínima do último valor", "nl": "Minimaal verschil met laatste waarde", "fr": "Différence minimale par rapport à la dernière valeur", "it": "Differenza minima dall'ultimo valore", "es": "Diferencia mínima desde el último valor", "pl": "Minimalna różnica od ostatniej wartości", "zh-cn": "与上一个值的最小差异"},
@@ -55,6 +59,5 @@ systemDictionary = {
55
59
  "retention": { "en": "Storage retention", "de": "Storage Vorhaltezeit", "ru": "Время хранения в базе", "pt": "Retenção de armazenamento", "nl": "Opslag retentie", "fr": "Storage retention", "it": "Conservazione di memoria", "es": "Retención de almacenamiento", "pl": "Przechowywanie danych", "zh-cn": "储存保留"},
56
60
  "use 0 to not buffer at all": { "en": "Use 0 to not buffer at all", "de": "Wert 0 schreibt Werte direkt", "ru": "Для деактвации буферизации введите 0", "pt": "Use 0 para não buffer no total", "nl": "Gebruik 0 om helemaal niet te bufferen", "fr": "Use 0 to not buffer at all", "it": "Utilizzare 0 per non bufferizzare affatto", "es": "Use 0 para no almacenar el búfer en absoluto", "pl": "Użyj 0, aby w ogóle nie buforować", "zh-cn": "使用0根本不缓冲"},
57
61
  "usetags help": { "en": "For more information, please refer to the documentation: https://github.com/ioBroker/ioBroker.influxdb/blob/master/README.md#Store-metadata-information-as-tags-instead-of-fields", "de": "Weitere Informationen finden Sie in der Dokumentation: https://github.com/ioBroker/ioBroker.influxdb/blob/master/README.md#Store-metadata-information-as-tags-instead-of-fields", "ru": "Для получения дополнительной информации обратитесь к документации: https://github.com/ioBroker/ioBroker.influxdb/blob/master/README.md#Store-metadata-information-as-tags-instead-of-fields", "pt": "Para obter mais informações, consulte a documentação: https://github.com/ioBroker/ioBroker.influxdb/blob/master/README.md#Store-metadata-information-as-tags-instead-of-fields", "nl": "Raadpleeg de documentatie voor meer informatie: https://github.com/ioBroker/ioBroker.influxdb/blob/master/README.md#Store-metadata-information-as-tags-instead-of-fields", "fr": "Pour plus d'informations, veuillez vous référer à la documentation : https://github.com/ioBroker/ioBroker.influxdb/blob/master/README.md#Store-metadata-information-as-tags-instead-of-fields", "it": "Per ulteriori informazioni, fare riferimento alla documentazione: https://github.com/ioBroker/ioBroker.influxdb/blob/master/README.md#Store-metadata-information-as-tags-instead-of-fields", "es": "Para obtener más información, consulte la documentación: https://github.com/ioBroker/ioBroker.influxdb/blob/master/README.md#Store-metadata-information-as-tags-instead-of-fields", "pl": "Więcej informacji można znaleźć w dokumentacji: https://github.com/ioBroker/ioBroker.influxdb/blob/master/README.md#Store-metadata-information-as-tags-instead-of-fields", "zh-cn": "有关更多信息,请参阅文档:"},
58
- "Send health-check pings to database": { "en": "Send health-check pings to database", "de": "Pings zur Verfügbarkeitsprüfung an die Datenbank senden","ru": "Отправлять эхо-запросы проверки работоспособности в базу данных", "pt": "Envie pings de verificação de integridade para o banco de dados", "nl": "Stuur gezondheidscheck pings naar database", "fr": "Envoyer des pings de vérification d'état à la base de données", "it": "Invia ping di controllo dello stato al database", "es": "Enviar pings de verificación de estado a la base de datos", "pl": "Wysyłaj pingi sprawdzające kondycję do bazy danych", "zh-cn": "将健康检查 ping 发送到数据库"},
59
- "health-check help": { "en": "Regular health checks probes are sent to the DB server to check if it is still alive.", "de": "Regelmäßige Verfügbarkeits-Anfragen werden an den DB-Server gesendet, um zu überprüfen, ob er noch aktiv ist.", "ru": "На сервер БД отправляются регулярные зонды проверки работоспособности, чтобы проверить, жив ли он.", "pt": "Sondagens de verificações regulares de integridade são enviadas ao servidor de banco de dados para verificar se ele ainda está ativo.", "nl": "Regelmatige gezondheidscontroles worden naar de DB-server gestuurd om te controleren of deze nog in leven is.", "fr": "Des vérifications de santé régulières sont envoyées au serveur de base de données pour vérifier s'il est toujours actif.", "it": "Controlli di integrità regolari vengono inviati al server DB per verificare se è ancora attivo.", "es": "Se envían sondas de verificación de estado regulares al servidor de base de datos para verificar si todavía está vivo.", "pl": "Regularne sondy sprawdzające kondycję są wysyłane do serwera bazy danych w celu sprawdzenia, czy nadal działa.", "zh-cn": "定期健康检查探针会发送到数据库服务器以检查它是否还活着。"}
62
+ "Validate SSL certificate": { "en": "Validate SSL certificate", "de": "SSL-Zertifikat validieren", "ru": "Проверить SSL-сертификат", "pt": "Validar certificado SSL", "nl": "SSL-certificaat valideren", "fr": "Valider le certificat SSL", "it": "Convalida il certificato SSL", "es": "Validar certificado SSL", "pl": "Zweryfikuj certyfikat SSL", "zh-cn": "验证 SSL 证书"},
60
63
  };
package/io-package.json CHANGED
@@ -13,7 +13,7 @@
13
13
  "pl": "Logowanie stanów do InfluxDB",
14
14
  "zh-cn": "将状态记录到InfluxDB中"
15
15
  },
16
- "version": "2.5.2",
16
+ "version": "2.6.2",
17
17
  "title": "Logging data with InfluxDB",
18
18
  "titleLang": {
19
19
  "en": "Logging data with InfluxDB",
@@ -28,6 +28,42 @@
28
28
  "zh-cn": "使用InfluxDB记录数据"
29
29
  },
30
30
  "news": {
31
+ "2.6.2": {
32
+ "en": "Correctly handle db names with hyphens for InfluxDB 1\nFix getHistory for non boolean fields\nAdjust shard group duration to influxdb proposals",
33
+ "de": "Behandeln Sie DB-Namen mit Bindestrichen für InfluxDB 1 korrekt\nGetHistory für nicht boolesche Felder korrigiert\nPassen Sie die Dauer der Shard-Gruppe an die Vorschläge von influxdb an",
34
+ "ru": "Правильно обрабатывать имена баз данных с дефисами для InfluxDB 1\nИсправление getHistory для нелогических полей\nОтрегулируйте продолжительность группы сегментов для предложений influxdb",
35
+ "pt": "Manipule corretamente nomes de banco de dados com hífens para InfluxDB 1\nCorrige getHistory para campos não booleanos\nAjustar a duração do grupo de fragmentos para propostas influxdb",
36
+ "nl": "Correct omgaan met db-namen met koppeltekens voor InfluxDB 1\nGetHistory repareren voor niet-booleaanse velden\nPas de duur van de shardgroep aan voor influxdb-voorstellen",
37
+ "fr": "Gérer correctement les noms de base de données avec des traits d'union pour InfluxDB 1\nCorrection de getHistory pour les champs non booléens\nAjuster la durée du groupe de fragments aux propositions influxdb",
38
+ "it": "Gestire correttamente i nomi db con trattini per InfluxDB 1\nRisolto il problema con getHistory per i campi non booleani\nRegola la durata del gruppo di shard alle proposte influxdb",
39
+ "es": "Manejar correctamente los nombres de bases de datos con guiones para InfluxDB 1\nArreglar getHistory para campos no booleanos\nAjuste la duración del grupo de fragmentos a las propuestas de influxdb",
40
+ "pl": "Prawidłowo obsługuj nazwy baz danych z myślnikami dla InfluxDB 1\nNapraw getHistory dla pól innych niż logiczne\nDostosuj czas trwania grupy shard do propozycji influxdb",
41
+ "zh-cn": "正确处理带有连字符的数据库名称,用于 InfluxDB 1\n修复非布尔字段的 getHistory\n调整分片组持续时间以适应 influxdb 提案"
42
+ },
43
+ "2.6.1": {
44
+ "en": "Address issue with updating retention policy for influxDB 1",
45
+ "de": "Beheben Sie ein Problem mit der Aktualisierung der Aufbewahrungsrichtlinie für influxDB 1",
46
+ "ru": "Устранить проблему с обновлением политики хранения для influxDB 1.",
47
+ "pt": "Resolva o problema com a atualização da política de retenção para o influxDB 1",
48
+ "nl": "Probleem oplossen met het bijwerken van het bewaarbeleid voor influxDB 1",
49
+ "fr": "Résoudre le problème de mise à jour de la stratégie de rétention pour influxDB 1",
50
+ "it": "Risoluzione del problema con l'aggiornamento del criterio di conservazione per influxDB 1",
51
+ "es": "Solucionar el problema con la actualización de la política de retención para influxDB 1",
52
+ "pl": "Rozwiąż problem z aktualizacją zasad przechowywania dla influxDB 1",
53
+ "zh-cn": "解决更新 influxDB 1 保留策略的问题"
54
+ },
55
+ "2.6.0": {
56
+ "en": "Make request timeout configurable - defaults to 30s\nAdd option to also accept self signed ssl certificates for InfluxDB 2.x",
57
+ "de": "Anforderungs-Timeout konfigurierbar machen – standardmäßig 30 Sekunden\nOption hinzugefügt, um auch selbstsignierte SSL-Zertifikate für InfluxDB 2.x zu akzeptieren",
58
+ "ru": "Сделать время ожидания запроса настраиваемым — по умолчанию 30 с.\nДобавить возможность также принимать самозаверяющие ssl-сертификаты для InfluxDB 2.x.",
59
+ "pt": "Tornar o tempo limite de solicitação configurável - o padrão é 30s\nAdicionar opção para também aceitar certificados SSL autoassinados para InfluxDB 2.x",
60
+ "nl": "Verzoek time-out configureerbaar maken - standaard ingesteld op 30s\nOptie toevoegen om ook zelfondertekende SSL-certificaten te accepteren voor InfluxDB 2.x",
61
+ "fr": "Faire en sorte que le délai d'attente de la demande soit configurable - par défaut à 30 s\nAjouter une option pour accepter également les certificats SSL auto-signés pour InfluxDB 2.x",
62
+ "it": "Rendi configurabile il timeout della richiesta: il valore predefinito è 30 secondi\nAggiungi l'opzione per accettare anche certificati SSL autofirmati per InfluxDB 2.x",
63
+ "es": "Hacer que el tiempo de espera de la solicitud sea configurable: el valor predeterminado es 30 s\nAgregue la opción para aceptar también certificados SSL autofirmados para InfluxDB 2.x",
64
+ "pl": "Ustaw limit czasu żądania konfigurowalny - domyślnie 30s\nDodaj opcję akceptowania również samopodpisanych certyfikatów ssl dla InfluxDB 2.x",
65
+ "zh-cn": "使请求超时可配置 - 默认为 30 秒\n添加选项以接受 InfluxDB 2.x 的自签名 ssl 证书"
66
+ },
31
67
  "2.5.2": {
32
68
  "en": "Marked interpolated data with `i=true`",
33
69
  "de": "Markierte interpolierte Daten mit `i=true`",
@@ -75,42 +111,6 @@
75
111
  "es": "Se agregaron configuraciones de experto para desactivar los controles de salud para Influx 2 db (no hay controles de salud para Influx 1)\nOcultar la configuración que no es relevante cuando no se utiliza \"solo cambios de registro\"\nPermitir todos los valores numéricos para antirrebote nuevamente\nInfluxDB tampoco le gustan los valores infinitos, así que ignórelos también",
76
112
  "pl": "Dodano ustawienia eksperckie, aby dezaktywować kontrole kondycji dla Influx 2 db (Brak kontroli kondycji dla Influx 1)\nUkryj ustawienia nieistotne, gdy nie używasz opcji „tylko rejestruj zmiany”\nZezwól ponownie na odrzucenie wszystkich wartości liczbowych\nInfluxDB również nie lubi wartości Infinite, więc je również zignoruj",
77
113
  "zh-cn": "添加了专家设置以停用 Influx 2 db 的健康检查(Influx 1 没有健康检查)\n不使用“仅记录更改”时隐藏不相关的设置\n再次允许所有数值去抖动\nInfluxDB 也不喜欢 Infinite 值,所以也忽略它们"
78
- },
79
- "2.3.0": {
80
- "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",
81
- "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",
82
- "ru": "Поддерживает только `js.controller`> = 3.3.x\nИспользуемый системный / пользовательский вид для сбора объектов\nРеализована возможность игнорировать нулевые и / или отрицательные значения.",
83
- "pt": "Suporte apenas `js.controller`> = 3.3.x\nSistema usado / visão personalizada para coletar os objetos\nOpção implementada para ignorar valores zero ou / e abaixo de zero",
84
- "nl": "Ondersteuning alleen `js.controller` >= 3.3.x\nGebruikt systeem/aangepaste weergave voor het verzamelen van de objecten\nGeïmplementeerde optie om nul- of/en onder nul-waarden te negeren",
85
- "fr": "Supporte uniquement `js.controller` >= 3.3.x\nSystème utilisé/vue personnalisée pour la collecte des objets\nOption implémentée pour ignorer les valeurs zéro ou/et inférieures à zéro",
86
- "it": "Supporta solo `js.controller` >= 3.3.x\nSistema utilizzato/vista personalizzata per la raccolta degli oggetti\nOpzione implementata per ignorare i valori zero o/o inferiori a zero",
87
- "es": "Admite solo `js.controller`> = 3.3.x\nSistema usado / vista personalizada para recolectar los objetos.\nOpción implementada para ignorar valores cero o inferiores a cero",
88
- "pl": "Obsługuje tylko `js.controller` >= 3.3.x\nUżywany system/widok niestandardowy do zbierania obiektów\nZaimplementowana opcja ignorowania wartości zerowych lub/i poniżej zera",
89
- "zh-cn": "仅支持 `js.controller` >= 3.3.x\n用于收集对象的系统/自定义视图\n已实现忽略零或/和低于零值的选项"
90
- },
91
- "2.2.0": {
92
- "en": "Added option to store metadata (q, ack, from) as tags instead of fields for Influx 2.x - see README!\nFailure to update/set retention policy will now cause warning instead of error/restart, to support more restrictive DB setups\n(Excodibur/Apollon77) Bug fixes and adjustments",
93
- "de": "Option zum Speichern von Metadaten (q, ack, from) als Tags anstelle von Feldern für Influx 2.x hinzugefügt - siehe README!\nWenn die Aufbewahrungsrichtlinie nicht aktualisiert/festgelegt wird, führt dies jetzt zu einer Warnung anstelle eines Fehlers/Neustarts, um restriktivere DB-Setups zu unterstützen\n(Excodibur/Apollon77) Fehlerbehebungen und Anpassungen",
94
- "ru": "Добавлена возможность хранить метаданные (q, ack, from) в виде тегов вместо полей для Influx 2.x - см. README!\nНевозможность обновить / установить политику хранения теперь будет вызывать предупреждение вместо ошибки / перезапуска для поддержки более строгих настроек БД.\n(Excodibur / Apollon77) Исправления и корректировки.",
95
- "pt": "Adicionada opção para armazenar metadados (q, ack, from) como tags em vez de campos para o Influx 2.x - veja README!\nA falha em atualizar / definir a política de retenção agora causará um aviso em vez de erro / reinicialização, para oferecer suporte a configurações de banco de dados mais restritivas\n(Excodibur / Apollon77) Correções e ajustes de bugs",
96
- "nl": "Optie toegevoegd om metadata (q, ack, from) op te slaan als tags in plaats van velden voor Influx 2.x - zie README!\nAls het bewaarbeleid niet wordt bijgewerkt/ingesteld, wordt er nu een waarschuwing gegeven in plaats van een fout/herstart, om restrictievere DB-instellingen te ondersteunen\n(Excodibur/Apollon77) Bugfixes en aanpassingen",
97
- "fr": "Ajout d'une option pour stocker les métadonnées (q, ack, from) sous forme de balises au lieu de champs pour Influx 2.x - voir README !\nL'échec de la mise à jour/définition de la politique de rétention entraînera désormais un avertissement au lieu d'une erreur/redémarrage, pour prendre en charge des configurations de base de données plus restrictives\n(Excodibur/Apollon77) Corrections de bugs et ajustements",
98
- "it": "Aggiunta l'opzione per memorizzare i metadati (q, ack, from) come tag invece dei campi per Influx 2.x - vedi README!\nIl mancato aggiornamento/impostazione della politica di conservazione ora causerà un avviso anziché un errore/riavvio, per supportare configurazioni DB più restrittive\n(Excodibur/Apollon77) Correzioni di bug e aggiustamenti",
99
- "es": "Opción agregada para almacenar metadatos (q, ack, from) como etiquetas en lugar de campos para Influx 2.x - ¡vea README!\nSi no se actualiza / establece la política de retención, ahora se generará una advertencia en lugar de un error / reinicio, para admitir configuraciones de base de datos más restrictivas\n(Excodibur / Apollon77) Corrección de errores y ajustes",
100
- "pl": "Dodano opcję przechowywania metadanych (q, ack, from) jako tagów zamiast pól dla Influx 2.x - zobacz README!\nNiepowodzenie aktualizacji/ustawienia zasad przechowywania spowoduje teraz ostrzeżenie zamiast błędu/ponownego uruchomienia, aby obsługiwać bardziej restrykcyjne konfiguracje bazy danych\n(Excodibur/Apollon77) Poprawki i poprawki",
101
- "zh-cn": "添加了将元数据(q、ack、from)存储为标签而不是 Influx 2.x 的字段的选项 - 请参阅自述文件!\n更新/设置保留策略失败现在将导致警告而不是错误/重启,以支持更严格的数据库设置\n(Excodibur/Apollon77) 错误修复和调整"
102
- },
103
- "2.1.1": {
104
- "en": "IMPORTANT: The adapter now requires Admin 5.1.15+ and js-controller 3.3+! For other admin or js-controller versions please use the former v1.9.5 of thi adapter.\nAdded InfluxDB 2.0 support\nAdjust Retention handling on Database level to work for InfluxDB 1.x and 2.x\nRemoved retention options on datapoint level because never worked and also not supported really by InfluxDB anymore",
105
- "de": "WICHTIG: Der Adapter benötigt jetzt Admin 5.1.15+ und js-controller 3.3+! Für andere Admin- oder js-Controller-Versionen verwenden Sie bitte die frühere v1.9.5 dieses Adapters.\nUnterstützung für InfluxDB 2.0 hinzugefügt\nPassen Sie die Aufbewahrungsbehandlung auf Datenbankebene so an, dass sie für InfluxDB 1.x und 2.x funktioniert\nAufbewahrungsoptionen auf Datenpunktebene entfernt, da nie funktioniert und auch nicht mehr wirklich von InfluxDB unterstützt",
106
- "ru": "ВАЖНО: для адаптера теперь требуются Admin 5.1.15+ и js-controller 3.3+! Для других версий admin или js-controller используйте бывшую версию v1.9.5 этого адаптера.\nДобавлена поддержка InfluxDB 2.0.\nНастройте обработку хранения на уровне базы данных для работы с InfluxDB 1.x и 2.x\nУдалены параметры хранения на уровне точек данных, потому что они никогда не работали и больше не поддерживаются InfluxDB.",
107
- "pt": "IMPORTANTE: O adaptador agora requer Admin 5.1.15+ e js-controller 3.3+! Para outras versões admin ou js-controller, use a versão anterior v1.9.5 deste adaptador.\nAdicionado suporte a InfluxDB 2.0\nAjuste o manuseio de retenção no nível do banco de dados para funcionar no InfluxDB 1.xe 2.x\nRemovidas as opções de retenção no nível do ponto de dados porque nunca funcionou e também não é mais suportado pelo InfluxDB",
108
- "nl": "BELANGRIJK: de adapter vereist nu Admin 5.1.15+ en js-controller 3.3+! Gebruik voor andere admin- of js-controllerversies de voormalige v1.9.5 van deze adapter.\nInfluxDB 2.0-ondersteuning toegevoegd\nPas de retentieafhandeling op databaseniveau aan om te werken voor InfluxDB 1.x en 2.x\nRetentieopties op datapuntniveau verwijderd omdat het nooit heeft gewerkt en ook niet echt meer wordt ondersteund door InfluxDB",
109
- "fr": "IMPORTANT : l'adaptateur nécessite désormais Admin 5.1.15+ et js-controller 3.3+ ! Pour les autres versions admin ou js-controller, veuillez utiliser l'ancienne v1.9.5 de cet adaptateur.\nAjout de la prise en charge d'InfluxDB 2.0\nAjustez la gestion de la rétention au niveau de la base de données pour qu'elle fonctionne pour InfluxDB 1.x et 2.x\nSuppression des options de rétention au niveau du point de données car n'a jamais fonctionné et n'est plus vraiment pris en charge par InfluxDB",
110
- "it": "IMPORTANTE: l'adattatore ora richiede Admin 5.1.15+ e js-controller 3.3+! Per altre versioni admin o js-controller, utilizzare la precedente v1.9.5 di questo adattatore.\nAggiunto il supporto per InfluxDB 2.0\nRegola la gestione della conservazione a livello di database per funzionare con InfluxDB 1.x e 2.x\nOpzioni di conservazione rimosse a livello di datapoint perché non hanno mai funzionato e inoltre non sono più supportate realmente da InfluxDB",
111
- "es": "IMPORTANTE: ¡El adaptador ahora requiere Admin 5.1.15+ y js-controller 3.3+! Para otras versiones de admin o js-controller, utilice la versión anterior v1.9.5 de este adaptador.\nSe agregó compatibilidad con InfluxDB 2.0\nAjuste el manejo de la retención en el nivel de la base de datos para que funcione con InfluxDB 1.xy 2.x\nSe eliminaron las opciones de retención a nivel de punto de datos porque nunca funcionó y tampoco es realmente compatible con InfluxDB",
112
- "pl": "WAŻNE: Adapter wymaga teraz Admin 5.1.15+ i js-controller 3.3+! W przypadku innych wersji administratora lub kontrolera js użyj poprzedniej wersji v1.9.5 tego adaptera.\nDodano obsługę InfluxDB 2.0\nDostosuj obsługę przechowywania na poziomie bazy danych, aby działała dla InfluxDB 1.x i 2.x\nUsunięto opcje przechowywania na poziomie punktu danych, ponieważ nigdy nie działały i nie są już obsługiwane przez InfluxDB",
113
- "zh-cn": "重要提示:适配器现在需要 Admin 5.1.15+ 和 js-controller 3.3+!对于其他 admin 或 js-controller 版本,请使用该适配器以前的 v1.9.5。\n添加了 InfluxDB 2.0 支持\n调整数据库级别的保留处理以适用于 InfluxDB 1.x 和 2.x\n删除了数据点级别的保留选项,因为从来没有工作过,也不再受到 InfluxDB 的真正支持"
114
114
  }
115
115
  },
116
116
  "mode": "daemon",
@@ -187,6 +187,8 @@
187
187
  "changesMinDelta": 0,
188
188
  "reconnectInterval": 10000,
189
189
  "pingInterval": 15000,
190
+ "requestTimeout": 30000,
191
+ "validateSSL": true,
190
192
  "dbversion": "1.x",
191
193
  "usetags": false,
192
194
  "pingserver": true
package/lib/Database.js CHANGED
@@ -15,11 +15,11 @@ class Database {
15
15
 
16
16
  calculateShardGroupDuration(retentionTime) { // in seconds
17
17
  // Shard Group Duration according to official Influx recommendations
18
- if (!retentionTime) {//infinite
18
+ if (!retentionTime) { // infinite
19
19
  return 604800; // 7 days
20
20
  } else if (retentionTime < 172800) {// < 2 days
21
21
  return 3600; // 1 hour
22
- } else if (retentionTime >= 172800 && retentionTime <= 7862400) {// >= 2 days, <= 6 months (~182 days)
22
+ } else if (retentionTime >= 172800 && retentionTime <= 15811200) {// >= 2 days, <= 6 months (~182 days)
23
23
  return 86400; // 1 day
24
24
  } else {// > 6 months
25
25
  return 604800; // 7 days
@@ -3,8 +3,8 @@
3
3
  const Database = require('./Database.js');
4
4
  const influx = require('influx');
5
5
 
6
- class DatabaseInfluxDB1x extends Database{
7
- constructor (log, host, port, protocol, username, password, database, timePrecision, requestTimeout) {
6
+ class DatabaseInfluxDB1x extends Database {
7
+ constructor (log, host, port, protocol, username, password, database, requestTimeout, timePrecision) {
8
8
  super();
9
9
 
10
10
  this.log = log;
@@ -16,7 +16,7 @@ class DatabaseInfluxDB1x extends Database{
16
16
  this.password = password;
17
17
  this.database = database;
18
18
  this.timePrecision = timePrecision; // ms
19
- this.requestTimeout = requestTimeout; // 30000
19
+ this.requestTimeout = requestTimeout;
20
20
 
21
21
  //disable ping
22
22
  this.ping = false;
@@ -46,7 +46,7 @@ class DatabaseInfluxDB1x extends Database{
46
46
  }
47
47
 
48
48
  getRetentionPolicyForDB(dbname, callback) {
49
- this.connection.query('SHOW RETENTION POLICIES ON ' + dbname, (err, rows) => {
49
+ this.connection.query(`SHOW RETENTION POLICIES ON "${dbname}"`, (err, rows) => {
50
50
  if(err){
51
51
  this.log.error(`Error retrieving retention policy: ${err}`);
52
52
  callback(err, null);
@@ -56,9 +56,10 @@ class DatabaseInfluxDB1x extends Database{
56
56
  rows[0].forEach(row => {
57
57
  if (row.default) {
58
58
  const regMatch = row.duration.match(regex);
59
- const retHours = parseInt(regMatch[1]);
60
- const retMinutes = parseInt(regMatch[2]);
61
- const retSeconds = parseInt(regMatch[3]);
59
+ const retHours = parseInt(regMatch[1]) || 0;
60
+ const retMinutes = parseInt(regMatch[2]) || 0;
61
+ const retSeconds = parseInt(regMatch[3]) || 0;
62
+ this.log.debug (`Extracted retention time for ${dbname} - Hours: ${retHours} Minutes: ${retMinutes} Seconds: ${retSeconds}`);
62
63
  retentionTime = retHours * 60 * 60 + retMinutes * 60 + retSeconds;
63
64
  retentionName = row.name;
64
65
  }
@@ -86,12 +87,16 @@ class DatabaseInfluxDB1x extends Database{
86
87
  const shardDuration = this.calculateShardGroupDuration(retention);
87
88
 
88
89
  // Get name of currently active default policy first, to update only it.
90
+ // Excodibur: As for new DBs Influx 1 creates "autogen" policy by default, is is unlikely that there is a scenario
91
+ // where the policy needs to be CREATEd from scratch, since there is always one set. Just keeping it in
92
+ // here for perhaps unknown config-scenarios.
93
+ const command = oldRetention.name ? 'ALTER' : 'CREATE';
94
+ this.log.debug(`Retention policy will be ${command}ed`);
89
95
 
90
- const command = oldRetention.time ? 'ALTER' : 'CREATE';
91
96
  const retentionName = oldRetention.name ? oldRetention.name : 'global';
92
97
 
93
98
  this.log.info(`Applying retention policy (${retentionName}) for ${dbname} to ${retention === 0 ? 'infinity' : retention + ' seconds'}. Shard Duration: ${shardDuration} seconds`);
94
- this.connection.query(`${command} RETENTION POLICY "${retentionName}" ON ${dbname} DURATION ${retention}s REPLICATION 1 SHARD DURATION ${shardDuration}s DEFAULT`, callback);
99
+ this.connection.query(`${command} RETENTION POLICY "${retentionName}" ON "${dbname}" DURATION ${retention}s REPLICATION 1 SHARD DURATION ${shardDuration}s DEFAULT`, callback);
95
100
  });
96
101
  }
97
102
 
@@ -22,7 +22,7 @@ class FakeConnectionPool {
22
22
 
23
23
  //Influx 2.x auth requires token, not user/pw
24
24
  class DatabaseInfluxDB2x extends Database {
25
- constructor(log, host, port, protocol, token, organization, database, useTags, timePrecision, requestTimeout) {
25
+ constructor(log, host, port, protocol, token, organization, database, requestTimeout, validateSSL, useTags, timePrecision) {
26
26
  super();
27
27
 
28
28
  this.log = log;
@@ -36,6 +36,7 @@ class DatabaseInfluxDB2x extends Database {
36
36
  this.timePrecision = timePrecision; // ms
37
37
  this.requestTimeout = requestTimeout; // 30000
38
38
  this.useTags = useTags || false;
39
+ this.validateSSL = validateSSL;
39
40
 
40
41
  this.request = new FakeConnectionPool();
41
42
 
@@ -45,11 +46,13 @@ class DatabaseInfluxDB2x extends Database {
45
46
  connect() {
46
47
  const url = `${this.protocol}://${this.host}:${this.port}/`;
47
48
 
48
- this.log.debug(`Connect InfluxDB1: ${url} [${this.database}]`);
49
+ this.log.debug(`Connect InfluxDB2: ${url} [${this.database}]`);
49
50
 
50
51
  this.connection = new InfluxClient.InfluxDB({
51
52
  url,
52
53
  token: this.token,
54
+ timeout: this.requestTimeout,
55
+ transportOptions: {rejectUnauthorized: this.validateSSL},
53
56
  });
54
57
 
55
58
  this.queryApi = this.connection.getQueryApi(this.organization);
@@ -112,7 +115,7 @@ class DatabaseInfluxDB2x extends Database {
112
115
  bucketID: this.bucketIds[dbname],
113
116
  body: {
114
117
  retentionRules: [{
115
- type: "expire",
118
+ type: 'expire',
116
119
  everySeconds: parseInt(retention),
117
120
  shardGroupDurationSeconds: shardGroupDuration
118
121
  }]
package/main.js CHANGED
@@ -246,6 +246,7 @@ function connect(adapter) {
246
246
  adapter.log.info(`Connecting ${adapter.config.protocol}://${adapter.config.host}:${adapter.config.port} ...`);
247
247
 
248
248
  adapter.config.dbname = adapter.config.dbname || appName;
249
+ adapter.config.validateSSL = adapter.config.validateSSL !== undefined ? !!adapter.config.validateSSL : true;
249
250
 
250
251
  adapter.config.seriesBufferMax = parseInt(adapter.config.seriesBufferMax, 10) || 0;
251
252
 
@@ -265,6 +266,8 @@ function connect(adapter) {
265
266
  adapter.config.token,
266
267
  adapter.config.organization,
267
268
  adapter.config.dbname,
269
+ adapter.config.requestTimeout,
270
+ adapter.config.validateSSL,
268
271
  adapter.config.usetags
269
272
  )
270
273
  break;
@@ -282,8 +285,8 @@ function connect(adapter) {
282
285
  adapter.config.user,
283
286
  adapter.config.password,
284
287
  adapter.config.dbname,
285
- 'ms',
286
- 30000
288
+ adapter.config.requestTimeout,
289
+ 'ms'
287
290
  );
288
291
  break;
289
292
  }
@@ -383,6 +386,7 @@ function getRetention(adapter, msg) {
383
386
  function testConnection(adapter, msg) {
384
387
  adapter.log.debug('testConnection msg-object: ' + JSON.stringify(msg));
385
388
  msg.message.config.port = parseInt(msg.message.config.port, 10) || 0;
389
+ msg.message.config.requestTimeout = parseInt(msg.message.config.requestTimeout) || 30000;
386
390
 
387
391
  let timeout;
388
392
  try {
@@ -403,7 +407,8 @@ function testConnection(adapter, msg) {
403
407
  msg.message.config.protocol, // optional, default 'http'
404
408
  msg.message.config.token,
405
409
  msg.message.config.organization,
406
- msg.message.config.dbname || appName
410
+ msg.message.config.dbname || appName,
411
+ msg.message.config.requestTimeout
407
412
  )
408
413
  break;
409
414
  default:
@@ -415,7 +420,8 @@ function testConnection(adapter, msg) {
415
420
  msg.message.config.protocol, // optional, default 'http'
416
421
  msg.message.config.user,
417
422
  msg.message.config.password,
418
- msg.message.config.dbname || appName
423
+ msg.message.config.dbname || appName,
424
+ msg.message.config.requestTimeout
419
425
  );
420
426
  break;
421
427
  }
@@ -584,6 +590,8 @@ function main(adapter) {
584
590
 
585
591
  adapter.config.seriesBufferFlushInterval = parseInt(adapter.config.seriesBufferFlushInterval, 10) || 600;
586
592
 
593
+ adapter.config.requestTimeout = parseInt(adapter.config.requestTimeout, 10) || 30000;
594
+
587
595
  if (adapter.config.changesMinDelta !== null && adapter.config.changesMinDelta !== undefined) {
588
596
  adapter.config.changesMinDelta = parseFloat(adapter.config.changesMinDelta.toString().replace(/,/g, '.'));
589
597
  } else {
@@ -1864,8 +1872,9 @@ function getHistoryIflx2(adapter, msg) {
1864
1872
  adapter._client.query(booleanTypeCheckQuery, (error, _rslt) => {
1865
1873
  let isBoolean;
1866
1874
  if (error) {
1867
- if (error.message.match('.*type conflict: bool.*')) {
1875
+ if (error.message.includes('type conflict: bool')) {
1868
1876
  isBoolean = false;
1877
+ error = null;
1869
1878
  } else {
1870
1879
  return adapter.sendTo(msg.from, msg.command, {
1871
1880
  result: [],
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "iobroker.influxdb",
3
3
  "description": "Log states in InfluxDB",
4
- "version": "2.5.2",
4
+ "version": "2.6.2",
5
5
  "author": "bluefox <dogafox@gmail.com>",
6
6
  "contributors": [
7
7
  "bluefox <dogafox@gmail.com>",
@@ -20,9 +20,9 @@
20
20
  ],
21
21
  "optionalDependencies": {},
22
22
  "dependencies": {
23
- "@influxdata/influxdb-client": "^1.22.0",
24
- "@influxdata/influxdb-client-apis": "^1.22.0",
25
- "@iobroker/adapter-core": "^2.5.1",
23
+ "@influxdata/influxdb-client": "^1.23.0",
24
+ "@influxdata/influxdb-client-apis": "^1.23.0",
25
+ "@iobroker/adapter-core": "^2.6.0",
26
26
  "influx": "^4.2.3"
27
27
  },
28
28
  "devDependencies": {
@@ -31,7 +31,7 @@
31
31
  "@alcalzone/release-script-plugin-license": "^3.5.0",
32
32
  "axios": "^0.26.0",
33
33
  "gulp": "^4.0.2",
34
- "mocha": "^9.2.0",
34
+ "mocha": "^9.2.1",
35
35
  "chai": "^4.3.6"
36
36
  },
37
37
  "bugs": {