iobroker.sql 2.1.8 → 3.0.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 +50 -37
- package/admin/i18n/de/translations.json +2 -2
- package/admin/i18n/en/translations.json +1 -1
- package/admin/i18n/pl/translations.json +1 -1
- package/admin/jsonConfig.json +1 -1
- package/admin/words.js +3 -3
- package/io-package.json +39 -37
- package/lib/aggregate.js +56 -24
- package/lib/mssql.js +40 -32
- package/lib/mysql.js +94 -88
- package/lib/postgresql.js +93 -85
- package/lib/sqlite.js +97 -89
- package/main.js +27 -42
- package/package.json +16 -15
package/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
The MIT License (MIT)
|
|
2
2
|
|
|
3
|
-
Copyright (c) 2015-
|
|
3
|
+
Copyright (c) 2015-2024 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
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
This adapter saves state history into SQL DB.
|
|
11
11
|
|
|
12
12
|
Supports PostgreSQL, mysql, Microsoft SQL Server and sqlite.
|
|
13
|
-
You can leave port 0 if default port is desired.
|
|
13
|
+
You can leave port 0 if the default port is desired.
|
|
14
14
|
|
|
15
15
|
**This adapter uses Sentry libraries to automatically report exceptions and code errors to the developers.** For more details and for information how to disable the error reporting see [Sentry-Plugin Documentation](https://github.com/ioBroker/plugin-sentry#plugin-sentry)! Sentry reporting is used starting with js-controller 3.0.
|
|
16
16
|
|
|
@@ -27,20 +27,20 @@ You can leave port 0 if default port is desired.
|
|
|
27
27
|
- **Encrypt**: Some DBs support encryption.
|
|
28
28
|
- **Round real to**: Number of digits after the comma.
|
|
29
29
|
- **Allow parallel requests**: Allow simultaneous SQL requests to DB.
|
|
30
|
-
- **Do not create database**: Activate this option if database already created (e.g. by administrator) and the ioBroker-user does not have enough rights to create a DB.
|
|
30
|
+
- **Do not create database**: Activate this option if a database already created (e.g. by administrator) and the ioBroker-user does not have enough rights to create a DB.
|
|
31
31
|
|
|
32
32
|
## Default Settings
|
|
33
33
|
- **Debounce Time** - Protection against unstable values to make sure that only stable values are logged when the value did not change in the defined amount of Milliseconds. ATTENTION: If values change more often then this setting effectively no value will be logged (because any value is unstable)
|
|
34
34
|
- **Blocktime** - Defines for how long after storing the last value no further value is stored. When the given time in Milliseconds is over then the next value that fulfills all other checks is logged.
|
|
35
|
-
- **Record changes only** - This function
|
|
35
|
+
- **Record changes only** - This function makes sure that only changed values are logged if they fulfill other checks (see below). Same values will not be logged.
|
|
36
36
|
- **still record the same values (seconds)** - When using "Record changes only" you can set a time interval in seconds here after which also unchanged values will be re-logged into the DB. You can detect the values re-logged by the adapter with the "from" field.
|
|
37
37
|
- **Minimum difference from last value** - When using "Record changes only" you can define the required minimum difference between the new value and the last value. If this is not reached the value is not recorded.
|
|
38
38
|
- **ignore 0 or null values (==0)** - You can define if 0 or null values should be ignored.
|
|
39
39
|
- **ignore values below zero (<0)** - You can define if values below zero should be ignored.
|
|
40
|
-
- **Disable charting optimized logging of skipped values** - By default the adapter tries to record the values for optimized charting. This can mean that additional values (that e.g. not fulfilled all checks above) are logged automatically. If this is not wanted, you can disable this feature.
|
|
40
|
+
- **Disable charting optimized logging of skipped values** - By default, the adapter tries to record the values for optimized charting. This can mean that additional values (that e.g. not fulfilled all checks above) are logged automatically. If this is not wanted, you can disable this feature.
|
|
41
41
|
- **Alias-ID** - You can define an alias for the ID. This is useful if you have changed a device and want to have continuous data logging. Please consider switching to real alias States in teh future!
|
|
42
42
|
- **Storage retention** - How many values in the past will be stored on disk. Data are deleted when the time is reached as soon as new data should be stored for a datapoint.
|
|
43
|
-
- **Maximal number of stored in RAM values** - Define how many
|
|
43
|
+
- **Maximal number of stored in RAM values** - Define how many numbers of values will be held in RAM before persisting them on disk. You can control how much I/O is done.
|
|
44
44
|
- **Enable enhanced debug logs for the datapoint** - If you want to see more detailed logs for this datapoint, you can enable this option. You still need to enable "debug" loglevel for these additional values to be visible! This helps in debugging issues or understanding why the adapter is logging a value (or not).
|
|
45
45
|
|
|
46
46
|
Most of these values can be pre-defined in the instance settings and are then pre-filled or used for the datapoint.
|
|
@@ -52,7 +52,7 @@ Use ```localhost\instance``` for the host and check TCP/IP connections enabled.
|
|
|
52
52
|
https://msdn.microsoft.com/en-us/library/bb909712(v=vs.90).aspx
|
|
53
53
|
|
|
54
54
|
### SQLite:
|
|
55
|
-
is "file"-DB and cannot manage too many events. If you have a big amount of data use the real DB, like PostgreSQL and co.
|
|
55
|
+
is "file"-DB and cannot manage too many events. If you have a big amount of data, use the real DB, like PostgreSQL and co.
|
|
56
56
|
|
|
57
57
|
SQLite DB must not be installed extra. It is just a file on disk, but to install it you require build tools on your system. For linux, just write:
|
|
58
58
|
|
|
@@ -88,18 +88,18 @@ GRANT ALL PRIVILEGES ON * . * TO 'iobroker'@'%';
|
|
|
88
88
|
FLUSH PRIVILEGES;
|
|
89
89
|
```
|
|
90
90
|
|
|
91
|
-
If required edit */etc/mysql/my.cnf* to set bind to IP-Address for remote
|
|
91
|
+
If required, edit */etc/mysql/my.cnf* to set bind to IP-Address for remote connecting.
|
|
92
92
|
|
|
93
93
|
**Warning**: iobroker user is "admin". If required give limited rights to iobroker user.
|
|
94
94
|
|
|
95
95
|
On the "windows" it can be easily installed via installer: https://dev.mysql.com/downloads/installer/.
|
|
96
96
|
|
|
97
|
-
Pay attention
|
|
97
|
+
Pay attention to the authentication method. The new encryption algorithm in MySQL 8.0 is not yet supported by `node.js` and you must select legacy authentication method.
|
|
98
98
|
|
|
99
99
|

|
|
100
100
|
|
|
101
101
|
## Structure of the DBs
|
|
102
|
-
|
|
102
|
+
The default Database name is `iobroker`, but it can be changed in the configuration.
|
|
103
103
|
### Sources
|
|
104
104
|
This table is a list of adapter's instances, that wrote the entries. (state.from)
|
|
105
105
|
|
|
@@ -162,7 +162,7 @@ Structure:
|
|
|
162
162
|
|
|
163
163
|
*Note:* MS-SQL uses BIT, and others use BOOLEAN. SQLite uses for ts INTEGER and all others BIGINT.
|
|
164
164
|
|
|
165
|
-
The user can define additional to type `number` the functionality of
|
|
165
|
+
The user can define additional to type `number` the functionality of `counters`. For this purpose, the following table is created:
|
|
166
166
|
| DB | Name in the query |
|
|
167
167
|
|------------|-------------------------|
|
|
168
168
|
| MS-SQL | iobroker.dbo.ts_counter |
|
|
@@ -181,7 +181,7 @@ Structure:
|
|
|
181
181
|
This table stores the values when the counter was exchanged and the value does not increase, but failed to zero or lower value.
|
|
182
182
|
|
|
183
183
|
### Strings
|
|
184
|
-
Values for states with type
|
|
184
|
+
Values for states with type `string`.
|
|
185
185
|
|
|
186
186
|
| DB | Name in query |
|
|
187
187
|
|------------|-------------------------|
|
|
@@ -204,7 +204,7 @@ Structure:
|
|
|
204
204
|
*Note:* MS-SQL uses BIT, and others use BOOLEAN. SQLite uses for ts INTEGER and all others BIGINT.
|
|
205
205
|
|
|
206
206
|
### Booleans
|
|
207
|
-
Values for states with type
|
|
207
|
+
Values for states with type `boolean`.
|
|
208
208
|
|
|
209
209
|
| DB | Name in query |
|
|
210
210
|
|------------|-------------------------|
|
|
@@ -268,7 +268,7 @@ Possible options:
|
|
|
268
268
|
- **start** - (optional) time in ms - *Date.now()*'
|
|
269
269
|
- **end** - (optional) time in ms - *Date.now()*', by default is (now + 5000 seconds)
|
|
270
270
|
- **step** - (optional) used in aggregate (max, min, average, total, ...) step in ms of intervals
|
|
271
|
-
- **count** - number of values if aggregate is 'onchange' or number of intervals if other aggregate method. Count will be ignored if step is set, else default is 500 if not set
|
|
271
|
+
- **count** - number of values if aggregate is 'onchange' or number of intervals if other aggregate method. Count will be ignored if a step is set, else default is 500 if not set
|
|
272
272
|
- **from** - if *from* field should be included in answer
|
|
273
273
|
- **ack** - if *ack* field should be included in answer
|
|
274
274
|
- **q** - if *q* field should be included in answer
|
|
@@ -276,7 +276,7 @@ Possible options:
|
|
|
276
276
|
- **limit** - do not return more entries than limit
|
|
277
277
|
- **round** - round result to number of digits after decimal point
|
|
278
278
|
- **ignoreNull** - if null values should be included (false), replaced by last not null value (true) or replaced with 0 (0)
|
|
279
|
-
- **removeBorderValues** - By default additional border values are returned to optimize charting. Set this option to true if this is not wanted (e.g. for script data processing)
|
|
279
|
+
- **removeBorderValues** - By default, additional border values are returned to optimize charting. Set this option to true if this is not wanted (e.g. for script data processing)
|
|
280
280
|
- **returnNewestEntries** - The returned data are always sorted by timestamp ascending. When using aggregate "none" and also providing "count" or "limit" this means that normally the oldest entries are returned (unless no start data is provided). Set this option to true to get the newest entries instead.
|
|
281
281
|
- **aggregate** - aggregate method (Default: 'average'):
|
|
282
282
|
- *minmax* - used special algorithm. Splice the whole time range in small intervals and find for every interval max, min, start and end values.
|
|
@@ -285,23 +285,23 @@ Possible options:
|
|
|
285
285
|
- *average* - Same as max, but take average value.
|
|
286
286
|
- *total* - Same as max, but calculate total value.
|
|
287
287
|
- *count* - Same as max, but calculate number of values (nulls will be calculated).
|
|
288
|
-
- *percentile* - Calculate n-th percentile (n is given in options.percentile or defaults to 50 if not provided).
|
|
288
|
+
- *percentile* - Calculate n-th percentile (n is given in `options.percentile` or defaults to 50 if not provided).
|
|
289
289
|
- *quantile* - Calculate n quantile (n is given in options.quantile or defaults to 0.5 if not provided).
|
|
290
290
|
- *integral* - Calculate integral (additional parameters see below).
|
|
291
|
-
- *none* - No aggregation at all. Only raw values in given period.
|
|
291
|
+
- *none* - No aggregation at all. Only raw values in a given period.
|
|
292
292
|
- **percentile** - (optional) when using aggregate method "percentile" defines the percentile level (0..100)(defaults to 50)
|
|
293
293
|
- **quantile** - (optional) when using aggregate method "quantile" defines the quantile level (0..1)(defaults to 0.5)
|
|
294
|
-
- **integralUnit** - (optional) when using aggregate method "integral" defines the unit in seconds (
|
|
294
|
+
- **integralUnit** - (optional) when using aggregate method "integral" defines the unit in seconds (default to 60s). e.g. to get integral in hours for Wh or such, set to 3600.
|
|
295
295
|
- **integralInterpolation** - (optional) when using aggregate method "integral" defines the interpolation method (defaults to "none").
|
|
296
296
|
- *linear* - linear interpolation
|
|
297
297
|
- *none* - no/stepwise interpolation
|
|
298
298
|
|
|
299
|
-
The first and last points will be calculated for aggregations, except aggregation
|
|
300
|
-
If you manually request some aggregation you should ignore first and last values, because they are calculated from values outside of period.
|
|
299
|
+
The first and last points will be calculated for aggregations, except aggregation `none`.
|
|
300
|
+
If you manually request some aggregation, you should ignore first and last values, because they are calculated from values outside of a period.
|
|
301
301
|
|
|
302
302
|
|
|
303
303
|
## Get counter
|
|
304
|
-
User can ask the value of some counter (type=number, counter=true) for specific period.
|
|
304
|
+
User can ask the value of some counter (type=number, counter=true) for a specific period.
|
|
305
305
|
|
|
306
306
|
```
|
|
307
307
|
var now = Date.now();
|
|
@@ -316,7 +316,7 @@ sendTo('sql.0', 'getCounter', {
|
|
|
316
316
|
console.log(`In last 30 days the consumption was ${result.result} kWh`);
|
|
317
317
|
});
|
|
318
318
|
```
|
|
319
|
-
If the counter
|
|
319
|
+
If the counter-device is replaced, it will be calculated too.
|
|
320
320
|
|
|
321
321
|
## Custom queries
|
|
322
322
|
The user can execute custom queries on tables from javascript adapter:
|
|
@@ -364,9 +364,9 @@ Example if your database is called 'iobroker':
|
|
|
364
364
|
If you want to write other data into the InfluxDB/SQL you can use the build in system function **storeState**.
|
|
365
365
|
This function can also be used to convert data from other History adapters like History or SQL.
|
|
366
366
|
|
|
367
|
-
A successful response
|
|
367
|
+
A successful response does not mean that the data is really written out to the disk. It just means that they were processed.
|
|
368
368
|
|
|
369
|
-
The given ids are not checked against the ioBroker database and do not need to be set up or enabled there. If own IDs are used without settings then the "rules" parameter is not supported and will result in an error. The default "Maximal number of stored in RAM values" is used for such IDs.
|
|
369
|
+
The given ids are not checked against the ioBroker database and do not need to be set up or enabled there. If own IDs are used without settings, then the "rules" parameter is not supported and will result in an error. The default "Maximal number of stored in RAM values" is used for such IDs.
|
|
370
370
|
|
|
371
371
|
The Message can have one of the following three formats:
|
|
372
372
|
* one ID and one state object
|
|
@@ -399,12 +399,12 @@ sendTo('history.0', 'storeState', [
|
|
|
399
399
|
], result => console.log('added'));
|
|
400
400
|
```
|
|
401
401
|
|
|
402
|
-
Additionally, you can add attribute `rules: true` in message to activate all rules, like `counter`, `changesOnly`, `de-bounce` and so on.
|
|
402
|
+
Additionally, you can add attribute `rules: true` in a message to activate all rules, like `counter`, `changesOnly`, `de-bounce` and so on.
|
|
403
403
|
|
|
404
|
-
In case of errors an array with all single error messages is returned and also a successCount to see how many entries were stored successfully.
|
|
404
|
+
In case of errors, an array with all single error messages is returned and also a successCount to see how many entries were stored successfully.
|
|
405
405
|
|
|
406
406
|
## delete state
|
|
407
|
-
If you want to delete entry from the Database you can use the build in system function **delete**:
|
|
407
|
+
If you want to delete entry from the Database, you can use the build in system function **delete**:
|
|
408
408
|
|
|
409
409
|
```
|
|
410
410
|
sendTo('sql.0', 'delete', [
|
|
@@ -413,7 +413,7 @@ sendTo('sql.0', 'delete', [
|
|
|
413
413
|
], result => console.log('deleted'));
|
|
414
414
|
```
|
|
415
415
|
|
|
416
|
-
To delete ALL history data for some data point execute:
|
|
416
|
+
To delete ALL history data for some data point, execute:
|
|
417
417
|
|
|
418
418
|
```
|
|
419
419
|
sendTo('sql.0', 'deleteAll', [
|
|
@@ -436,7 +436,7 @@ Time could be ms since epoch or ans string, that could be converted by javascrip
|
|
|
436
436
|
Values will be deleted including defined limits. `ts >= start AND ts <= end`
|
|
437
437
|
|
|
438
438
|
## change state
|
|
439
|
-
If you want to change entry's value, quality or acknowledge flag in the database you can use the build in system function **update**:
|
|
439
|
+
If you want to change entry's value, quality or acknowledge flag in the database, you can use the build in system function **update**:
|
|
440
440
|
|
|
441
441
|
```
|
|
442
442
|
sendTo('sql.0', 'update', [
|
|
@@ -445,7 +445,7 @@ sendTo('sql.0', 'update', [
|
|
|
445
445
|
], result => console.log('deleted'));
|
|
446
446
|
```
|
|
447
447
|
|
|
448
|
-
`ts` is mandatory. At least one other
|
|
448
|
+
`ts` is mandatory. At least one other flag must be included in a state object.
|
|
449
449
|
|
|
450
450
|
Be careful with `counters`. The `counters` in DB will not be reset, and you must handle it yourself.
|
|
451
451
|
|
|
@@ -453,7 +453,7 @@ Be careful with `counters`. The `counters` in DB will not be reset, and you must
|
|
|
453
453
|
The adapter supports enabling and disabling of history logging via JavaScript and also retrieving the list of enabled data points with their settings.
|
|
454
454
|
|
|
455
455
|
### enable
|
|
456
|
-
The message requires
|
|
456
|
+
The message requires having the "id" of the data point. Additionally, optional "options" to define the data point specific settings:
|
|
457
457
|
|
|
458
458
|
```
|
|
459
459
|
sendTo('sql.0', 'enableHistory', {
|
|
@@ -477,7 +477,7 @@ sendTo('sql.0', 'enableHistory', {
|
|
|
477
477
|
```
|
|
478
478
|
|
|
479
479
|
### disable
|
|
480
|
-
The message requires
|
|
480
|
+
The message requires having the "id" of the data point.
|
|
481
481
|
|
|
482
482
|
```
|
|
483
483
|
sendTo('sql.0', 'disableHistory', {
|
|
@@ -516,10 +516,23 @@ sendTo('sql.0', 'getEnabledDPs', {}, function (result) {
|
|
|
516
516
|
|
|
517
517
|
<!--
|
|
518
518
|
Placeholder for the next version (at the beginning of the line):
|
|
519
|
-
###
|
|
519
|
+
### **WORK IN PROGRESS**
|
|
520
520
|
-->
|
|
521
521
|
|
|
522
522
|
## Changelog
|
|
523
|
+
### 3.0.1 (2024-06-13)
|
|
524
|
+
* (foxriver76) upgraded dependencies
|
|
525
|
+
|
|
526
|
+
### 3.0.0 (2023-09-13)
|
|
527
|
+
* IMPORTANT: Node.js 16.x is now needed at a minimum!
|
|
528
|
+
* (bluefox) Allowed setting port 0 as default
|
|
529
|
+
* (bluefox) Checked if a string is written into the number table
|
|
530
|
+
* (bluefox) Added support for `count` aggregate type on getHistory
|
|
531
|
+
|
|
532
|
+
### 2.2.0 (2022-09-19)
|
|
533
|
+
* IMPORTANT: Node.js 14.x is now needed at a minimum!
|
|
534
|
+
* (Apollon77) Fix potential crash cases with upcoming js-controller versions
|
|
535
|
+
|
|
523
536
|
### 2.1.8 (2022-08-13)
|
|
524
537
|
* (riversource/Apollon77) Optimize getHistory query by using "UNION ALL"
|
|
525
538
|
* (Apollon77) Fix crash cases reported by Sentry
|
|
@@ -528,14 +541,14 @@ sendTo('sql.0', 'getEnabledDPs', {}, function (result) {
|
|
|
528
541
|
* (Apollon77) Fix crash cases reported by Sentry
|
|
529
542
|
|
|
530
543
|
### 2.1.6 (2022-06-27)
|
|
531
|
-
* (Apollon77)
|
|
544
|
+
* (Apollon77) Allowed removing a configuration value for "round" in config again
|
|
532
545
|
|
|
533
546
|
### 2.1.5 (2022-06-27)
|
|
534
547
|
* (Apollon77) When no count is provided for aggregate "none" or "onchange" then the limit (default 2000) is used as count to define the number of data to return.
|
|
535
548
|
* (Apollon77) Fix the initialization of types and IDs for some cases.
|
|
536
549
|
|
|
537
550
|
### 2.1.3 (2022-06-12)
|
|
538
|
-
* (Apollon77) Make sure debug log is active according to the settings
|
|
551
|
+
* (Apollon77) Make sure the debug log is active, according to the settings
|
|
539
552
|
|
|
540
553
|
### 2.1.2 (2022-06-08)
|
|
541
554
|
* (Apollon77) Huge performance optimizations for GetHistory calls
|
|
@@ -549,7 +562,7 @@ sendTo('sql.0', 'getEnabledDPs', {}, function (result) {
|
|
|
549
562
|
* (Apollon77) Work around an issue in used Pooling library that potentially gave out too many connections
|
|
550
563
|
* (Apollon77) Optimize retention check to better spread the first checks over time
|
|
551
564
|
* (Apollon77) Default to not use datapoint buffering as in 1.x when set to 0
|
|
552
|
-
* (Apollon77) Make sure disabling "Log changes only" also really
|
|
565
|
+
* (Apollon77) Make sure disabling "Log changes only" also really does not log the changes anymore
|
|
553
566
|
* (Apollon77) Allow storeState and GetHistory also to be called for "unknown ids"
|
|
554
567
|
* (Apollon77) Adjust the fallback logic for type detection to use the type of the state value to log as last fallback
|
|
555
568
|
* (Apollon77) Fix storing booleans on MSSQL
|
|
@@ -561,7 +574,7 @@ sendTo('sql.0', 'getEnabledDPs', {}, function (result) {
|
|
|
561
574
|
### 2.0.0 (2022-05-11)
|
|
562
575
|
* (Apollon77) Breaking: Configuration is only working in the new Admin 5 UI!
|
|
563
576
|
* (Apollon77) Breaking! Did bigger adjustments to the recording logic. Debounce is refined and blockTime is added to differentiate between the two checks
|
|
564
|
-
* (Apollon77) Breaking! GetHistory requests now need to deliver the ts in milliseconds! Make sure to use up
|
|
577
|
+
* (Apollon77) Breaking! GetHistory requests now need to deliver the ts in milliseconds! Make sure to use up-to-date scripts and Charting UIs
|
|
565
578
|
* (Apollon77) Add RAM buffering and mass inserts for logging
|
|
566
579
|
* (Apollon77) New setting added to disable the "logging of additional values for charting optimization" - then only the expected data are logged
|
|
567
580
|
* (Apollon77) Add flag returnNewestEntries for GetHistory to determine which records to return when more entries as "count" are existing for aggregate "none"
|
|
@@ -846,7 +859,7 @@ sendTo('sql.0', 'getEnabledDPs', {}, function (result) {
|
|
|
846
859
|
|
|
847
860
|
The MIT License (MIT)
|
|
848
861
|
|
|
849
|
-
Copyright (c) 2015-
|
|
862
|
+
Copyright (c) 2015-2024 bluefox <dogafox@gmail.com>, Apollon77
|
|
850
863
|
|
|
851
864
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
852
865
|
of this software and associated documentation files (the "Software"), to deal
|
|
@@ -52,10 +52,10 @@
|
|
|
52
52
|
"Start or enable adapter first": "Adapter muss zuerst aktiviert werden",
|
|
53
53
|
"Storage retention": "Aufbewahrungsdauer",
|
|
54
54
|
"Store as": "Speichern als",
|
|
55
|
-
"String": "
|
|
55
|
+
"String": "Text",
|
|
56
56
|
"Test connection": "Verbindung testen",
|
|
57
57
|
"User": "Benutzer",
|
|
58
|
-
"Write NULL values on start/stop boundaries": "Schreibe NULL-Werte an Start-/
|
|
58
|
+
"Write NULL values on start/stop boundaries": "Schreibe NULL-Werte an Start-/Stopp-Grenzen",
|
|
59
59
|
"aliasId": "Alias-ID",
|
|
60
60
|
"blockTime": "Alle neuen Werte für X ms nach dem letzten protokollierten Wert ignorieren",
|
|
61
61
|
"debounce": "Änderungen ignorieren, bis der Wert für X Millisekunden unverändert bleibt",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"Default settings": "Default settings",
|
|
30
30
|
"Disable charting optimized logging of skipped values": "Disable charting optimized logging of skipped values",
|
|
31
31
|
"Do not create database (already created)": "Do not create database (already created)",
|
|
32
|
-
"Enable enhanced debug logs for the datapoint": "Enable enhanced debug logs for the
|
|
32
|
+
"Enable enhanced debug logs for the datapoint": "Enable enhanced debug logs for the state",
|
|
33
33
|
"Encrypt": "Encrypt Database connection",
|
|
34
34
|
"Enter a number or leave the field empty": "Enter a number or leave the field empty to not limit the recorded values",
|
|
35
35
|
"File for sqlite": "File for sqlite",
|
package/admin/jsonConfig.json
CHANGED
package/admin/words.js
CHANGED
|
@@ -32,7 +32,7 @@ systemDictionary = {
|
|
|
32
32
|
"Default settings": { "en": "Default settings", "de": "Standardeinstellungen", "ru": "Настройки по умолчанию для состояний", "pt": "Configurações padrão", "nl": "Standaard instellingen", "fr": "Paramètres par défaut", "it": "Impostazioni predefinite", "es": "Configuración por defecto", "pl": "Ustawienia domyślne", "zh-cn": "默认设置"},
|
|
33
33
|
"Disable charting optimized logging of skipped values": {"en": "Disable charting optimized logging of skipped values", "de": "Optimierte Protokollierung übersprungener Werte für Diagramme deaktivieren", "ru": "Отключить оптимизированную регистрацию пропущенных значений для построения диаграмм", "pt": "Desativar o registro otimizado de gráficos de valores ignorados", "nl": "Geoptimaliseerde registratie van overgeslagen waarden in grafieken uitschakelen", "fr": "Désactiver la journalisation optimisée des graphiques des valeurs ignorées", "it": "Disabilita la registrazione ottimizzata per la creazione di grafici dei valori ignorati", "es": "Deshabilitar el registro optimizado de gráficos de valores omitidos", "pl": "Wyłącz zoptymalizowane rejestrowanie pominiętych wartości na wykresach", "zh-cn": "禁用跳过值的图表优化记录"},
|
|
34
34
|
"Do not create database (already created)": { "en": "Do not create database (already created)", "de": "Datenbank nicht erstellen (bereits erstellt)", "ru": "Не создавать базу данных (уже создана)", "pt": "Não crie banco de dados (já criado)", "nl": "Maak geen database (al aangemaakt)", "fr": "Ne pas créer de base de données (déjà créée)", "it": "Non creare database (già creato)", "es": "No crear base de datos (ya creada)", "pl": "Nie twórz bazy danych (już utworzona)", "zh-cn": "不创建数据库(已创建)"},
|
|
35
|
-
"Enable enhanced debug logs for the datapoint": {"en": "Enable enhanced debug logs for the
|
|
35
|
+
"Enable enhanced debug logs for the datapoint": {"en": "Enable enhanced debug logs for the state", "de": "Erweiterte Debug-Protokolle für den Datenpunkt aktivieren", "ru": "Включить расширенные журналы отладки для точки данных", "pt": "Habilitar logs de depuração aprimorados para o ponto de dados", "nl": "Verbeterde foutopsporingslogboeken voor het datapunt inschakelen", "fr": "Activer les journaux de débogage améliorés pour le point de données", "it": "Abilita i log di debug avanzati per il punto dati", "es": "Habilitar registros de depuración mejorados para el punto de datos", "pl": "Włącz rozszerzone dzienniki debugowania dla punktu danych", "zh-cn": "为数据点启用增强的调试日志"},
|
|
36
36
|
"Encrypt": { "en": "Encrypt Database connection", "de": "Datenbankverbindung verschlüsseln", "ru": "Зашифровать соединение с базой данных", "pt": "Criptografar conexão de banco de dados", "nl": "Databaseverbinding versleutelen", "fr": "Crypter la connexion à la base de données", "it": "Crittografa la connessione al database", "es": "Cifrar la conexión de la base de datos", "pl": "Szyfruj połączenie z bazą danych", "zh-cn": "加密数据库连接"},
|
|
37
37
|
"Enter a number or leave the field empty": { "en": "Enter a number or leave the field empty to not limit the recorded values", "de": "Eine Zahl angeben oder das Feld leer lassen, um die aufgezeichneten Werte nicht einzuschränken", "ru": "Введите число или оставьте поле пустым, чтобы не ограничивать записываемые значения", "pt": "Digite um número ou deixe o campo vazio para não limitar os valores registrados", "nl": "Voer een getal in of laat het veld leeg om de geregistreerde waarden niet te beperken", "fr": "Entrez un nombre ou laissez le champ vide pour ne pas limiter les valeurs enregistrées", "it": "Immettere un numero o lasciare il campo vuoto per non limitare i valori registrati", "es": "Introduzca un número o deje el campo vacío para no limitar los valores registrados", "pl": "Wpisz liczbę lub pozostaw puste pole, aby nie ograniczać rejestrowanych wartości", "zh-cn": "输入一个数字或将该字段留空以不限制记录的值"},
|
|
38
38
|
"File for sqlite": { "en": "File for sqlite", "de": "Datei für sqlite", "ru": "Файл для sqlite", "pt": "Arquivo para sqlite", "nl": "Bestand voor sqlite", "fr": "Fichier pour sqlite", "it": "File per sqlite", "es": "Archivo para sqlite", "pl": "Plik dla sqlite", "zh-cn": "申请sqlite"},
|
|
@@ -55,10 +55,10 @@ systemDictionary = {
|
|
|
55
55
|
"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": "Démarrer ou activer l'adaptateur en premier", "it": "Inizia o abilita prima l'adattatore", "es": "Comience o habilite el adaptador primero", "pl": "Najpierw włącz lub włącz adapter", "zh-cn": "首先启动或启用适配器"},
|
|
56
56
|
"Storage retention": { "en": "Storage retention", "de": "Aufbewahrungsdauer", "ru": "Сохранять в файле", "pt": "Retenção de armazenamento", "nl": "Opslag retentie", "fr": "Conservation du stockage", "it": "Conservazione di memoria", "es": "Retención de almacenamiento", "pl": "Przechowywanie danych", "zh-cn": "存储保留"},
|
|
57
57
|
"Store as": { "en": "Store as", "de": "Speichern als", "ru": "Сохранить как", "pt": "Armazenar como", "nl": "Opslaan als", "fr": "Magasin comme", "it": "Conservare come", "es": "Przechowuj jako", "pl": "Przechowuj jako", "zh-cn": "存储为"},
|
|
58
|
-
"String": { "en": "String", "de": "
|
|
58
|
+
"String": { "en": "String", "de": "Text", "ru": "строка", "pt": "Corda", "nl": "Draad", "fr": "Chaîne", "it": "Stringa", "es": "Strunowy", "pl": "Strunowy", "zh-cn": "细绳"},
|
|
59
59
|
"Test connection": { "en": "Test connection", "de": "Verbindung testen", "ru": "Проверить соединение", "pt": "Conexão de teste", "nl": "Test verbinding", "fr": "Test de connexion", "it": "Connessione di prova", "es": "Conexión de prueba", "pl": "Testuj połączenie", "zh-cn": "测试连接"},
|
|
60
60
|
"User": { "en": "User", "de": "Benutzer", "ru": "Пользователь", "pt": "Do utilizador", "nl": "Gebruiker", "fr": "Utilisateur", "it": "Utente", "es": "Usuario", "pl": "Użytkownik", "zh-cn": "用户"},
|
|
61
|
-
"Write NULL values on start/stop boundaries": { "en": "Write NULL values on start/stop boundaries", "de": "Schreibe NULL-Werte an Start-/
|
|
61
|
+
"Write NULL values on start/stop boundaries": { "en": "Write NULL values on start/stop boundaries", "de": "Schreibe NULL-Werte an Start-/Stopp-Grenzen", "ru": "Запись NULL для отметки старта/остановки экземпляра", "pt": "Escreva valores NULL nos limites de início / parada", "nl": "Schrijf NULL-waarden op start / stop-grenzen", "fr": "Écrire des valeurs NULL sur les limites de démarrage / arrêt", "it": "Scrivi valori NULL sui limiti di avvio / arresto", "es": "Escribe valores NULL en los límites de inicio / finalización", "pl": "Napisz wartości NULL na granicach start / stop", "zh-cn": "在开始/停止边界上写入NULL值"},
|
|
62
62
|
"aliasId": { "en": "Alias-ID", "de": "Alias-ID", "ru": "Псевдоним ИД", "pt": "Alias-ID", "nl": "Alias-ID", "fr": "Alias-ID", "it": "Alias-ID", "es": "Alias-ID", "pl": "Alias-ID", "zh-cn": "别名 ID"},
|
|
63
63
|
"blockTime": { "en": "Ignore all new values for X ms after last logged value", "de": "Alle neuen Werte für X ms nach dem letzten protokollierten Wert ignorieren", "ru": "Игнорировать все новые значения для X мс после последнего зарегистрированного значения", "pt": "Ignore todos os novos valores por X ms após o último valor registrado", "nl": "Negeer alle nieuwe waarden voor X ms na de laatste gelogde waarde", "fr": "Ignorer toutes les nouvelles valeurs pendant X ms après la dernière valeur enregistrée", "it": "Ignora tutti i nuovi valori per X ms dopo l'ultimo valore registrato", "es": "Ignorar todos los valores nuevos para X ms después del último valor registrado", "pl": "Ignoruj wszystkie nowe wartości przez X ms po ostatniej zarejestrowanej wartości", "zh-cn": "在上次记录值之后忽略 X 毫秒的所有新值"},
|
|
64
64
|
"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": "Минимальный интервал(ms)", "pt": "Intervalo de desvio (ms)", "nl": "De-bounce interval (ms)", "fr": "Intervalle de rebond (ms)", "it": "Intervallo di rimbalzo (ms)", "es": "Intervalo de rebote (ms)", "pl": "Interwał odbicia (ms)", "zh-cn": "忽略更改,直到值保持不变为X毫秒<br>(去抖时间)"},
|
package/io-package.json
CHANGED
|
@@ -26,8 +26,46 @@
|
|
|
26
26
|
"pl": "Rejestrowanie stanów w SQL DB",
|
|
27
27
|
"zh-cn": "将状态记录到SQL DB"
|
|
28
28
|
},
|
|
29
|
-
"version": "
|
|
29
|
+
"version": "3.0.1",
|
|
30
30
|
"news": {
|
|
31
|
+
"3.0.1": {
|
|
32
|
+
"en": "(foxriver76) upgraded dependencies",
|
|
33
|
+
"de": "(foxriver76) verbesserte abhängigkeiten",
|
|
34
|
+
"ru": "(foxriver76) повышенные зависимости",
|
|
35
|
+
"pt": "(foxriver76) dependências atualizadas",
|
|
36
|
+
"nl": "(foxriver76) verbeterde afhankelijkheden",
|
|
37
|
+
"fr": "(foxriver76) dépendances améliorées",
|
|
38
|
+
"it": "(foxriver76) dipendenze aggiornate",
|
|
39
|
+
"es": "(foxriver76)",
|
|
40
|
+
"pl": "(foxriver76) zmodernizowane zależności",
|
|
41
|
+
"uk": "(foxriver76) оновлені залежності",
|
|
42
|
+
"zh-cn": "(foxriver76) 升级的依赖性"
|
|
43
|
+
},
|
|
44
|
+
"3.0.0": {
|
|
45
|
+
"en": "IMPORTANT: Node.js 16.x is now needed at a minimum!\nAllowed setting port 0 as default\nChecked if a string is written into the number table",
|
|
46
|
+
"de": "WICHTIG: Node.js 16.x wird jetzt auf ein Minimum benötigt!\nErlaubte Einstellung Port 0 als Standard\nGeprüft, ob ein String in die Nummerntabelle geschrieben wird",
|
|
47
|
+
"ru": "ВАЖНО: Node.js 16.x теперь нужен минимум!\nДопустимый порт установки 0 как по умолчанию\nПроверено, если строка написана в таблице номера",
|
|
48
|
+
"pt": "IMPORTANTE: Node.js 16.x é agora necessário no mínimo!\nConfiguração permitida da porta 0 como padrão\nVerificado se uma string é escrita na tabela de números",
|
|
49
|
+
"nl": "De 16.x is nu nodig op een minimum!\nVertaling:\nControleer of er een touw in de tafel is geschreven",
|
|
50
|
+
"fr": "IMPORTANT: Node.js 16.x est maintenant nécessaire au minimum!\nRéglage autorisé port 0 par défaut\nVérifié si une chaîne est écrite dans la table numéro",
|
|
51
|
+
"it": "IMPORTANTE: Node.js 16.x è ora necessario al minimo!\nImpostare la porta 0 come predefinito\nControllato se una stringa è scritta nella tabella numerica",
|
|
52
|
+
"es": "IMPORTANTE: Node.js 16.x ahora es necesario como mínimo!\nPuerto de configuración 0 como predeterminado\nRevisado si una cadena está escrita en la tabla número",
|
|
53
|
+
"pl": "IMPORTANT: Node.js 16.x jest obecnie potrzebny przy minimalnej cenie!\nAllowed Port 0 jako domyślny\nUwaga, czy struna jest zapisywana w tabeli liczbowej",
|
|
54
|
+
"uk": "ВАЖЛИВО: Node.js 16.x тепер потрібен мінімум!\nУсього налаштування порту 0 як за замовчуванням\nПеревірити, якщо рядок записано в номер таблиці",
|
|
55
|
+
"zh-cn": "IMPORTANT: Nodejs 16x现在至少需要!\n允许将港口建为零\n如果在表格编号上写一包,则标示"
|
|
56
|
+
},
|
|
57
|
+
"2.2.0": {
|
|
58
|
+
"en": "IMPORTANT: Node.js 14.x is now needed at minimum!\nFix potential crash cases with upcoming js-controller versions",
|
|
59
|
+
"de": "WICHTIG: Node.js 14.x wird jetzt mindestens benötigt!\nBeheben Sie mögliche Crash-Fälle mit anstehenden js-Controller-Versionen",
|
|
60
|
+
"ru": "ВАЖНО: Node.js 14.x теперь нужен минимум!\nИсправление потенциальных кейсов с предстоящими версиями js-controller",
|
|
61
|
+
"pt": "IMPORTANTE: Node.js 14.x é agora necessário no mínimo!\nCorrigir casos potenciais de acidente com versões js-controller",
|
|
62
|
+
"nl": "Node is 14.x is nu nodig op minimum!\nVertaling:",
|
|
63
|
+
"fr": "IMPORTANT: Node.js 14.x est maintenant nécessaire au minimum!\nRéparer les cas de crash potentiels avec les versions de js-controller à venir",
|
|
64
|
+
"it": "IMPORTANTE: Node.js 14.x è ora necessario al minimo!\nRisolvere potenziali casi di crash con le prossime versioni js-controller",
|
|
65
|
+
"es": "IMPORTANTE: Node.js 14.x ahora es necesario al mínimo!\nFijar posibles casos de choque con las próximas versiones js-controller",
|
|
66
|
+
"pl": "IMPORTANT: Nodejs 14.x jest obecnie potrzebny na minimum!\nFix ma problemy z nadchodzącymi wersjami js-controllerowymi",
|
|
67
|
+
"zh-cn": "IMPORTANT: Nodejs 14x现在至少需要!\n九件潜在的事故,即将出版的丛书控制字"
|
|
68
|
+
},
|
|
31
69
|
"2.1.8": {
|
|
32
70
|
"en": "Optimize getHistory query by using \"UNION ALL\"\nFix crash cases reported by Sentry",
|
|
33
71
|
"de": "Optimieren Sie Geschichte Anfrage mit \"UNION ALL\"\nReparieren Crashfälle gemeldet von Sentry",
|
|
@@ -75,42 +113,6 @@
|
|
|
75
113
|
"es": "Cuando no se proporciona ningún recuento para agregado ninguno o cambio entonces el límite (por defecto 2000) se utiliza como recuento para definir el número de datos para regresar.\nArreglar la inicialización de tipos e identificaciones para algunos casos.",
|
|
76
114
|
"pl": "Jeśli nie jest liczona dla agregacji ani zmian, to limit (default 2000) jest używany jako określenie liczby danych do powrotu.\nW niektórych przypadkach inicjacja typów i ID.",
|
|
77
115
|
"zh-cn": "当时没有对总数据或换算进行计算(2000年12月)用于确定返回的数据数量。.\n确定某些案例的类型和研发。."
|
|
78
|
-
},
|
|
79
|
-
"2.1.3": {
|
|
80
|
-
"en": "Make sure debug log is active according to the settings",
|
|
81
|
-
"de": "Stellen Sie sicher, dass das Debug-Log gemäß den Einstellungen aktiv ist",
|
|
82
|
-
"ru": "Убедитесь, что журнал debug активен в соответствии с настройками",
|
|
83
|
-
"pt": "Certifique-se de que o log de depuração está ativo de acordo com as configurações",
|
|
84
|
-
"nl": "Zorg ervoor dat het logboek actief is volgens de instellingen",
|
|
85
|
-
"fr": "Assurez-vous que le journal debug est actif selon les paramètres",
|
|
86
|
-
"it": "Assicurarsi che il registro di debug sia attivo in base alle impostazioni",
|
|
87
|
-
"es": "Asegúrese de que el registro de depuración está activo según la configuración",
|
|
88
|
-
"pl": "Umożliwia to, że log debug jest aktywny zgodnie z ustawieniami",
|
|
89
|
-
"zh-cn": "B. 根据环境,确保有色色逻辑积极。"
|
|
90
|
-
},
|
|
91
|
-
"2.1.2": {
|
|
92
|
-
"en": "Huge performance optimizations for GetHistory calls",
|
|
93
|
-
"de": "Riesige Leistungsoptimierungen für GetHistory-Anrufe",
|
|
94
|
-
"ru": "Огромная оптимизация производительности для звонков GetHistory",
|
|
95
|
-
"pt": "Otimizações de desempenho enormes para chamadas GetHistory",
|
|
96
|
-
"nl": "Grote prestaties voor GetHistory",
|
|
97
|
-
"fr": "Des optimisations de performance énormes pour les appels GetHistory",
|
|
98
|
-
"it": "Ottimizzazione delle prestazioni enormi per le chiamate GetHistory",
|
|
99
|
-
"es": "Amplias optimizaciones de rendimiento para llamadas GetHistory",
|
|
100
|
-
"pl": "Optymalizacja wyników Huge'a dla GetHistory'ego nawołuje się do optymalizacji wydajności",
|
|
101
|
-
"zh-cn": "GetHistory呼声的优越性"
|
|
102
|
-
},
|
|
103
|
-
"2.1.1": {
|
|
104
|
-
"en": "Fix crash cases reported by Sentry",
|
|
105
|
-
"de": "Von Sentry gemeldete Absturzfälle beheben",
|
|
106
|
-
"ru": "Исправить случаи сбоев, о которых сообщил Sentry",
|
|
107
|
-
"pt": "Corrigir casos de travamento relatados pelo Sentinela",
|
|
108
|
-
"nl": "Herstel crashgevallen gemeld door Sentry",
|
|
109
|
-
"fr": "Correction des cas de plantage signalés par Sentry",
|
|
110
|
-
"it": "Risolvi i casi di crash segnalati da Sentry",
|
|
111
|
-
"es": "Solucionar casos de fallas informados por Sentry",
|
|
112
|
-
"pl": "Napraw przypadki awarii zgłoszone przez Sentry",
|
|
113
|
-
"zh-cn": "修复 Sentry 报告的崩溃案例"
|
|
114
116
|
}
|
|
115
117
|
},
|
|
116
118
|
"mode": "daemon",
|