iobroker.lorawan 1.0.3 → 1.0.4
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/main.js +12 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -23,6 +23,9 @@ For now there is documentation in English here: https://wiki.hafenmeister.de
|
|
|
23
23
|
Placeholder for the next version (at the beginning of the line):
|
|
24
24
|
### **WORK IN PROGRESS**
|
|
25
25
|
-->
|
|
26
|
+
### 1.0.4 (2024-05-10)
|
|
27
|
+
* (BenAhrdt) changed icon and offline time
|
|
28
|
+
|
|
26
29
|
### 1.0.3 (2024-05-10)
|
|
27
30
|
* (BenAhrdt) notifications for connection and disconnection LNS added
|
|
28
31
|
* (BenAhrdt) notifiction for device offline added
|
package/io-package.json
CHANGED
|
@@ -1,8 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"common": {
|
|
3
3
|
"name": "lorawan",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.4",
|
|
5
5
|
"news": {
|
|
6
|
+
"1.0.4": {
|
|
7
|
+
"en": "changed icon and offline time",
|
|
8
|
+
"de": "geändertes icon und offline-zeit",
|
|
9
|
+
"ru": "измененная иконка и автономное время",
|
|
10
|
+
"pt": "ícone alterado e tempo offline",
|
|
11
|
+
"nl": "veranderd pictogram en offline tijd",
|
|
12
|
+
"fr": "changement d'icône et de l'heure hors ligne",
|
|
13
|
+
"it": "cambiato icona e tempo offline",
|
|
14
|
+
"es": "cambiado icono y tiempo sin conexión",
|
|
15
|
+
"pl": "zmieniony czas ikon i offline",
|
|
16
|
+
"uk": "змінена ікона і в автономному режимі",
|
|
17
|
+
"zh-cn": "更改图标和离线时间"
|
|
18
|
+
},
|
|
6
19
|
"1.0.3": {
|
|
7
20
|
"en": "notifications for connection and disconnection LNS added\nnotifiction for device offline added",
|
|
8
21
|
"de": "benachrichtigungen für Anschluss und Abschaltung LNS hinzugefügt\nnotification für gerät offline hinzugefügt",
|
|
@@ -80,19 +93,6 @@
|
|
|
80
93
|
"pl": "zestaw Obiekt zmieniony w zestaw ObjectAsync",
|
|
81
94
|
"uk": "комплекти Об'єкт змінився в комплекті Об'єктАсинхрон",
|
|
82
95
|
"zh-cn": "设定 对象更改为集合 对象同步"
|
|
83
|
-
},
|
|
84
|
-
"0.6.4": {
|
|
85
|
-
"en": "Change writing of deviceinformations at Ttn",
|
|
86
|
-
"de": "Schreiben von Geräteinformationen bei Ttn ändern",
|
|
87
|
-
"ru": "Изменение записи устройств в Ttn",
|
|
88
|
-
"pt": "Alterar a escrita de informações de dispositivos no Ttn",
|
|
89
|
-
"nl": "Het schrijven van apparaatinformatie bij Ttn wijzigen",
|
|
90
|
-
"fr": "Modifier l'écriture des informations de l'appareil à Ttn",
|
|
91
|
-
"it": "Cambia la scrittura di informazioni sui dispositivi a Ttn",
|
|
92
|
-
"es": "Cambiar la escritura de las informaciones de dispositivo en Ttn",
|
|
93
|
-
"pl": "Zmień pisanie informacji na temat treści w Ttn",
|
|
94
|
-
"uk": "Зміна письмової інформації про пристрій",
|
|
95
|
-
"zh-cn": "在 Ttn 更改设备信息的写入"
|
|
96
96
|
}
|
|
97
97
|
},
|
|
98
98
|
"titleLang": {
|
package/main.js
CHANGED
|
@@ -38,7 +38,7 @@ class Lorawan extends utils.Adapter {
|
|
|
38
38
|
checkTimestamp: "checkTimestamp"
|
|
39
39
|
};
|
|
40
40
|
this.cronJosValues = {
|
|
41
|
-
checkTimestamp: "
|
|
41
|
+
checkTimestamp: "0 * * * *"
|
|
42
42
|
};
|
|
43
43
|
|
|
44
44
|
// Simulation variables
|
|
@@ -112,6 +112,17 @@ class Lorawan extends utils.Adapter {
|
|
|
112
112
|
const changeInfo = await this.getChangeInfo(adapterObject._id);
|
|
113
113
|
if(changeInfo){
|
|
114
114
|
this.registerNotification("lorawan", "LoRaWAN device offline", `The LoRaWAN device ${changeInfo.usedDeviceId} in the application ${changeInfo.usedApplicationName} is offline`);
|
|
115
|
+
const deviceFolderId = adapterObject._id.substring(0,adapterObject._id.indexOf(".uplink"));
|
|
116
|
+
const deviceFolderObject = await this.getObjectAsync(deviceFolderId);
|
|
117
|
+
// Set foldericon to low / no connection
|
|
118
|
+
if(deviceFolderObject){
|
|
119
|
+
deviceFolderObject.common.icon = "icons/wifiSfX_0.png";
|
|
120
|
+
await this.extendObjectAsync(deviceFolderId,{
|
|
121
|
+
common: deviceFolderObject.common,
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
//const devicefolder = await this.getObjectAsync()
|
|
115
126
|
}
|
|
116
127
|
}
|
|
117
128
|
}
|