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.
@@ -140,5 +140,6 @@
140
140
  "tabConnection": "Verbindung",
141
141
  "tabDashboard": "Live-Dashboard",
142
142
  "tabFeatures": "Funktionen",
143
- "tabWidget": "Widget"
144
- }
143
+ "tabWidget": "Widget",
144
+ "cfgDashStreamMp4": "MP4 / FLV (mit Ton)"
145
+ }
@@ -140,5 +140,6 @@
140
140
  "tabConnection": "Connection",
141
141
  "tabDashboard": "Live Dashboard",
142
142
  "tabFeatures": "Features",
143
- "tabWidget": "Widget"
144
- }
143
+ "tabWidget": "Widget",
144
+ "cfgDashStreamMp4": "MP4 / FLV (with audio)"
145
+ }
@@ -140,5 +140,6 @@
140
140
  "tabConnection": "Conexión",
141
141
  "tabDashboard": "Panel en vivo",
142
142
  "tabFeatures": "Funciones",
143
- "tabWidget": "Widget"
144
- }
143
+ "tabWidget": "Widget",
144
+ "cfgDashStreamMp4": "MP4 / FLV (con audio)"
145
+ }
@@ -140,5 +140,6 @@
140
140
  "tabConnection": "Connexion",
141
141
  "tabDashboard": "Tableau de bord",
142
142
  "tabFeatures": "Fonctionnalités",
143
- "tabWidget": "Widget"
144
- }
143
+ "tabWidget": "Widget",
144
+ "cfgDashStreamMp4": "MP4 / FLV (avec audio)"
145
+ }
@@ -140,5 +140,6 @@
140
140
  "tabConnection": "Connessione",
141
141
  "tabDashboard": "Pannello live",
142
142
  "tabFeatures": "Funzionalità",
143
- "tabWidget": "Widget"
144
- }
143
+ "tabWidget": "Widget",
144
+ "cfgDashStreamMp4": "MP4 / FLV (con audio)"
145
+ }
@@ -140,5 +140,6 @@
140
140
  "tabConnection": "Verbinding",
141
141
  "tabDashboard": "Live dashboard",
142
142
  "tabFeatures": "Functies",
143
- "tabWidget": "Widget"
144
- }
143
+ "tabWidget": "Widget",
144
+ "cfgDashStreamMp4": "MP4 / FLV (met audio)"
145
+ }
@@ -140,5 +140,6 @@
140
140
  "tabConnection": "Połączenie",
141
141
  "tabDashboard": "Panel na żywo",
142
142
  "tabFeatures": "Funkcje",
143
- "tabWidget": "Widget"
144
- }
143
+ "tabWidget": "Widget",
144
+ "cfgDashStreamMp4": "MP4 / FLV (z dźwiękiem)"
145
+ }
@@ -140,5 +140,6 @@
140
140
  "tabConnection": "Conexão",
141
141
  "tabDashboard": "Painel ao vivo",
142
142
  "tabFeatures": "Funcionalidades",
143
- "tabWidget": "Widget"
144
- }
143
+ "tabWidget": "Widget",
144
+ "cfgDashStreamMp4": "MP4 / FLV (com áudio)"
145
+ }
@@ -140,5 +140,6 @@
140
140
  "tabConnection": "Соединение",
141
141
  "tabDashboard": "Live-панель",
142
142
  "tabFeatures": "Функции",
143
- "tabWidget": "Виджет"
144
- }
143
+ "tabWidget": "Виджет",
144
+ "cfgDashStreamMp4": "MP4 / FLV (со звуком)"
145
+ }
@@ -140,5 +140,6 @@
140
140
  "tabConnection": "З'єднання",
141
141
  "tabDashboard": "Live-панель",
142
142
  "tabFeatures": "Функції",
143
- "tabWidget": "Віджет"
144
- }
143
+ "tabWidget": "Віджет",
144
+ "cfgDashStreamMp4": "MP4 / FLV (зі звуком)"
145
+ }
@@ -140,5 +140,6 @@
140
140
  "tabConnection": "连接",
141
141
  "tabDashboard": "实时仪表板",
142
142
  "tabFeatures": "功能",
143
- "tabWidget": "小部件"
144
- }
143
+ "tabWidget": "小部件",
144
+ "cfgDashStreamMp4": "MP4 / FLV(含音频)"
145
+ }
@@ -18,7 +18,7 @@
18
18
  };
19
19
  document.head.appendChild(script);
20
20
  </script>
21
- <script type="module" crossorigin src="./assets/index-Dqw9GB72.js"></script>
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
- await this.setObjectNotExistsAsync(id, {
758
- type: "state",
759
- common: { name: dp.name, type: "boolean", role: dp.role, read: true, write: false, def: false },
760
- native: {}
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
  }