iobroker.influxdb 2.4.0 → 2.6.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/LICENSE +1 -1
- package/README.md +85 -23
- package/admin/i18n/de/translations.json +3 -0
- package/admin/i18n/en/translations.json +3 -0
- package/admin/i18n/es/translations.json +3 -0
- package/admin/i18n/fr/translations.json +3 -0
- package/admin/i18n/it/translations.json +3 -0
- package/admin/i18n/nl/translations.json +3 -0
- package/admin/i18n/pl/translations.json +3 -0
- package/admin/i18n/pt/translations.json +4 -1
- package/admin/i18n/ru/translations.json +3 -0
- package/admin/i18n/zh-cn/translations.json +3 -0
- package/admin/index_m.html +13 -15
- package/admin/jsonConfig.json +18 -2
- package/admin/words.js +5 -2
- package/io-package.json +64 -68
- package/lib/Database.js +6 -5
- package/lib/DatabaseInfluxDB1x.js +29 -23
- package/lib/DatabaseInfluxDB2x.js +69 -71
- package/lib/aggregate.js +141 -37
- package/main.js +487 -173
- package/package.json +10 -10
package/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
The MIT License (MIT)
|
|
2
2
|
|
|
3
|
-
Copyright (c) 2016-
|
|
3
|
+
Copyright (c) 2016-2022 bluefox <dogafox@gmail.com>, apollon77
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
package/README.md
CHANGED
|
@@ -36,10 +36,10 @@ When doing custom queries via the "query" message you can use Flux queries to se
|
|
|
36
36
|
#### Store metadata information as tags instead of fields
|
|
37
37
|
For Influx 1.x state value, as well as associated metadata fields (`q`, `ack` and `from`) are stored as fields within InfluxDB. When using Flux-commands to retrieve this data (instead of InfluxQL) the data is returned in separate tables, which makes it more difficult to view the data in a joined way when using external database clients or Influx CLI `query` command. This is by design, as Influx only supports one field per data-point.
|
|
38
38
|
|
|
39
|
-
With Influx 2.x it is now also possible, to store this metadata-information besides the actual value of the state as Influx Tags. Tags are indexed and allow for faster search queries. In addition they are closely linked to the measurement stored within the db, meaning they will be returned in one table with the queried measurement which makes them much easier to handle, when used outside
|
|
39
|
+
With Influx 2.x it is now also possible, to store this metadata-information besides the actual value of the state as Influx Tags. Tags are indexed and allow for faster search queries. In addition, they are closely linked to the measurement stored within the db, meaning they will be returned in one table with the queried measurement which makes them much easier to handle, when used outside this adapter. There are limitations with this however:
|
|
40
40
|
- The use of tags for metadata needs to be enabled under `Advanced Settings`. It is disabled by default.
|
|
41
41
|
- If you decide to use tags, you cannot continue to use old measurements that were gathered with Influx 1.x, as they are stored in fields.
|
|
42
|
-
- Attempting to use an existing database that was
|
|
42
|
+
- Attempting to use an existing database that was set up without enabling the Tag-feature will cause the adapter to fail to initialize, and you will see an error message about it in the log.
|
|
43
43
|
- This also is valid the other way: Once you start using the Tag-feature in a new database, you cannot switch back to using fields for this database.
|
|
44
44
|
- This feature is currently only available, if you use Influx 2.x. And only if you use the new responsive GUI of Admin 5.
|
|
45
45
|
|
|
@@ -57,20 +57,20 @@ Please also read [Understanding Retention Policies](RetentionPolicies.md).
|
|
|
57
57
|
## Direct writes or buffered writes?
|
|
58
58
|
With the default configuration the adapter stores each single datapoint directly into the database and only use the internal buffer if the database is not available. If the database was not available the buffer is flushed at the given interval, so it can take the defined interval till the missing points are written!
|
|
59
59
|
|
|
60
|
-
By changing the configuration it is possible to cache new
|
|
61
|
-
InfluxDB has a limitation of the maximum size for writes which is at around 2MB. It should be
|
|
60
|
+
By changing the configuration it is possible to cache new data points up to a defined count or a defined maximum interval after which all points are stored into the database. This also gives better performance and less system load compared to writing the data points directly.
|
|
61
|
+
InfluxDB has a limitation of the maximum size for writes which is at around 2MB. It should be safe to have up to 15.000 data points as buffer maximum, maybe also 20.000, but this highly depends on the length of your datapoint-IDs.
|
|
62
62
|
|
|
63
|
-
On exit of the adapter the buffer is
|
|
63
|
+
On exit of the adapter the buffer is stored on disk and reinitialized with next adapter start, so no data points should be lost and will be written after next start.
|
|
64
64
|
|
|
65
|
-
## InfluxDB and
|
|
66
|
-
InfluxDB is very strict on
|
|
67
|
-
The adapter tries to write with the correct value, but if the datatype changes for the same state then there may be write
|
|
68
|
-
errors
|
|
65
|
+
## InfluxDB and data types
|
|
66
|
+
InfluxDB is very strict on data types. The datatype for a measurement value is defined with it's first write.
|
|
67
|
+
The adapter tries to write with the correct value, but if the datatype changes for the same state then there may be the write
|
|
68
|
+
errors in the InfluxDB. The adapter detects this and will write these potential conflicting data points always directly, but write errors mean that the value is not written into the DB at all. So make sure to check the logs for such cases.
|
|
69
69
|
|
|
70
|
-
Additionally InfluxDB do not support "null" values, so these are not written at all into the DB.
|
|
70
|
+
Additionally, InfluxDB do not support "null" values, so these are not written at all into the DB.
|
|
71
71
|
|
|
72
72
|
## Installation of InfluxDB
|
|
73
|
-
Please refer to the official InfluxDB pages for
|
|
73
|
+
Please refer to the official InfluxDB pages for installation instructions depending on your OS.
|
|
74
74
|
|
|
75
75
|
* InfluxDB 1.x: https://docs.influxdata.com/influxdb/v1.8/introduction/install/
|
|
76
76
|
* InfluxDB 2.x: https://docs.influxdata.com/influxdb/v2.0/install/
|
|
@@ -78,7 +78,7 @@ Please refer to the official InfluxDB pages for installationinstructions dependi
|
|
|
78
78
|
### Setup authentication for InfluxDB 1.x (optional)
|
|
79
79
|
**NOTE:** Influx DB V2.x relies on organization/token login, instead of username/password! This is only applicable for InfluxDB 1.x
|
|
80
80
|
|
|
81
|
-
If you use DB
|
|
81
|
+
If you use DB locally you may leave authentication disabled and skip this part.
|
|
82
82
|
|
|
83
83
|
- Start service: ``` service influxdb start ```
|
|
84
84
|
- Go to admin page: http://<ip>:8083
|
|
@@ -107,7 +107,7 @@ Enable authentication, by editing /etc/influxdb/influxdb.conf:
|
|
|
107
107
|
There is additional charting tool for InfluxDB - Grafana.
|
|
108
108
|
It must be installed additionally.
|
|
109
109
|
|
|
110
|
-
Install a current version of Grafana 3.x+ because InfluxDB support is enhanced there in
|
|
110
|
+
Install a current version of Grafana 3.x+ because InfluxDB support is enhanced there in comparison to earlier Grafana versions.
|
|
111
111
|
|
|
112
112
|
Under debian you can install it as described at http://docs.grafana.org/installation/debian/ .
|
|
113
113
|
For ARM platforms your can check vor v3.x at https://github.com/fg2it/grafana-on-raspberry.
|
|
@@ -183,7 +183,7 @@ sendTo('influxdb.0', 'query', 'from(bucket: "iobroker") |> range(start: -3h); fr
|
|
|
183
183
|
**NOTE:** The values are coming back in the result array in filename "value" (instead of "val" as normal in ioBroker)
|
|
184
184
|
|
|
185
185
|
## Get history
|
|
186
|
-
Additional to custom queries, you can use build in system function **getHistory** to access the stored history for
|
|
186
|
+
Additional to custom queries, you can use build in system function **getHistory** to access the stored history for data points:
|
|
187
187
|
```
|
|
188
188
|
var end = new Date().getTime();
|
|
189
189
|
sendTo('influxdb.0', 'getHistory', {
|
|
@@ -207,6 +207,7 @@ Possible options:
|
|
|
207
207
|
- **limit** - do not return more entries than limit (only used if aggregate is 'onchange'/'none')
|
|
208
208
|
- **addId** - if *id* field should be included in answer
|
|
209
209
|
- **aggregate** - aggregate method:
|
|
210
|
+
- *minmax* - Splice the whole time range in small intervals and find for every interval max value and min value and use them for this interval (nulls will be ignored).
|
|
210
211
|
- *max* - Splice the whole time range in small intervals and find for every interval max value and use it for this interval (nulls will be ignored).
|
|
211
212
|
- *min* - Same as max, but take minimal value.
|
|
212
213
|
- *average* - Same as max, but take average value.
|
|
@@ -217,9 +218,11 @@ Possible options:
|
|
|
217
218
|
When raw data are selected without using 'step' the returned fields are ts, val, ack, q and from.
|
|
218
219
|
As soon as step is used the returned fields are ts and val.
|
|
219
220
|
|
|
221
|
+
Interpolated values will be marked as `i=true`, like: `{i: true, val: 4.7384845, ts: 29892365723652}`.
|
|
222
|
+
|
|
220
223
|
Please hold in mind that InfluxDB aggregates on "rounded time boundaries" (see https://docs.influxdata.com/influxdb/v0.11/troubleshooting/frequently_encountered_issues/#understanding-the-time-intervals-returned-from-group-by-time-queries)
|
|
221
224
|
|
|
222
|
-
InfluxDB is very strict when it comes to
|
|
225
|
+
InfluxDB is very strict when it comes to data types. This has effects for aggregator functions, e.g.:
|
|
223
226
|
* average (MEAN) can not be used for boolean values (true/false), only MIN or MAX works here
|
|
224
227
|
* average (MEAN) can not be used for string values (text), no aggregator makes sense here at all
|
|
225
228
|
* ...
|
|
@@ -235,11 +238,55 @@ The Message can have one of the following three formats:
|
|
|
235
238
|
* one ID and array of state objects
|
|
236
239
|
* array of multiple IDs with state objects
|
|
237
240
|
|
|
241
|
+
## delete state
|
|
242
|
+
If you want to delete entry from the Database you can use the build in system function **delete**:
|
|
243
|
+
|
|
244
|
+
```
|
|
245
|
+
sendTo('sql.0', 'delete', [
|
|
246
|
+
{id: 'mbus.0.counter.xxx', state: {ts: 1589458809352},
|
|
247
|
+
{id: 'mbus.0.counter.yyy', state: {ts: 1589458809353}
|
|
248
|
+
], result => console.log('deleted'));
|
|
249
|
+
```
|
|
250
|
+
|
|
251
|
+
To delete ALL history data for some data point execute:
|
|
252
|
+
|
|
253
|
+
```
|
|
254
|
+
sendTo('sql.0', 'deleteAll', [
|
|
255
|
+
{id: 'mbus.0.counter.xxx'}
|
|
256
|
+
{id: 'mbus.0.counter.yyy'}
|
|
257
|
+
], result => console.log('deleted'));
|
|
258
|
+
```
|
|
259
|
+
|
|
260
|
+
To delete history data for some data point and for some range, execute:
|
|
261
|
+
|
|
262
|
+
```
|
|
263
|
+
sendTo('sql.0', 'deleteRange', [
|
|
264
|
+
{id: 'mbus.0.counter.xxx', start: '2019-01-01T00:00:00.000Z', end: '2019-12-31T23:59:59.999'},
|
|
265
|
+
{id: 'mbus.0.counter.yyy', start: 1589458809352, end: 1589458809353}
|
|
266
|
+
], result => console.log('deleted'));
|
|
267
|
+
```
|
|
268
|
+
|
|
269
|
+
Time could be ms since epoch or ans string, that could be converted by javascript Date object.
|
|
270
|
+
|
|
271
|
+
Values will be deleted including defined limits. `ts >= start AND ts <= end`
|
|
272
|
+
|
|
273
|
+
## change state
|
|
274
|
+
If you want to change entry's value, quality or acknowledge flag in the database you can use the build in system function **update**:
|
|
275
|
+
|
|
276
|
+
```
|
|
277
|
+
sendTo('sql.0', 'update', [
|
|
278
|
+
{id: 'mbus.0.counter.xxx', state: {ts: 1589458809352, val: 15, ack: true, q: 0},
|
|
279
|
+
{id: 'mbus.0.counter.yyy', state: {ts: 1589458809353, val: 16, ack: true, q: 0}
|
|
280
|
+
], result => console.log('deleted'));
|
|
281
|
+
```
|
|
282
|
+
|
|
283
|
+
`ts` is mandatory. At least one other flags must be included in state object.
|
|
284
|
+
|
|
238
285
|
## History Logging Management via Javascript
|
|
239
|
-
The adapter supports enabling and disabling of history logging via JavaScript and also retrieving the list of enabled
|
|
286
|
+
The adapter supports enabling and disabling of history logging via JavaScript and also retrieving the list of enabled data points with their settings.
|
|
240
287
|
|
|
241
288
|
### enable
|
|
242
|
-
The message requires to have the "id" of the datapoint.Additionally optional "options" to define the datapoint specific settings:
|
|
289
|
+
The message requires to have the "id" of the datapoint. Additionally, optional "options" to define the datapoint specific settings:
|
|
243
290
|
|
|
244
291
|
```
|
|
245
292
|
sendTo('influxdb.0', 'enableHistory', {
|
|
@@ -257,7 +304,7 @@ sendTo('influxdb.0', 'enableHistory', {
|
|
|
257
304
|
console.log(result.error);
|
|
258
305
|
}
|
|
259
306
|
if (result.success) {
|
|
260
|
-
//
|
|
307
|
+
// successfully enabled
|
|
261
308
|
}
|
|
262
309
|
});
|
|
263
310
|
```
|
|
@@ -273,7 +320,7 @@ sendTo('influxdb.0', 'disableHistory', {
|
|
|
273
320
|
console.log(result.error);
|
|
274
321
|
}
|
|
275
322
|
if (result.success) {
|
|
276
|
-
//
|
|
323
|
+
// successfully enabled
|
|
277
324
|
}
|
|
278
325
|
});
|
|
279
326
|
```
|
|
@@ -304,7 +351,22 @@ sendTo('influxdb.0', 'getEnabledDPs', {}, function (result) {
|
|
|
304
351
|
Placeholder for the next version (at the beginning of the line):
|
|
305
352
|
### __WORK IN PROGRESS__
|
|
306
353
|
-->
|
|
354
|
+
|
|
307
355
|
## Changelog
|
|
356
|
+
### 2.6.1 (2022-02-28)
|
|
357
|
+
* (Excodibur) Address issue with updating retention policy for influxDB 1
|
|
358
|
+
|
|
359
|
+
### 2.6.0 (2022-02-24)
|
|
360
|
+
* (Excodibur) Make request timeout configurable - defaults to 30s
|
|
361
|
+
* (Apollon77) Add option to also accept self signed ssl certificates for InfluxDB 2.x
|
|
362
|
+
|
|
363
|
+
### 2.5.2 (2022-02-22)
|
|
364
|
+
* (bluefox) Marked interpolated data with `i=true`
|
|
365
|
+
|
|
366
|
+
### 2.5.0 (2022-02-14)
|
|
367
|
+
* (bluefox) Added new messages: 'update', 'delete', 'deleteRange', 'deleteAll' (only for influxdb v1)
|
|
368
|
+
* (bluefox) Corrected aggregation of data
|
|
369
|
+
|
|
308
370
|
### 2.4.0 (2021-12-19)
|
|
309
371
|
* (Excodibur) Added expert settings to deactivate health checks for Influx 2 db (There are no health checks for Influx 1)
|
|
310
372
|
* (Excodibur) Hide settings not relevant when "log changes only" is not used
|
|
@@ -353,7 +415,7 @@ sendTo('influxdb.0', 'getEnabledDPs', {}, function (result) {
|
|
|
353
415
|
* (bluefox) added command to read supported features
|
|
354
416
|
|
|
355
417
|
### 1.8.6 (2020-05-11)
|
|
356
|
-
* (Apollon77) make sure disabling of
|
|
418
|
+
* (Apollon77) make sure disabling of data points while starting adapter do not crash adapter (Sentry IOBROKER-INFLUXDB-7)
|
|
357
419
|
* (Apollon77) Make sure all start values are processed correctly
|
|
358
420
|
* (Apollon77) More checks to make sure to not crash when states are disabled while data are processed (Sentry IOBROKER-INFLUXDB-8)
|
|
359
421
|
|
|
@@ -361,7 +423,7 @@ sendTo('influxdb.0', 'getEnabledDPs', {}, function (result) {
|
|
|
361
423
|
* (bluefox) set default history if not yet set
|
|
362
424
|
|
|
363
425
|
### 1.8.4 (2020-05-02)
|
|
364
|
-
* (Apollon77) make sure disabling of
|
|
426
|
+
* (Apollon77) make sure disabling of data points do not crash adapter (Sentry IOBROKER-INFLUXDB-4)
|
|
365
427
|
|
|
366
428
|
### 1.8.3 (2020-04-29)
|
|
367
429
|
* (Apollon77) Fix pot crash case when deleting objects while saving values (Sentry)
|
|
@@ -384,7 +446,7 @@ sendTo('influxdb.0', 'getEnabledDPs', {}, function (result) {
|
|
|
384
446
|
* (Apollon77) Small fix for older configurations
|
|
385
447
|
|
|
386
448
|
### 1.3.2
|
|
387
|
-
* (Apollon77) Enhance Min-Delta logic for
|
|
449
|
+
* (Apollon77) Enhance Min-Delta logic for data points from type mixed
|
|
388
450
|
|
|
389
451
|
### 1.3.1 (2017-01-16)
|
|
390
452
|
* (bluefox) Fix handling of float values in Adapter config and Datapoint config.
|
|
@@ -466,7 +528,7 @@ sendTo('influxdb.0', 'getEnabledDPs', {}, function (result) {
|
|
|
466
528
|
|
|
467
529
|
The MIT License (MIT)
|
|
468
530
|
|
|
469
|
-
Copyright (c) 2015-
|
|
531
|
+
Copyright (c) 2015-2022 bluefox, apollon77
|
|
470
532
|
|
|
471
533
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
472
534
|
of this software and associated documentation files (the "Software"), to deal
|
|
@@ -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": "永远保持",
|
package/admin/index_m.html
CHANGED
|
@@ -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">
|
package/admin/jsonConfig.json
CHANGED
|
@@ -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,PHN2ZyBoZWlnaHQ9IjUxMiIgdmlld0JveD0iMCAwIDMyIDMyIiB3aWR0aD0iNTEyIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPg0KICAgIDxwYXRoIGZpbGw9ImN1cnJlbnRDb2xvciIgZD0ibTIyLjk4NSAxMy42OTJoLS4wMTl2LTEuNzQ2YS44MjIuODIyIDAgMCAwIDAtLjEzOSAxIDEgMCAwIDAgLS4wMTEtLjE0NXYtNS4zNjhhLjcwOC43MDggMCAwIDAgMC0uMTM5IDIuNjQgMi42NCAwIDAgMCAtMS42MzQtMi4xNzFjLTEuNzUtLjk1NC01LjI2OS0xLjY0NS05LjMzLTEuNjQ1c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gcnk9IjEuNjc0Ii8+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
|
|