iobroker.digitalstrom 2.3.0 → 3.0.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/LICENSE +2 -1
- package/README.md +806 -35
- package/admin/assets/index.js +682 -0
- package/admin/index.html +45 -0
- package/build/lib/activityCounter.js +82 -0
- package/build/lib/activityCounter.js.map +1 -0
- package/build/lib/configUtils.js +125 -0
- package/build/lib/configUtils.js.map +1 -0
- package/build/lib/constants.js +1285 -0
- package/build/lib/constants.js.map +1 -0
- package/build/lib/dss.js +877 -0
- package/build/lib/dss.js.map +1 -0
- package/build/lib/dssQueue.js +517 -0
- package/build/lib/dssQueue.js.map +1 -0
- package/build/lib/dssSmartHome.js +769 -0
- package/build/lib/dssSmartHome.js.map +1 -0
- package/build/lib/dssSmartHomeSync.js +601 -0
- package/build/lib/dssSmartHomeSync.js.map +1 -0
- package/build/lib/dssStructure.js +3390 -0
- package/build/lib/dssStructure.js.map +1 -0
- package/build/lib/websocket.js +386 -0
- package/build/lib/websocket.js.map +1 -0
- package/build/main.js +2203 -0
- package/build/main.js.map +1 -0
- package/io-package.json +262 -266
- package/package.json +67 -36
- package/admin/admin.d.ts +0 -1
- package/admin/index_m.html +0 -201
- package/admin/style.css +0 -10
- package/admin/words.js +0 -20
- package/img/dss-apartment.png +0 -0
- package/img/dss-devices.png +0 -0
- package/lib/adapter-config.d.ts +0 -16
- package/lib/constants.js +0 -1202
- package/lib/dss.js +0 -193
- package/lib/dssQueue.js +0 -268
- package/lib/dssStructure.js +0 -1662
- package/lib/tools.js +0 -91
- package/main.js +0 -713
package/admin/index.html
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
6
|
+
<title>digitalSTROM</title>
|
|
7
|
+
<script>
|
|
8
|
+
// @iobroker/socket-client does not bring socket.io along, it expects the page to
|
|
9
|
+
// provide it as a global. Admin serves the library at /lib/js/socket.io.js, and
|
|
10
|
+
// the config page lives at /adapter/digitalstrom/, hence the two levels up.
|
|
11
|
+
// Without this the dialog only says "Socket library could not be loaded!".
|
|
12
|
+
(function () {
|
|
13
|
+
var pending = null;
|
|
14
|
+
var loaded = false;
|
|
15
|
+
|
|
16
|
+
// socket-client calls this to learn when the library is there instead of polling
|
|
17
|
+
window.registerSocketOnLoad = function (callback) {
|
|
18
|
+
if (loaded) {
|
|
19
|
+
callback();
|
|
20
|
+
} else {
|
|
21
|
+
pending = callback;
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
var script = document.createElement('script');
|
|
26
|
+
script.onload = function () {
|
|
27
|
+
loaded = true;
|
|
28
|
+
if (pending) {
|
|
29
|
+
pending();
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
// Port 5199 is the development preview, which has no admin behind it
|
|
33
|
+
script.src =
|
|
34
|
+
window.location.port === '5199'
|
|
35
|
+
? window.location.protocol + '//' + window.location.hostname + ':8081/lib/js/socket.io.js'
|
|
36
|
+
: './../../lib/js/socket.io.js';
|
|
37
|
+
document.head.appendChild(script);
|
|
38
|
+
})();
|
|
39
|
+
</script>
|
|
40
|
+
<script type="module" crossorigin src="./assets/index.js"></script>
|
|
41
|
+
</head>
|
|
42
|
+
<body>
|
|
43
|
+
<div id="root"></div>
|
|
44
|
+
</body>
|
|
45
|
+
</html>
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Zaehlt Ereignisse je Kennung ueber ein gleitendes Fenster - die Datenbasis fuer
|
|
4
|
+
* "x empfangen / y gesendet in den letzten 10 Minuten" im Status-Tab.
|
|
5
|
+
*
|
|
6
|
+
* Minutengenaue Eimer statt Zeitstempel-Listen: die Groesse ist damit unabhaengig
|
|
7
|
+
* davon, wie viel Verkehr laeuft, und das Fenster rundet auf ganze Eimer.
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.ActivityCounter = void 0;
|
|
11
|
+
const DEFAULT_WINDOW = 10 * 60 * 1000;
|
|
12
|
+
const DEFAULT_BUCKET = 60 * 1000;
|
|
13
|
+
class ActivityCounter {
|
|
14
|
+
windowMs;
|
|
15
|
+
bucketMs;
|
|
16
|
+
now;
|
|
17
|
+
/** Kennung -> (Eimerstart -> Anzahl) */
|
|
18
|
+
buckets = new Map();
|
|
19
|
+
constructor(options) {
|
|
20
|
+
const opts = options || {};
|
|
21
|
+
this.windowMs = opts.windowMs || DEFAULT_WINDOW;
|
|
22
|
+
this.bucketMs = opts.bucketMs || DEFAULT_BUCKET;
|
|
23
|
+
this.now = opts.now || Date.now;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* @param metric z.B. "classic.events"
|
|
27
|
+
* @param [amount] Anzahl der Ereignisse, Standard 1
|
|
28
|
+
*/
|
|
29
|
+
count(metric, amount = 1) {
|
|
30
|
+
const bucketStart = Math.floor(this.now() / this.bucketMs) * this.bucketMs;
|
|
31
|
+
let perMetric = this.buckets.get(metric);
|
|
32
|
+
if (!perMetric) {
|
|
33
|
+
perMetric = new Map();
|
|
34
|
+
this.buckets.set(metric, perMetric);
|
|
35
|
+
}
|
|
36
|
+
perMetric.set(bucketStart, (perMetric.get(bucketStart) || 0) + amount);
|
|
37
|
+
// Alte Eimer gleich hier wegwerfen, damit nichts unbegrenzt waechst. EIN Eimer
|
|
38
|
+
// mehr als das Fenster breit ist, weil der aelteste ueber den Fensteranfang
|
|
39
|
+
// hinausragt und in snapshot() anteilig zaehlt.
|
|
40
|
+
const oldest = bucketStart - this.windowMs - this.bucketMs;
|
|
41
|
+
for (const start of perMetric.keys()) {
|
|
42
|
+
if (start < oldest) {
|
|
43
|
+
perMetric.delete(start);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Summe je Kennung ueber GENAU windowMs bis jetzt.
|
|
49
|
+
*
|
|
50
|
+
* Frueher lief das Fenster von Eimergrenze zu Eimergrenze: gezaehlt wurden neun
|
|
51
|
+
* volle Minuten plus den schon verstrichenen Teil der laufenden - im Mittel 9,5
|
|
52
|
+
* statt 10. Ausgewiesen wurden trotzdem 10 Minuten, gemessen an einer echten
|
|
53
|
+
* Anlage also rund 5 % zu wenig, und zwar immer in dieselbe Richtung. Der
|
|
54
|
+
* ueberlappende aelteste Eimer geht deshalb anteilig ein. Das unterstellt eine
|
|
55
|
+
* Gleichverteilung innerhalb dieser einen Minute - viel weniger falsch als ein
|
|
56
|
+
* systematischer Fehlbetrag, und die Anzeige bleibt live.
|
|
57
|
+
*
|
|
58
|
+
* @returns Summe je Kennung innerhalb des Fensters
|
|
59
|
+
*/
|
|
60
|
+
snapshot() {
|
|
61
|
+
const windowStart = this.now() - this.windowMs;
|
|
62
|
+
const result = {};
|
|
63
|
+
for (const [metric, perMetric] of this.buckets) {
|
|
64
|
+
let sum = 0;
|
|
65
|
+
for (const [start, amount] of perMetric) {
|
|
66
|
+
const end = start + this.bucketMs;
|
|
67
|
+
if (end <= windowStart) {
|
|
68
|
+
continue;
|
|
69
|
+
}
|
|
70
|
+
if (start >= windowStart) {
|
|
71
|
+
sum += amount;
|
|
72
|
+
continue;
|
|
73
|
+
}
|
|
74
|
+
sum += (amount * (end - windowStart)) / this.bucketMs;
|
|
75
|
+
}
|
|
76
|
+
result[metric] = Math.round(sum);
|
|
77
|
+
}
|
|
78
|
+
return result;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
exports.ActivityCounter = ActivityCounter;
|
|
82
|
+
//# sourceMappingURL=activityCounter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"activityCounter.js","sourceRoot":"","sources":["../../src/lib/activityCounter.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,MAAM,cAAc,GAAG,E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K,IAAI,SAAS,CAAC,IAAI,EAAE,EAAE,CAAC;YACnC,IAAI,KAAK,GAAG,MAAM,EAAE,CAAC;gBACjB,SAAS,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;YAC5B,CAAC;QACL,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,QAAQ;QACJ,MAAM,WAAW,GAAG,IAAI,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC,QAAQ,CAAC;QAC/C,MAAM,MAAM,GAA2B,EAAE,CAAC;QAC1C,KAAK,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,IAAI,IAAI,CAAC,OAAO,EAAE,CAAC;YAC7C,IAAI,GAAG,GAAG,CAAC,CAAC;YACZ,KAAK,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,IAAI,SAAS,EAAE,CAAC;gBACtC,MAAM,GAAG,GAAG,KAAK,GAAG,IAAI,CAAC,QAAQ,CAAC;gBAClC,IAAI,GAAG,IAAI,WAAW,EAAE,CAAC;oBACrB,SAAS;gBACb,CAAC;gBACD,IAAI,KAAK,IAAI,WAAW,EAAE,CAAC;oBACvB,GAAG,IAAI,MAAM,CAAC;oBACd,SAAS;gBACb,CAAC;gBACD,GAAG,IAAI,CAAC,MAAM,GAAG,CAAC,GAAG,GAAG,WAAW,CAAC,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC;YAC1D,CAAC;YACD,MAAM,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QACrC,CAAC;QACD,OAAO,MAAM,CAAC;IAClB,CAAC;CACJ;AAtED,0CAsEC"}
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Central normalization of adapter configuration values and of thrown error values.
|
|
3
|
+
//
|
|
4
|
+
// The admin UI delivers real booleans, but the instance object can also be written by
|
|
5
|
+
// hand, by a script or by a restored backup. A plain truthiness check would then turn
|
|
6
|
+
// the string "false" into true - which for deleteUnknownObjects would silently enable a
|
|
7
|
+
// destructive function. All boolean options therefore go through normalizeBoolean().
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.errorMessage = errorMessage;
|
|
10
|
+
exports.asError = asError;
|
|
11
|
+
exports.markShutdown = markShutdown;
|
|
12
|
+
exports.normalizeBoolean = normalizeBoolean;
|
|
13
|
+
exports.isInterpretableBoolean = isInterpretableBoolean;
|
|
14
|
+
const TRUE_WORDS = ['true', '1', 'yes', 'on', 'ja'];
|
|
15
|
+
const FALSE_WORDS = ['false', '0', 'no', 'off', 'nein'];
|
|
16
|
+
/**
|
|
17
|
+
* Readable text of a value that was thrown or handed over as an error.
|
|
18
|
+
*
|
|
19
|
+
* A `catch` binding is `unknown`, and the DSS layer also passes plain strings around.
|
|
20
|
+
* This keeps the previously used `(err && err.message) || err` output but works for
|
|
21
|
+
* every input type.
|
|
22
|
+
*
|
|
23
|
+
* @param err thrown value, error object, string or nothing at all
|
|
24
|
+
* @returns message of the error, or the value itself as text
|
|
25
|
+
*/
|
|
26
|
+
function errorMessage(err) {
|
|
27
|
+
if (err instanceof Error) {
|
|
28
|
+
return err.message || String(err);
|
|
29
|
+
}
|
|
30
|
+
if (err && typeof err === 'object' && 'message' in err && err.message) {
|
|
31
|
+
// Whatever the message is, it is turned into text - that is the point of this function
|
|
32
|
+
// eslint-disable-next-line @typescript-eslint/no-base-to-string
|
|
33
|
+
return String(err.message);
|
|
34
|
+
}
|
|
35
|
+
return String(err);
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Narrows a thrown value to the error shape used in this adapter.
|
|
39
|
+
*
|
|
40
|
+
* Everything that is not an Error (strings, DSS answer objects) returns null, so the
|
|
41
|
+
* caller has to handle that case explicitly instead of accessing properties blindly.
|
|
42
|
+
*
|
|
43
|
+
* @param err thrown value
|
|
44
|
+
* @returns the same object, typed, or null
|
|
45
|
+
*/
|
|
46
|
+
function asError(err) {
|
|
47
|
+
return err instanceof Error ? err : null;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Marks an error as caused by the adapter stop and returns it unchanged.
|
|
51
|
+
* Values that are not errors are passed through untouched.
|
|
52
|
+
*
|
|
53
|
+
* @param err thrown value
|
|
54
|
+
* @returns the same value
|
|
55
|
+
*/
|
|
56
|
+
function markShutdown(err) {
|
|
57
|
+
const error = asError(err);
|
|
58
|
+
if (error) {
|
|
59
|
+
error.shutdown = true;
|
|
60
|
+
}
|
|
61
|
+
return err;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Converts a configuration value into a boolean.
|
|
65
|
+
*
|
|
66
|
+
* Anything that cannot be interpreted unambiguously falls back to defaultValue - an
|
|
67
|
+
* invalid value must never enable a function on its own.
|
|
68
|
+
*
|
|
69
|
+
* @param value raw value from the instance configuration
|
|
70
|
+
* @param [defaultValue] value used for empty or uninterpretable input
|
|
71
|
+
* @returns normalized value
|
|
72
|
+
*/
|
|
73
|
+
function normalizeBoolean(value, defaultValue = false) {
|
|
74
|
+
if (typeof value === 'boolean') {
|
|
75
|
+
return value;
|
|
76
|
+
}
|
|
77
|
+
if (value === null || value === undefined) {
|
|
78
|
+
return defaultValue;
|
|
79
|
+
}
|
|
80
|
+
if (typeof value === 'number') {
|
|
81
|
+
if (value === 1) {
|
|
82
|
+
return true;
|
|
83
|
+
}
|
|
84
|
+
if (value === 0) {
|
|
85
|
+
return false;
|
|
86
|
+
}
|
|
87
|
+
return defaultValue;
|
|
88
|
+
}
|
|
89
|
+
if (typeof value === 'string') {
|
|
90
|
+
const normalized = value.trim().toLowerCase();
|
|
91
|
+
if (!normalized) {
|
|
92
|
+
return defaultValue;
|
|
93
|
+
}
|
|
94
|
+
if (TRUE_WORDS.includes(normalized)) {
|
|
95
|
+
return true;
|
|
96
|
+
}
|
|
97
|
+
if (FALSE_WORDS.includes(normalized)) {
|
|
98
|
+
return false;
|
|
99
|
+
}
|
|
100
|
+
return defaultValue;
|
|
101
|
+
}
|
|
102
|
+
// objects, arrays, functions, symbols - never a valid configuration value
|
|
103
|
+
return defaultValue;
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* True when the value can be interpreted as a boolean at all. Used to warn about
|
|
107
|
+
* configuration values that silently fall back to their default.
|
|
108
|
+
*
|
|
109
|
+
* @param value raw value from the instance configuration
|
|
110
|
+
* @returns true if normalizeBoolean() derives the result from the value itself
|
|
111
|
+
*/
|
|
112
|
+
function isInterpretableBoolean(value) {
|
|
113
|
+
if (typeof value === 'boolean') {
|
|
114
|
+
return true;
|
|
115
|
+
}
|
|
116
|
+
if (typeof value === 'number') {
|
|
117
|
+
return value === 0 || value === 1;
|
|
118
|
+
}
|
|
119
|
+
if (typeof value === 'string') {
|
|
120
|
+
const normalized = value.trim().toLowerCase();
|
|
121
|
+
return TRUE_WORDS.includes(normalized) || FALSE_WORDS.includes(normalized);
|
|
122
|
+
}
|
|
123
|
+
return false;
|
|
124
|
+
}
|
|
125
|
+
//# sourceMappingURL=configUtils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"configUtils.js","sourceRoot":"","sources":["../../src/lib/configUtils.ts"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,EAAE;AACF,sFAAsF;AACtF,sFAAsF;AACtF,wFAAwF;AACxF,qFAAqF;;AA4CrF,oCAUC;AAWD,0BAEC;AASD,oCAMC;AAYD,4CA+BC;AASD,wDAYC;AAhJD,MAAM,UAAU,GAAG,CAAC,MAAM,EAAE,GAAG,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;AACpD,MAAM,WAAW,GAAG,CAAC,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,CAAC,CAAC;AA+BxD;;;;;;;;;GASG;AACH,SAAgB,YAAY,CAAC,GAAY;IACrC,IAAI,GAAG,YAAY,KAAK,EAAE,CAAC;QACvB,OAAO,GAAG,CAAC,OAAO,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC;IACt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