iobroker.influxdb 3.1.0 → 3.1.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 +4 -1
- package/admin/i18n/de/translations.json +3 -3
- package/admin/words.js +3 -3
- package/io-package.json +13 -13
- package/main.js +4 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@ This adapter saves state history into InfluxDB.
|
|
|
21
21
|
If you have an InfluxDB 1.x installation (preferably 1.8.x or 1.9.x) then you choose " 1.x" in the adapter configuration and enter the Host-IP and Port together with Username and Password for the Access.
|
|
22
22
|
You can also define a database name. The default is "iobroker". On first adapter start this database is created.
|
|
23
23
|
|
|
24
|
-
When doing custom queries via the "query" message you can use InfluxQL to select the data you want.
|
|
24
|
+
When doing custom queries via the "query" message you can use InfluxQL to select the data you want. FluxQL with InfluxDB 1.x is not supported (and will also not be added).
|
|
25
25
|
|
|
26
26
|
### InfluxDB 2.x
|
|
27
27
|
Since 2.0 of the adapter also InfluxDB 2.x is supported which works a bit different.
|
|
@@ -450,6 +450,9 @@ sendTo('influxdb.0', 'getEnabledDPs', {}, function (result) {
|
|
|
450
450
|
-->
|
|
451
451
|
|
|
452
452
|
## Changelog
|
|
453
|
+
### 3.1.1 (2022-05-31)
|
|
454
|
+
* (Apollon77) Workaround an admin issue when testing connection to InfluxDB
|
|
455
|
+
|
|
453
456
|
### 3.1.0 (2022-05-27)
|
|
454
457
|
* (Apollon77) Data are not converted to numbers if they are other datatypes on getHistory to respect the saved data formats as defined in the datapoint settings for storage.
|
|
455
458
|
* (Apollon77) Fix retention change to lower checkbox in UI
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"Buffer Datapoints": "Schreibaktionen zusammenfassen",
|
|
22
22
|
"Buffer Flush Interval": "Schreibintervall",
|
|
23
23
|
"Confirmation required.": "Bestätigung erforderlich.",
|
|
24
|
-
"Counter": "
|
|
24
|
+
"Counter": "Zähler",
|
|
25
25
|
"Custom retention duration (days)": "Benutzerdefinierte Aufbewahrungsdauer (Tage)",
|
|
26
26
|
"Custom timeframe": "Benutzerdefinierter Zeitrahmen",
|
|
27
27
|
"DB Name": "DB Name",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"Seconds": "Sekunden",
|
|
60
60
|
"Send health-check pings to database": "Pings zur Verfügbarkeitsprüfung an die Datenbank senden",
|
|
61
61
|
"Start or enable adapter first": "Adapter muss zuerst aktiviert werden",
|
|
62
|
-
"Storage retention": "
|
|
62
|
+
"Storage retention": "Aufbewahrungsdauer",
|
|
63
63
|
"Store as": "Speichern als",
|
|
64
64
|
"String": "Zeichenfolge",
|
|
65
65
|
"Test connection": "Verbindung testen",
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"health-check help": "Regelmäßige Verfügbarkeits-Anfragen werden an den DB-Server gesendet, um zu überprüfen, ob er noch aktiv ist.",
|
|
75
75
|
"ignore values above x": "Ignoriere Werte größer als",
|
|
76
76
|
"ignore values below x": "Ignoriere Werte kleiner als",
|
|
77
|
-
"ignore values below zero": "
|
|
77
|
+
"ignore values below zero": "Werte unter 0 ignorieren (<0)",
|
|
78
78
|
"ignore zero or null values": "Ignoriere 0 oder Nullwerte (==0)",
|
|
79
79
|
"keep forever": "keine automatische Löschung",
|
|
80
80
|
"log changes interval(s)": "trotzdem gleiche Werte aufzeichnen (Sekunden)",
|
package/admin/words.js
CHANGED
|
@@ -24,7 +24,7 @@ systemDictionary = {
|
|
|
24
24
|
"Buffer Datapoints": { "en": "Buffer Datapoints", "de": "Schreibaktionen zusammenfassen", "ru": "Собирать значения для записи", "pt": "Datapoints do buffer", "nl": "Buffer-datapunten", "fr": "Buffer Datapoints", "it": "Buffer puntiforme", "es": "Puntos de datos del búfer", "pl": "Bufory Datapoints", "zh-cn": "缓冲区数据点"},
|
|
25
25
|
"Buffer Flush Interval": { "en": "Buffer Flush Interval", "de": "Schreibintervall", "ru": "Интервал записи значений в базу из RAM", "pt": "Intervalo de descarga do buffer", "nl": "Buffer Flush Interval", "fr": "Buffer Flush Interval", "it": "Intervallo di flussaggio del tampone", "es": "Intervalo de lavado del tampón", "pl": "Przerwa między buforami", "zh-cn": "缓冲冲洗间隔"},
|
|
26
26
|
"Confirmation required.": { "en": "Confirmation required.", "de": "Bestätigung erforderlich.", "ru": "Требуется подтверждение.", "pt": "Necessária confirmação.", "nl": "Bevestiging vereist.", "fr": "Confirmation requise.", "it": "Conferma richiesta.", "es": "Confirmación requerida.", "pl": "Wymagane Potwierdzenie.", "zh-cn": "需要确认。"},
|
|
27
|
-
"Counter": { "en": "Counter", "de": "
|
|
27
|
+
"Counter": { "en": "Counter", "de": "Zähler", "ru": "Прилавок", "pt": "Contador", "nl": "Balie", "fr": "Compteur", "it": "Contatore", "es": "Mostrador", "pl": "Lada", "zh-cn": "柜台"},
|
|
28
28
|
"Custom retention duration (days)": { "en": "Custom retention duration (days)", "de": "Benutzerdefinierte Aufbewahrungsdauer (Tage)", "ru": "Пользовательский срок хранения (дни)", "pt": "Duração da retenção personalizada (dias)", "nl": "Aangepaste bewaarduur (dagen)", "fr": "Durée de conservation personnalisée (jours)", "it": "Durata di conservazione personalizzata (giorni)", "es": "Duración de la retención personalizada (días)", "pl": "Niestandardowy czas przechowywania (dni)", "zh-cn": "自定义保留期限(天)"},
|
|
29
29
|
"Custom timeframe": { "en": "Custom timeframe", "de": "Benutzerdefinierter Zeitrahmen", "ru": "Пользовательский таймфрейм", "pt": "Período personalizado", "nl": "Aangepast tijdsbestek", "fr": "Délai personnalisé", "it": "Tempi personalizzati", "es": "Marco de tiempo personalizado", "pl": "Niestandardowe ramy czasowe", "zh-cn": "自定义时间范围"},
|
|
30
30
|
"DB Name": { "en": "DB Name", "de": "DB Name", "ru": "Имя базы", "pt": "Nome do banco de dados", "nl": "DB-naam", "fr": "DB Name", "it": "Nome DB", "es": "Nombre de DB", "pl": "Nazwa DB", "zh-cn": "数据库名称"},
|
|
@@ -62,7 +62,7 @@ systemDictionary = {
|
|
|
62
62
|
"Seconds": { "en": "Seconds", "de": "Sekunden", "ru": "секунд", "pt": "Segundos", "nl": "seconden", "fr": "Seconds", "it": "secondi", "es": "Segundos", "pl": "sekundy", "zh-cn": "秒"},
|
|
63
63
|
"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 发送到数据库"},
|
|
64
64
|
"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": "首先启动或启用适配器"},
|
|
65
|
-
"Storage retention": { "en": "Storage retention", "de": "
|
|
65
|
+
"Storage retention": { "en": "Storage retention", "de": "Aufbewahrungsdauer", "ru": "Сохранение хранения", "pt": "Retenção de armazenamento", "nl": "Opslagbehoud", "fr": "Rétention de stockage", "it": "Conservazione della memoria", "es": "retención de almacenamiento", "pl": "Przechowywanie pamięci", "zh-cn": "存储保留"},
|
|
66
66
|
"Store as": { "en": "Store as", "de": "Speichern als", "ru": "Сохранить как", "pt": "Armazenar como", "nl": "Opslaan als", "fr": "Stocker comme", "it": "Conserva come", "es": "Guardar como", "pl": "Przechowuj jako", "zh-cn": "存储为"},
|
|
67
67
|
"String": { "en": "String", "de": "Zeichenfolge", "ru": "Нить", "pt": "Fragmento", "nl": "Draad", "fr": "Corde", "it": "Corda", "es": "Cuerda", "pl": "Strunowy", "zh-cn": "细绳"},
|
|
68
68
|
"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": "测试连接"},
|
|
@@ -77,7 +77,7 @@ systemDictionary = {
|
|
|
77
77
|
"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": "定期健康检查探针会发送到数据库服务器以检查它是否还活着。"},
|
|
78
78
|
"ignore values above x": { "en": "Ignore values above", "de": "Ignoriere Werte größer als", "ru": "Игнорировать значения выше", "pt": "Ignorar valores acima", "nl": "Bovenstaande waarden negeren", "fr": "Ignorer les valeurs ci-dessus", "it": "Ignora i valori sopra", "es": "Ignorar los valores anteriores", "pl": "Zignoruj wartości powyżej", "zh-cn": "忽略上面的值"},
|
|
79
79
|
"ignore values below x": { "en": "Ignore values below", "de": "Ignoriere Werte kleiner als", "ru": "Игнорировать значения ниже", "pt": "Ignorar valores abaixo", "nl": "Negeer onderstaande waarden", "fr": "Ignorer les valeurs ci-dessous", "it": "Ignora i valori sottostanti", "es": "Ignorar valores a continuación", "pl": "Zignoruj wartości poniżej", "zh-cn": "忽略下面的值"},
|
|
80
|
-
"ignore values below zero": { "en": "ignore values below zero (<0)", "de": "
|
|
80
|
+
"ignore values below zero": { "en": "ignore values below zero (<0)", "de": "Werte unter 0 ignorieren (<0)", "ru": "игнорировать значения ниже нуля (<0)", "pt": "ignorar valores abaixo de zero (<0)", "nl": "negeer waarden onder nul (<0)", "fr": "ignorer les valeurs inférieures à zéro (<0)", "it": "ignora i valori inferiori a zero (<0)", "es": "ignorar valores por debajo de cero (<0)", "pl": "zignoruj wartości poniżej zera (<0)", "zh-cn": "忽略零以下的值 (<0)"},
|
|
81
81
|
"ignore zero or null values": { "en": "ignore 0 or null values (==0)", "de": "Ignoriere 0 oder Nullwerte (==0)", "ru": "игнорировать 0 или нулевые значения (==0)", "pt": "ignore 0 ou valores nulos (==0)", "nl": "negeer 0 of null-waarden (==0)", "fr": "ignorer les valeurs 0 ou nulles (==0)", "it": "ignora 0 o valori nulli (==0)", "es": "ignorar 0 o valores nulos (==0)", "pl": "zignoruj wartości 0 lub null (==0)", "zh-cn": "忽略 0 或空值 (==0)"},
|
|
82
82
|
"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": "永远保持"},
|
|
83
83
|
"log changes interval(s)": { "en": "Record the same values (seconds)", "de": "trotzdem gleiche Werte aufzeichnen (Sekunden)", "ru": "Запишите те же значения (секунды)", "pt": "Grave os mesmos valores (segundos)", "nl": "Noteer dezelfde waarden (seconden)", "fr": "Enregistrer les mêmes valeurs (secondes)", "it": "Registra gli stessi valori (secondi)", "es": "Registrar los mismos valores (segundos)", "pl": "Zapisz te same wartości (sekundy)", "zh-cn": "记录相同的值(秒)"},
|
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": "3.1.
|
|
16
|
+
"version": "3.1.1",
|
|
17
17
|
"title": "Logging data with InfluxDB",
|
|
18
18
|
"titleLang": {
|
|
19
19
|
"en": "Logging data with InfluxDB",
|
|
@@ -28,6 +28,18 @@
|
|
|
28
28
|
"zh-cn": "使用InfluxDB记录数据"
|
|
29
29
|
},
|
|
30
30
|
"news": {
|
|
31
|
+
"3.1.1": {
|
|
32
|
+
"en": "Workaround an admin issue when testing connection to InfluxDB",
|
|
33
|
+
"de": "Umgehung eines Administratorproblems beim Testen der Verbindung zu InfluxDB",
|
|
34
|
+
"ru": "Обход проблемы администратора при тестировании подключения к InfluxDB",
|
|
35
|
+
"pt": "Solução alternativa de um problema de administrador ao testar a conexão com o InfluxDB",
|
|
36
|
+
"nl": "Tijdelijke oplossing voor een beheerdersprobleem bij het testen van de verbinding met InfluxDB",
|
|
37
|
+
"fr": "Contournement d'un problème d'administration lors du test de connexion à InfluxDB",
|
|
38
|
+
"it": "Soluzione alternativa a un problema di amministrazione durante il test della connessione a InfluxDB",
|
|
39
|
+
"es": "Solución de un problema de administración al probar la conexión a InfluxDB",
|
|
40
|
+
"pl": "Obejście problemu administratora podczas testowania połączenia z InfluxDB",
|
|
41
|
+
"zh-cn": "在测试与 InfluxDB 的连接时解决管理问题"
|
|
42
|
+
},
|
|
31
43
|
"3.1.0": {
|
|
32
44
|
"en": "Data are not converted to numbers if they are other datatypes on getHistory to respect the saved data formats as defined in the datapoint settings for storage.\nFix retention change to lower checkbox in UI\nAllow storeState again to write to InfluxDB for \"unknown state ids\" - \"rules\" usage is not supported in for this and storeState would be silently discarded in this case!\nFix several crash cases reported by Sentry\nMake sure disabling \"Log changes only\" also really do not log the changes anymore\nAllow storeState and GetHistory also to be called for \"unknown ids\"",
|
|
33
45
|
"de": "Daten werden nicht in Zahlen konvertiert, wenn es sich um andere Datentypen auf getHistory handelt, um die gespeicherten Datenformate zu respektieren, wie sie in den Datenpunkteinstellungen für die Speicherung definiert sind.\nKorrektur der Aufbewahrungsänderung am unteren Kontrollkästchen in der Benutzeroberfläche\nStoreState erneut erlauben, in InfluxDB für \"unbekannte Zustands-IDs\" zu schreiben - die Verwendung von \"Regeln\" wird dafür nicht unterstützt und storeState würde in diesem Fall stillschweigend verworfen!\nMehrere von Sentry gemeldete Absturzfälle behoben\nStellen Sie sicher, dass durch Deaktivieren von \"Nur Änderungen protokollieren\" die Änderungen auch wirklich nicht mehr protokolliert werden\nAufruf von storeState und GetHistory auch für \"unbekannte IDs\" zulassen",
|
|
@@ -99,18 +111,6 @@
|
|
|
99
111
|
"es": "Solucionar el problema con la actualización de la política de retención para influxDB 1",
|
|
100
112
|
"pl": "Rozwiąż problem z aktualizacją zasad przechowywania dla influxDB 1",
|
|
101
113
|
"zh-cn": "解决更新 influxDB 1 保留策略的问题"
|
|
102
|
-
},
|
|
103
|
-
"2.6.0": {
|
|
104
|
-
"en": "Make request timeout configurable - defaults to 30s\nAdd option to also accept self signed ssl certificates for InfluxDB 2.x",
|
|
105
|
-
"de": "Anforderungs-Timeout konfigurierbar machen – standardmäßig 30 Sekunden\nOption hinzugefügt, um auch selbstsignierte SSL-Zertifikate für InfluxDB 2.x zu akzeptieren",
|
|
106
|
-
"ru": "Сделать время ожидания запроса настраиваемым — по умолчанию 30 с.\nДобавить возможность также принимать самозаверяющие ssl-сертификаты для InfluxDB 2.x.",
|
|
107
|
-
"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",
|
|
108
|
-
"nl": "Verzoek time-out configureerbaar maken - standaard ingesteld op 30s\nOptie toevoegen om ook zelfondertekende SSL-certificaten te accepteren voor InfluxDB 2.x",
|
|
109
|
-
"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",
|
|
110
|
-
"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",
|
|
111
|
-
"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",
|
|
112
|
-
"pl": "Ustaw limit czasu żądania konfigurowalny - domyślnie 30s\nDodaj opcję akceptowania również samopodpisanych certyfikatów ssl dla InfluxDB 2.x",
|
|
113
|
-
"zh-cn": "使请求超时可配置 - 默认为 30 秒\n添加选项以接受 InfluxDB 2.x 的自签名 ssl 证书"
|
|
114
114
|
}
|
|
115
115
|
},
|
|
116
116
|
"mode": "daemon",
|
package/main.js
CHANGED
|
@@ -13,6 +13,7 @@ const [appName, adapterName] = require('./package.json').name.split('.');
|
|
|
13
13
|
const Aggregate = require('./lib/aggregate.js');
|
|
14
14
|
const dataDir = path.normalize(`${utils.controllerDir}/${require(`${utils.controllerDir}/lib/tools`).getDefaultDataDir()}`);
|
|
15
15
|
const cacheFile = `${dataDir}influxdata.json`;
|
|
16
|
+
const { isObject } = require('./lib/tools.js');
|
|
16
17
|
|
|
17
18
|
let adapter;
|
|
18
19
|
|
|
@@ -444,6 +445,9 @@ function getRetention(adapter, msg) {
|
|
|
444
445
|
|
|
445
446
|
function testConnection(adapter, msg) {
|
|
446
447
|
adapter.log.debug(`testConnection msg-object: ${JSON.stringify(msg)}`);
|
|
448
|
+
if (!msg || !msg.message || !isObject(msg.message.config)) {
|
|
449
|
+
return adapter.sendTo(msg.from, msg.command, {error: 'Invalid test configuration.'}, msg.callback);
|
|
450
|
+
}
|
|
447
451
|
msg.message.config.port = parseInt(msg.message.config.port, 10) || 0;
|
|
448
452
|
msg.message.config.requestTimeout = parseInt(msg.message.config.requestTimeout) || 30000;
|
|
449
453
|
|