iobroker.device-watcher 2.13.0 → 2.13.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/README.md +3 -0
- package/io-package.json +14 -14
- package/lib/tools.js +3 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -193,6 +193,9 @@ This adapter would not have been possible without the great work of Christian Be
|
|
|
193
193
|
Placeholder for the next version (at the beginning of the line):
|
|
194
194
|
### **WORK IN PROGRESS**
|
|
195
195
|
-->
|
|
196
|
+
### 2.13.1 (2025-09-06)
|
|
197
|
+
* (arteck) Dependencies have been fixed
|
|
198
|
+
|
|
196
199
|
### 2.13.0 (2025-09-04)
|
|
197
200
|
- (mcm1957) Adapter requires admin >= 7.6.17, js-controller >= 6.0.11 and node.js>= 20 now.
|
|
198
201
|
- (mcm1957) Missing dependency of 'node-schedule' has been fixed.
|
package/io-package.json
CHANGED
|
@@ -1,8 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"common": {
|
|
3
3
|
"name": "device-watcher",
|
|
4
|
-
"version": "2.13.
|
|
4
|
+
"version": "2.13.1",
|
|
5
5
|
"news": {
|
|
6
|
+
"2.13.1": {
|
|
7
|
+
"en": "Dependencies have been fixed",
|
|
8
|
+
"de": "Abhängigkeiten wurden behoben",
|
|
9
|
+
"ru": "Зависимости были установлены",
|
|
10
|
+
"pt": "Dependências foram fixadas",
|
|
11
|
+
"nl": "Afhankelijkheden zijn vastgesteld",
|
|
12
|
+
"fr": "Les dépendances ont été fixées",
|
|
13
|
+
"it": "Le dipendenze sono state risolte",
|
|
14
|
+
"es": "Las dependencias se han fijado",
|
|
15
|
+
"pl": "Zależności zostały ustalone",
|
|
16
|
+
"uk": "Залежності були закріплені",
|
|
17
|
+
"zh-cn": "依赖已固定"
|
|
18
|
+
},
|
|
6
19
|
"2.13.0": {
|
|
7
20
|
"en": "Adapter requires admin >= 7.6.17, js-controller >= 6.0.11 and node.js>= 20 now.\nMissing dependency of 'node-schedule' has been fixed.\nDependencies have been updated",
|
|
8
21
|
"de": "Adapter benötigt admin >= 7.6.17, js-controller >= 6.0.11 und node.js>= 20 jetzt.\nDie fehlende Abhängigkeit von 'node-schedule' wurde behoben.\nAbhängigkeiten wurden aktualisiert",
|
|
@@ -80,19 +93,6 @@
|
|
|
80
93
|
"pl": "[# 362] (https: / / github.com / iobroker- community- adapters / iBroker.device- watcher / issues / 362): Ecovacs Deebot używa połączenia Uptime dp jako timeselector\nZaktualizowano zależności",
|
|
81
94
|
"uk": "Виправлено [#362](https://github.com/iobroker-community-adapters/ioBroker.device-watcher/products/362): Ecovacs Deebot з'єднання Разовий dp як разселектор\nЗалежність було оновлено",
|
|
82
95
|
"zh-cn": "固定 [362] (https://github.com/iobroctor-community-adapters/ioBroker.device-watcher/issues/362): (中文(简体) ). Ecovacs Deebot 使用连接 时间 dp 作为时间选择器\n依赖关系已更新"
|
|
83
|
-
},
|
|
84
|
-
"2.12.1": {
|
|
85
|
-
"en": "Added: [#341](https://github.com/iobroker-community-adapters/ioBroker.device-watcher/issues/341) Support for Zigbee battery_state datapoint",
|
|
86
|
-
"de": "Hinzugefügt: [#341](https://github.com/iobroker-community-adapters/ioBroker.device-watcher/issues/341) Unterstützung für Zigbee battery_state Datenpunkt",
|
|
87
|
-
"ru": "Добавлено: [#341] (https://github.com/iobroker-community-adapters/ioBroker.device-watcher/issues/341) Поддержка Zigbee Battery_state datapoint",
|
|
88
|
-
"pt": "Adicionado: [#341](https://github.com/iobroker-community-adapters/ioBroker.device-watcher/issues/341) Suporte para Zigbee battery_state datapoint",
|
|
89
|
-
"nl": "Toegevoegd: [#341](https://github.com/iobroker-community-adapters/ioBroker.device-watcher/issues/341) Ondersteuning voor Zigbee battery_state datapoint",
|
|
90
|
-
"fr": "Ajouté : [#341](https://github.com/iobroker-community-adaptateurs/ioBroker.device-watcher/issues/341) Prise en charge du point de données batterie_état de Zigbee",
|
|
91
|
-
"it": "Aggiunto: [#341](https://github.com/iobroker-community-adapters/ioBroker.device-watcher/issues/341) Supporto per Zigbee Battery_state datapoint",
|
|
92
|
-
"es": "Añadido: [#341](https://github.com/iobroker-community-adapters/ioBroker.device-watcher/issues/341) Soporte para batería de Zigbee_punto de datos del estado",
|
|
93
|
-
"pl": "Dodano: [# 341] (https: / / github.com / iobroker- community- adapters / iBroker.device- watcher / issues / 341) Wsparcie dla Bateria Zigbee _ state datapoint",
|
|
94
|
-
"uk": "Додано: [#341](https://github.com/iobroker-community-adapters/ioBroker.device-watcher/products/341) Підтримка акумулятора Zigbee_state",
|
|
95
|
-
"zh-cn": "添加:[#341](https://github.com/iobro-communist-community-adapters/ioBroker.device-watcher/issues/341) 互联网档案馆的存檔,存档日期2013-03-02. 支持 Zigbee 电池_状态数据点"
|
|
96
96
|
}
|
|
97
97
|
},
|
|
98
98
|
"titleLang": {
|
package/lib/tools.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
2
|
async function isDisabledDevice(adaptr, unreachDP) {
|
|
3
3
|
let isDisabled = false;
|
|
4
4
|
|
|
@@ -29,6 +29,7 @@ function parseData(data) {
|
|
|
29
29
|
*/
|
|
30
30
|
function getPreviousCronRun(adaptr, lastCronRun) {
|
|
31
31
|
try {
|
|
32
|
+
const cronParser = require('cron-parser');
|
|
32
33
|
const interval = cronParser.parseExpression(lastCronRun);
|
|
33
34
|
const previous = interval.prev();
|
|
34
35
|
return Math.floor(Date.now() - previous.getTime()); // in ms
|
|
@@ -151,3 +152,4 @@ module.exports = {
|
|
|
151
152
|
checkLastContact,
|
|
152
153
|
|
|
153
154
|
};
|
|
155
|
+
|