iobroker.influxdb 2.3.0 → 2.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -305,6 +305,12 @@ sendTo('influxdb.0', 'getEnabledDPs', {}, function (result) {
305
305
  ### __WORK IN PROGRESS__
306
306
  -->
307
307
  ## Changelog
308
+ ### 2.4.0 (2021-12-19)
309
+ * (Excodibur) Added expert settings to deactivate health checks for Influx 2 db (There are no health checks for Influx 1)
310
+ * (Excodibur) Hide settings not relevant when "log changes only" is not used
311
+ * (Apollon77) Allow all number values for debounce again
312
+ * (Apollon77) InfluxDB also do not like Infinite values, so ignore them too
313
+
308
314
  ### 2.3.0 (2021-12-14)
309
315
  * (bluefox) Support only `js.controller` >= 3.3.x
310
316
  * (bluefox) Used system/custom view for collecting the objects
@@ -38,6 +38,7 @@
38
38
  "SQL history adapter settings": "SQL History Adapter Einstellungen",
39
39
  "Save last previous value": "Speichere vorherigen Wert",
40
40
  "Seconds": "Sekunden",
41
+ "Send health-check pings to database": "Pings zur Verfügbarkeitsprüfung an die Datenbank senden",
41
42
  "Start or enable adapter first": "Adapter muss zuerst aktiviert werden",
42
43
  "Test connection": "Verbindung testen",
43
44
  "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).": "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).",
@@ -45,6 +46,7 @@
45
46
  "Use tags to store metadata information, instead of fields": "Verwende Tags, anstelle von Feldern, um Metadateninformationen zu speichern",
46
47
  "User": "Benutzer",
47
48
  "debounce": "Änderungen ignorieren, bis der Wert für X Millisekunden unverändert bleibt",
49
+ "health-check help": "Regelmäßige Verfügbarkeits-Anfragen werden an den DB-Server gesendet, um zu überprüfen, ob er noch aktiv ist.",
48
50
  "keep forever": "keine automatische Löschung",
49
51
  "log changes interval(s)": "trotzdem gleiche Werte aufzeichnen (Sekunden)",
50
52
  "log changes minimal delta": "Minimale Differenz zum letzten Wert",
@@ -52,4 +54,4 @@
52
54
  "retention": "Storage Vorhaltezeit",
53
55
  "use 0 to not buffer at all": "Wert 0 schreibt Werte direkt",
54
56
  "usetags help": "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"
55
- }
57
+ }
@@ -38,6 +38,7 @@
38
38
  "SQL history adapter settings": "SQL history adapter settings",
39
39
  "Save last previous value": "Save last previous value",
40
40
  "Seconds": "Seconds",
41
+ "Send health-check pings to database": "Send health-check pings to database",
41
42
  "Start or enable adapter first": "Start or enable adapter first",
42
43
  "Test connection": "Test connection",
43
44
  "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).": "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).",
@@ -45,6 +46,7 @@
45
46
  "Use tags to store metadata information, instead of fields": "Use tags to store metadata information, instead of fields",
46
47
  "User": "User",
47
48
  "debounce": "Ignore changes till value stays unchanged for X Milliseconds",
49
+ "health-check help": "Regular health checks probes are sent to the DB server to check if it is still alive.",
48
50
  "keep forever": "keep forever",
49
51
  "log changes interval(s)": "still record the same values (seconds)",
50
52
  "log changes minimal delta": "Minimum difference from last value",
@@ -38,6 +38,7 @@
38
38
  "SQL history adapter settings": "Configuración del adaptador de historial SQL",
39
39
  "Save last previous value": "Guarde el último valor anterior",
40
40
  "Seconds": "Segundos",
41
+ "Send health-check pings to database": "Enviar pings de verificación de estado a la base de datos",
41
42
  "Start or enable adapter first": "Comience o habilite el adaptador primero",
42
43
  "Test connection": "Conexión de prueba",
43
44
  "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).": "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).",
@@ -45,6 +46,7 @@
45
46
  "Use tags to store metadata information, instead of fields": "Utilice etiquetas para almacenar información de metadatos, en lugar de campos",
46
47
  "User": "Usuario",
47
48
  "debounce": "Ignorar cambios hasta que el valor permanezca sin cambios durante X milisegundos",
49
+ "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.",
48
50
  "keep forever": "mantener para siempre",
49
51
  "log changes interval(s)": "sigue registrando los mismos valores (segundos)",
50
52
  "log changes minimal delta": "Diferencia mínima desde el último valor",
@@ -38,6 +38,7 @@
38
38
  "SQL history adapter settings": "SQL history adapter settings",
39
39
  "Save last previous value": "Save last previous value",
40
40
  "Seconds": "Seconds",
41
+ "Send health-check pings to database": "Envoyer des pings de vérification d'état à la base de données",
41
42
  "Start or enable adapter first": "Start or enable adapter first",
42
43
  "Test connection": "Test connection",
43
44
  "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).": "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).",
@@ -45,6 +46,7 @@
45
46
  "Use tags to store metadata information, instead of fields": "Utilisez des balises pour stocker les informations de métadonnées, au lieu de champs",
46
47
  "User": "User",
47
48
  "debounce": "Ignorer les modifications jusqu'à ce que la valeur reste inchangée pour X millisecondes",
49
+ "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.",
48
50
  "keep forever": "keep forever",
49
51
  "log changes interval(s)": "toujours enregistrer les mêmes valeurs (secondes)",
50
52
  "log changes minimal delta": "Différence minimale par rapport à la dernière valeur",
@@ -38,6 +38,7 @@
38
38
  "SQL history adapter settings": "Impostazioni della scheda cronologia SQL",
39
39
  "Save last previous value": "Salva l'ultimo valore precedente",
40
40
  "Seconds": "secondi",
41
+ "Send health-check pings to database": "Invia ping di controllo dello stato al database",
41
42
  "Start or enable adapter first": "Inizia o abilita prima l'adattatore",
42
43
  "Test connection": "Connessione di prova",
43
44
  "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).": "Questa funzione può essere utilizzata solo su database vuoti o già configurati con questa funzione abilitata. Altrimenti causerà errori (vedi log).",
@@ -45,6 +46,7 @@
45
46
  "Use tags to store metadata information, instead of fields": "Usa i tag per memorizzare le informazioni sui metadati, invece dei campi",
46
47
  "User": "Utente",
47
48
  "debounce": "Ignora le modifiche fino a quando il valore rimane invariato per X Milliseconds",
49
+ "health-check help": "Controlli di integrità regolari vengono inviati al server DB per verificare se è ancora attivo.",
48
50
  "keep forever": "tienilo per sempre",
49
51
  "log changes interval(s)": "registra ancora gli stessi valori (secondi)",
50
52
  "log changes minimal delta": "Differenza minima dall'ultimo valore",
@@ -38,6 +38,7 @@
38
38
  "SQL history adapter settings": "Instellingen voor SQL-geschiedenisadapter",
39
39
  "Save last previous value": "Sla de laatste vorige waarde op",
40
40
  "Seconds": "seconden",
41
+ "Send health-check pings to database": "Stuur gezondheidscheck pings naar database",
41
42
  "Start or enable adapter first": "Start of schakel eerst de adapter in",
42
43
  "Test connection": "Test verbinding",
43
44
  "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).": "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).",
@@ -45,6 +46,7 @@
45
46
  "Use tags to store metadata information, instead of fields": "Gebruik tags om metadata-informatie op te slaan in plaats van velden",
46
47
  "User": "Gebruiker",
47
48
  "debounce": "Wijzigingen negeren totdat waarde ongewijzigd blijft voor X Milliseconds",
49
+ "health-check help": "Regelmatige gezondheidscontroles worden naar de DB-server gestuurd om te controleren of deze nog in leven is.",
48
50
  "keep forever": "blijf voor altijd",
49
51
  "log changes interval(s)": "nog steeds dezelfde waarden (seconden)",
50
52
  "log changes minimal delta": "Minimaal verschil met laatste waarde",
@@ -38,6 +38,7 @@
38
38
  "SQL history adapter settings": "Ustawienia adaptera historii SQL",
39
39
  "Save last previous value": "Zapisz ostatnią poprzednią wartość",
40
40
  "Seconds": "sekundy",
41
+ "Send health-check pings to database": "Wysyłaj pingi sprawdzające kondycję do bazy danych",
41
42
  "Start or enable adapter first": "Najpierw włącz lub włącz adapter",
42
43
  "Test connection": "Testuj połączenie",
43
44
  "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).": "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).",
@@ -45,6 +46,7 @@
45
46
  "Use tags to store metadata information, instead of fields": "Używaj tagów do przechowywania informacji o metadanych zamiast pól",
46
47
  "User": "Użytkownik",
47
48
  "debounce": "Zignoruj ​​zmiany, aż wartość pozostanie niezmieniona przez X Milliseconds",
49
+ "health-check help": "Regularne sondy sprawdzające kondycję są wysyłane do serwera bazy danych w celu sprawdzenia, czy nadal działa.",
48
50
  "keep forever": "zachowaj na zawsze",
49
51
  "log changes interval(s)": "nadal nagrywaj te same wartości (sekundy)",
50
52
  "log changes minimal delta": "Minimalna różnica od ostatniej wartości",
@@ -27,7 +27,7 @@
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
- "Ok": "Está bem",
30
+ "Ok": "Ok",
31
31
  "Organization": "Organização",
32
32
  "Password": "Senha",
33
33
  "Password confirm": "Confirmação de senha",
@@ -38,6 +38,7 @@
38
38
  "SQL history adapter settings": "Configurações do adaptador de histórico SQL",
39
39
  "Save last previous value": "Salvar o último valor anterior",
40
40
  "Seconds": "Segundos",
41
+ "Send health-check pings to database": "Envie pings de verificação de integridade para o banco de dados",
41
42
  "Start or enable adapter first": "Inicie ou ative o adaptador primeiro",
42
43
  "Test connection": "Conexão de teste",
43
44
  "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).": "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).",
@@ -45,6 +46,7 @@
45
46
  "Use tags to store metadata information, instead of fields": "Use tags para armazenar informações de metadados, em vez de campos",
46
47
  "User": "Do utilizador",
47
48
  "debounce": "Ignorar alterações até que o valor permaneça inalterado por X Milissegundos",
49
+ "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.",
48
50
  "keep forever": "mantenha para sempre",
49
51
  "log changes interval(s)": "ainda gravar os mesmos valores (segundos)",
50
52
  "log changes minimal delta": "Diferença mínima do último valor",
@@ -52,4 +54,4 @@
52
54
  "retention": "Retenção de armazenamento",
53
55
  "use 0 to not buffer at all": "Use 0 para não buffer no total",
54
56
  "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"
55
- }
57
+ }
@@ -38,6 +38,7 @@
38
38
  "SQL history adapter settings": "Настройки профайлера в SQL базу данных",
39
39
  "Save last previous value": "Сохранять предыдущее значение",
40
40
  "Seconds": "секунд",
41
+ "Send health-check pings to database": "Отправлять эхо-запросы проверки работоспособности в базу данных",
41
42
  "Start or enable adapter first": "Сначала надо запустить или активировать драйвер",
42
43
  "Test connection": "Проверить соединение",
43
44
  "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).": "Эту функцию можно использовать только с пустыми базами данных, которые уже были настроены с включенной этой функцией. В противном случае это вызовет ошибки (см. Логи).",
@@ -45,6 +46,7 @@
45
46
  "Use tags to store metadata information, instead of fields": "Используйте теги для хранения информации метаданных вместо полей",
46
47
  "User": "Пользователь",
47
48
  "debounce": "Игнорировать изменения до тех пор, пока не будет постоянного значения в течение X миллисекунд",
49
+ "health-check help": "На сервер БД отправляются регулярные зонды проверки работоспособности, чтобы проверить, жив ли он.",
48
50
  "keep forever": "хранить вечно",
49
51
  "log changes interval(s)": "Записывать значения в базу, даже если они не менялись каждые Х секунд",
50
52
  "log changes minimal delta": "Минимальное отличие от предыдущего значения",
@@ -38,6 +38,7 @@
38
38
  "SQL history adapter settings": "SQL历史记录适配器设置",
39
39
  "Save last previous value": "保存上一个上一个值",
40
40
  "Seconds": "秒",
41
+ "Send health-check pings to database": "将健康检查 ping 发送到数据库",
41
42
  "Start or enable adapter first": "首先启动或启用适配器",
42
43
  "Test connection": "测试连接",
43
44
  "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).": "此功能只能用于空数据库或已启用此功能设置的数据库。否则会导致错误(见日志)。",
@@ -45,6 +46,7 @@
45
46
  "Use tags to store metadata information, instead of fields": "使用标签来存储元数据信息,而不是字段",
46
47
  "User": "用户",
47
48
  "debounce": "忽略更改,直到值保持不变为X毫秒",
49
+ "health-check help": "定期健康检查探针会发送到数据库服务器以检查它是否还活着。",
48
50
  "keep forever": "永远保持",
49
51
  "log changes interval(s)": "仍记录相同的值(秒",
50
52
  "log changes minimal delta": "与上一个值的最小差异",
@@ -260,7 +260,17 @@
260
260
  "title": "Please confirm!",
261
261
  "type": "warning"
262
262
  }
263
- }
263
+ },
264
+ "pingserver": {
265
+ "type": "checkbox",
266
+ "sm": 12,
267
+ "md": 6,
268
+ "min": 0,
269
+ "label": "Send health-check pings to database",
270
+ "help": "health-check help",
271
+ "hidden": "data.dbversion === '1.x'",
272
+ "disabled": "data.dbversion === '1.x'"
273
+ }
264
274
  }
265
275
  }
266
276
  }
@@ -195,7 +195,7 @@
195
195
  "type": "number",
196
196
  "label": "De-bounce time",
197
197
  "help": "De-bounce interval(ms)",
198
- "min": 500,
198
+ "min": 0,
199
199
  "max": 86400000,
200
200
  "defaultFunc": "customObj && customObj.common && customObj.common.type === 'number' ? instanceObj.native.debounce : 0",
201
201
  "sm": 6
@@ -208,7 +208,8 @@
208
208
  "max": 86400000,
209
209
  "help": "0 = disabled",
210
210
  "defaultFunc": "instanceObj.native.changesRelogInterval",
211
- "sm": 6
211
+ "sm": 6,
212
+ "disabled": "!data.changesOnly"
212
213
  },
213
214
  "changesMinDelta": {
214
215
  "type": "number",
@@ -217,7 +218,8 @@
217
218
  "defaultFunc": "customObj && customObj.common && customObj.common.type === 'number' ? instanceObj.native.changesMinDelta : 0",
218
219
  "default": 0,
219
220
  "sm": 6,
220
- "help": "0 = disable delta check"
221
+ "help": "0 = disable delta check",
222
+ "disabled": "!data.changesOnly"
221
223
  },
222
224
  "storageType": {
223
225
  "newLine": true,
package/admin/words.js CHANGED
@@ -30,7 +30,7 @@ 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
- "Ok": { "en": "Ok", "de": "Ok", "ru": "Ok", "pt": "Está bem", "nl": "OK", "fr": "Ok", "it": "Ok", "es": "De acuerdo", "pl": "Ok", "zh-cn": "好的"},
33
+ "Ok": { "en": "Ok", "de": "Ok", "ru": "Ok", "pt": "Ok", "nl": "OK", "fr": "Ok", "it": "Ok", "es": "De acuerdo", "pl": "Ok", "zh-cn": "好的"},
34
34
  "Organization": { "en": "Organization", "de": "Organisation", "ru": "Организация", "pt": "Organização", "nl": "Organisatie", "fr": "Organisation", "it": "Organizzazione", "es": "Organización", "pl": "Organizacja", "zh-cn": "组织"},
35
35
  "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
36
  "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": "确认密码"},
@@ -55,4 +55,6 @@ systemDictionary = {
55
55
  "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
56
  "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
57
  "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": "定期健康检查探针会发送到数据库服务器以检查它是否还活着。"}
58
60
  };
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.3.0",
16
+ "version": "2.4.0",
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
+ "2.4.0": {
32
+ "en": "Added expert settings to deactivate health checks for Influx 2 db (There are no health checks for Influx 1)\nHide settings not relevant when \"log changes only\" is not used\nAllow all number values for debounce again\nInfluxDB also do not like Infinite values, so ignore them too",
33
+ "de": "Experteneinstellungen hinzugefügt, um Gesundheitsprüfungen für Influx 2 db zu deaktivieren (Es gibt keine Gesundheitsprüfungen für Influx 1)\nNicht relevante Einstellungen ausblenden, wenn \"Nur Änderungen protokollieren\" nicht verwendet wird\nAlle Zahlenwerte wieder für die Entprellung zulassen\nInfluxDB mag auch keine unendlichen Werte, also ignoriere sie auch",
34
+ "ru": "Добавлены экспертные настройки для отключения проверок работоспособности для Influx 2 db (для Influx 1 проверки работоспособности отсутствуют)\nСкрыть настройки, не актуальные, если не используется \"только журнал изменений\"\nРазрешить все числовые значения для устранения дребезга снова\nInfluxDB также не любит бесконечные значения, поэтому игнорируйте их тоже",
35
+ "pt": "Adicionadas configurações de especialistas para desativar verificações de saúde para o Influx 2 db (não há verificações de saúde para o Influx 1)\nOcultar configurações irrelevantes quando \"apenas registro de alterações\" não é usado\nPermitir todos os valores numéricos para debounce novamente\nInfluxDB também não gosta de valores infinitos, então ignore-os também",
36
+ "nl": "Expertinstellingen toegevoegd om statuscontroles voor Influx 2 db te deactiveren (Er zijn geen statuscontroles voor Influx 1)\nInstellingen verbergen die niet relevant zijn wanneer \"alleen logboekwijzigingen\" niet wordt gebruikt\nSta alle getalwaarden opnieuw toe voor debounce\nInfluxDB houdt ook niet van oneindige waarden, dus negeer ze ook",
37
+ "fr": "Ajout de paramètres experts pour désactiver les contrôles de santé pour Influx 2 db (il n'y a pas de contrôles de santé pour Influx 1)\nMasquer les paramètres non pertinents lorsque \"log changes only\" n'est pas utilisé\nAutoriser à nouveau toutes les valeurs numériques pour l'anti-rebond\nInfluxDB n'aime pas non plus les valeurs infinies, alors ignorez-les aussi",
38
+ "it": "Aggiunte impostazioni avanzate per disattivare i controlli di integrità per Influx 2 db (non ci sono controlli di integrità per Influx 1)\nNascondi le impostazioni non rilevanti quando non viene utilizzato \"solo modifiche al registro\"\nConsenti di nuovo l'antirimbalzo di tutti i valori numerici\nAnche a InfluxDB non piacciono i valori Infinite, quindi ignorali anche tu",
39
+ "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",
40
+ "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",
41
+ "zh-cn": "添加了专家设置以停用 Influx 2 db 的健康检查(Influx 1 没有健康检查)\n不使用“仅记录更改”时隐藏不相关的设置\n再次允许所有数值去抖动\nInfluxDB 也不喜欢 Infinite 值,所以也忽略它们"
42
+ },
31
43
  "2.3.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": "Caso de accidente evitado (Sentry IOBROKER-INFLUXDB-T, IOBROKER-INFLUXDB-Y)",
100
112
  "pl": "Zapobiegano awariom (Sentry IOBROKER-INFLUXDB-T, IOBROKER-INFLUXDB-Y)",
101
113
  "zh-cn": "防止发生崩溃情况(哨兵IOBROKER-INFLUXDB-T,IOBROKER-INFLUXDB-Y)"
102
- },
103
- "1.9.2": {
104
- "en": "crash prevented (Sentry IOBROKER-INFLUXDB-G)",
105
- "de": "Absturz verhindert (Sentry IOBROKER-INFLUXDB-G)",
106
- "ru": "сбой предотвращен (Sentry IOBROKER-INFLUXDB-G)",
107
- "pt": "travamento evitado (Sentry IOBROKER-INFLUXDB-G)",
108
- "nl": "crash voorkomen (Sentry IOBROKER-INFLUXDB-G)",
109
- "fr": "crash évité (Sentry IOBROKER-INFLUXDB-G)",
110
- "it": "crash prevenuto (Sentry IOBROKER-INFLUXDB-G)",
111
- "es": "accidente prevenido (Sentry IOBROKER-INFLUXDB-G)",
112
- "pl": "zapobieganie awariom (Sentry IOBROKER-INFLUXDB-G)",
113
- "zh-cn": "防止崩溃(Sentry IOBROKER-INFLUXDB-G)"
114
114
  }
115
115
  },
116
116
  "mode": "daemon",
@@ -194,7 +194,8 @@
194
194
  "reconnectInterval": 10000,
195
195
  "pingInterval": 15000,
196
196
  "dbversion": "1.x",
197
- "usetags": false
197
+ "usetags": false,
198
+ "pingserver": true
198
199
  },
199
200
  "protectedNative": [
200
201
  "password",
package/main.js CHANGED
@@ -228,7 +228,7 @@ function stopPing(adapter) {
228
228
  }
229
229
 
230
230
  function ping(adapter) {
231
- adapter._client.ping && adapter._client.ping(adapter.config.pingInterval - 1000 < 0 ? 1000 : adapter.config.pingInterval - 1000)
231
+ adapter._client.ping && adapter.config.pingserver !== false && adapter._client.ping(adapter.config.pingInterval - 1000 < 0 ? 1000 : adapter.config.pingInterval - 1000)
232
232
  .then(
233
233
  hosts => {
234
234
  if (!hosts.some(host => host.online)) {
@@ -289,6 +289,9 @@ function connect(adapter) {
289
289
  break;
290
290
  }
291
291
 
292
+ if (adapter.config.pingserver === false) {
293
+ adapter.log.info('Deactivated DB health checks (ping) via configuration');
294
+ }
292
295
 
293
296
  adapter._client.getDatabaseNames((err, dbNames) => {
294
297
  if (err) {
@@ -807,6 +810,12 @@ function pushHelper(adapter, _id, cb) {
807
810
  if (adapter._influxDPs[_id].state.val === null) { // InfluxDB can not handle null values
808
811
  return cb && setImmediate(cb, `null value for ${_id} can not be handled`);
809
812
  }
813
+ if (adapter._influxDPs[_id].state.val === null) { // InfluxDB can not handle null values
814
+ return cb && setImmediate(cb, `null value for ${_id} can not be handled`);
815
+ }
816
+ if (typeof adapter._influxDPs[_id].state.val === 'number' && !isFinite(adapter._influxDPs[_id].state.val)) { // InfluxDB can not handle Infinite values
817
+ return cb && setImmediate(cb, `Non Finite value ${adapter._influxDPs[_id].state.val} for ${_id} can not be handled`);
818
+ }
810
819
 
811
820
  if (typeof adapter._influxDPs[_id].state.val === 'object') {
812
821
  adapter._influxDPs[_id].state.val = JSON.stringify(adapter._influxDPs[_id].state.val);
@@ -852,15 +861,15 @@ function pushValueIntoDB(adapter, id, state, cb) {
852
861
  if (state.val === null || state.val === undefined) {
853
862
  return cb && cb('InfluxDB can not handle null/non-existing values');
854
863
  } // InfluxDB can not handle null/non-existing values
855
- if (typeof state.val === 'number' && isNaN(state.val)) {
856
- return cb && cb('InfluxDB can not handle null/non-existing values');
864
+ if (typeof state.val === 'number' && !isFinite(state.val)) {
865
+ return cb && cb(`InfluxDB can not handle non finite values like ${state.val}`);
857
866
  }
858
867
 
859
- if (adapter._influxDPs[id][adapter.namespace].ignoreZero && state.val === 0) {
868
+ if (adapter._influxDPs[id] && adapter._influxDPs[id][adapter.namespace] && adapter._influxDPs[id][adapter.namespace].ignoreZero && state.val === 0) {
860
869
  adapter.log.debug(`pushValueIntoDB called for ${id} was ignored because the value zero or null`);
861
870
  return cb && cb();
862
871
  } else
863
- if (state && adapter._influxDPs[id][adapter.namespace].ignoreBelowZero && typeof state.val === 'number' && state.val < 0) {
872
+ if (state && adapter._influxDPs[id] && adapter._influxDPs[id][adapter.namespace] && adapter._influxDPs[id][adapter.namespace].ignoreBelowZero && typeof state.val === 'number' && state.val < 0) {
864
873
  adapter.log.debug(`pushValueIntoDB called for ${id} and state: ${JSON.stringify(state)} was ignored because the value is below 0`);
865
874
  return cb && cb();
866
875
  }
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.3.0",
4
+ "version": "2.4.0",
5
5
  "author": "bluefox <dogafox@gmail.com>",
6
6
  "contributors": [
7
7
  "bluefox <dogafox@gmail.com>",
@@ -26,7 +26,7 @@
26
26
  "influx": "^4.2.3"
27
27
  },
28
28
  "devDependencies": {
29
- "@alcalzone/release-script": "^3.4.1",
29
+ "@alcalzone/release-script": "^3.4.2",
30
30
  "@alcalzone/release-script-plugin-iobroker": "^3.4.1",
31
31
  "@alcalzone/release-script-plugin-license": "^3.4.1",
32
32
  "axios": "^0.24.0",