iobroker.agent-dvr 0.4.1 → 0.4.2
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.de.md +8 -5
- package/README.md +8 -5
- package/admin/assets/index-_IaWp3oU.js +685 -0
- package/admin/i18n/de.json +3 -2
- package/admin/i18n/en.json +3 -2
- package/admin/i18n/es.json +3 -2
- package/admin/i18n/fr.json +3 -2
- package/admin/i18n/it.json +3 -2
- package/admin/i18n/nl.json +3 -2
- package/admin/i18n/pl.json +3 -2
- package/admin/i18n/pt.json +3 -2
- package/admin/i18n/ru.json +3 -2
- package/admin/i18n/uk.json +3 -2
- package/admin/i18n/zh-cn.json +3 -2
- package/admin/index_m.html +1 -1
- package/build/main.js +8 -11
- package/build/main.js.map +2 -2
- package/io-package.json +15 -15
- package/lib/web.js +4 -2
- package/package.json +1 -1
package/admin/i18n/de.json
CHANGED
package/admin/i18n/en.json
CHANGED
package/admin/i18n/es.json
CHANGED
package/admin/i18n/fr.json
CHANGED
package/admin/i18n/it.json
CHANGED
package/admin/i18n/nl.json
CHANGED
package/admin/i18n/pl.json
CHANGED
package/admin/i18n/pt.json
CHANGED
package/admin/i18n/ru.json
CHANGED
package/admin/i18n/uk.json
CHANGED
package/admin/i18n/zh-cn.json
CHANGED
package/admin/index_m.html
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
};
|
|
19
19
|
document.head.appendChild(script);
|
|
20
20
|
</script>
|
|
21
|
-
<script type="module" crossorigin src="./assets/index-
|
|
21
|
+
<script type="module" crossorigin src="./assets/index-_IaWp3oU.js"></script>
|
|
22
22
|
</head>
|
|
23
23
|
<body>
|
|
24
24
|
<noscript>You need to enable JavaScript to run this app.</noscript>
|
package/build/main.js
CHANGED
|
@@ -550,12 +550,6 @@ class AgentDvr extends utils.Adapter {
|
|
|
550
550
|
}
|
|
551
551
|
}
|
|
552
552
|
}
|
|
553
|
-
guessRole(id, val) {
|
|
554
|
-
if (typeof val === "string" && /^https?:\/\//i.test(val)) {
|
|
555
|
-
return "string";
|
|
556
|
-
}
|
|
557
|
-
return "string";
|
|
558
|
-
}
|
|
559
553
|
async writeLeaf(id, val) {
|
|
560
554
|
const t = typeof val;
|
|
561
555
|
let common;
|
|
@@ -754,11 +748,14 @@ class AgentDvr extends utils.Adapter {
|
|
|
754
748
|
continue;
|
|
755
749
|
}
|
|
756
750
|
const id = `${sfid}.${dp.key}`;
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
751
|
+
if (!this.ensuredFolders.has(id)) {
|
|
752
|
+
await this.setObjectNotExistsAsync(id, {
|
|
753
|
+
type: "state",
|
|
754
|
+
common: { name: dp.name, type: "boolean", role: dp.role, read: true, write: false, def: false },
|
|
755
|
+
native: {}
|
|
756
|
+
});
|
|
757
|
+
this.ensuredFolders.add(id);
|
|
758
|
+
}
|
|
762
759
|
await this.setStateAsync(id, { val: !!data[dp.key], ack: true });
|
|
763
760
|
}
|
|
764
761
|
}
|