iobroker.lorawan 1.8.0 → 1.8.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/modules/messagehandler.js +12 -6
- 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.8.1 (2025-04-06)
|
|
27
|
+
* (BenAhrdt) chaned format time in device info
|
|
28
|
+
|
|
26
29
|
### 1.8.0 (2025-04-06)
|
|
27
30
|
* (BenAhrdt) update dependencies and time / timestamp in deviceinfos
|
|
28
31
|
|
package/io-package.json
CHANGED
|
@@ -1,8 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"common": {
|
|
3
3
|
"name": "lorawan",
|
|
4
|
-
"version": "1.8.
|
|
4
|
+
"version": "1.8.1",
|
|
5
5
|
"news": {
|
|
6
|
+
"1.8.1": {
|
|
7
|
+
"en": "chaned format time in device info",
|
|
8
|
+
"de": "chaned format time in device info",
|
|
9
|
+
"ru": "время в формате chaned in device info",
|
|
10
|
+
"pt": "tempo de formato chaned em informações do dispositivo",
|
|
11
|
+
"nl": "gechanteerde opmaaktijd in apparaatinformatie",
|
|
12
|
+
"fr": "temps de format channed dans l'information de l'appareil",
|
|
13
|
+
"it": "chaned format time in informazioni sul dispositivo",
|
|
14
|
+
"es": "tiempo de formato enmarcado en la información del dispositivo",
|
|
15
|
+
"pl": "chaned format time in device info",
|
|
16
|
+
"uk": "chaned формат часу в пристрої інформація",
|
|
17
|
+
"zh-cn": "设备信息中显示的格式时间"
|
|
18
|
+
},
|
|
6
19
|
"1.8.0": {
|
|
7
20
|
"en": "update dependencies and time / timestamp in deviceinfos",
|
|
8
21
|
"de": "aktualisierung von abhängigkeiten und zeit / zeitstempel in deviceinfos",
|
|
@@ -80,19 +93,6 @@
|
|
|
80
93
|
"pl": "Ustaw dekodowaną strukturę w deviceInfos (z połączeniem)",
|
|
81
94
|
"uk": "Настроювання декодованої структури в пристроїІнфос (з торговою маркою)",
|
|
82
95
|
"zh-cn": "在设备Infos( 合并) 中设置解码结构"
|
|
83
|
-
},
|
|
84
|
-
"1.6.3": {
|
|
85
|
-
"en": "Names of states changed (Downlink Raw)\nChange setObjectNotExistsAsync to extendObjectAsync for Raw Data",
|
|
86
|
-
"de": "Namen der geänderten Zustände (Downlink Raw)\nÄnderungssatz ObjectNotExistsAsync erweitert ObjectAsync für Rohdaten",
|
|
87
|
-
"ru": "Изменились названия государств (Downlink Raw)\nИзменение ObjectNotExistsAsync ObjectAsync для первичных данных",
|
|
88
|
-
"pt": "Nomes de estados alterados (Downlink Raw)\nConjunto de alterações ObjectNotExistsAsync para estender ObjectAsync para dados brutos",
|
|
89
|
-
"nl": "Namen van statuss veranderd (Downlink Raw)\nVerander set ObjectNotExistsAsync uit te breiden ObjectAsync voor ruwe gegevens",
|
|
90
|
-
"fr": "Noms des états modifiés (Downlink Raw)\nModifier l'ensemble ObjetNotExistsAsync pour étendre ObjetAsync pour les données brutes",
|
|
91
|
-
"it": "I nomi degli stati cambiati (Downlink Raw)\nModifica set ObjectNotExistsAsync per estendere ObjectAsync per dati raw",
|
|
92
|
-
"es": "Los nombres de los estados cambiaron (Downlink Raw)\nCambio ObjectNotExistsAsync para extender ObjectAsync for Raw Data",
|
|
93
|
-
"pl": "Zmienione nazwy państw (Downlink Raw)\nZmień zestaw ObjectNotExistsAsync do rozszerzenia ObjectAsync for raw Data",
|
|
94
|
-
"uk": "Назви змінених держав (Downlink Raw)\nЗмінення Об'єктNotExistsAsync для розширення Об'єктАсинк для сирих даних",
|
|
95
|
-
"zh-cn": "更改州名( 下link Raw)\n更改设置 要扩展的对象“非外来”Async 原始数据对象同步"
|
|
96
96
|
}
|
|
97
97
|
},
|
|
98
98
|
"titleLang": {
|
|
@@ -306,9 +306,8 @@ class messagehandlerClass {
|
|
|
306
306
|
: new Date(message.uplink_message.rx_metadata[0].time).valueOf();
|
|
307
307
|
|
|
308
308
|
// time
|
|
309
|
-
this.deviceinformations[changeInfo.deviceEUI].uplink.time =
|
|
310
|
-
Timestamp
|
|
311
|
-
).toLocaleString();
|
|
309
|
+
this.deviceinformations[changeInfo.deviceEUI].uplink.time =
|
|
310
|
+
this.generateTimestringFromTimestamp(Timestamp);
|
|
312
311
|
|
|
313
312
|
// timestamp
|
|
314
313
|
this.deviceinformations[changeInfo.deviceEUI].uplink.timestamp = Timestamp;
|
|
@@ -339,9 +338,8 @@ class messagehandlerClass {
|
|
|
339
338
|
typeof message.time === 'number' ? message.time : new Date(message.time).valueOf();
|
|
340
339
|
|
|
341
340
|
// time
|
|
342
|
-
this.deviceinformations[changeInfo.deviceEUI].uplink.time =
|
|
343
|
-
Timestamp
|
|
344
|
-
).toLocaleString();
|
|
341
|
+
this.deviceinformations[changeInfo.deviceEUI].uplink.time =
|
|
342
|
+
this.generateTimestringFromTimestamp(Timestamp);
|
|
345
343
|
|
|
346
344
|
// timestamp
|
|
347
345
|
this.deviceinformations[changeInfo.deviceEUI].uplink.timestamp = Timestamp;
|
|
@@ -354,6 +352,14 @@ class messagehandlerClass {
|
|
|
354
352
|
}
|
|
355
353
|
}
|
|
356
354
|
|
|
355
|
+
// Generate Timestring for deviceInformations
|
|
356
|
+
/**
|
|
357
|
+
* @param Timestamp Timestamp, from wich the Timestring has to generated
|
|
358
|
+
*/
|
|
359
|
+
generateTimestringFromTimestamp(Timestamp) {
|
|
360
|
+
return `${new Date(Timestamp).toDateString()} ${new Date(Timestamp).toTimeString().substring(0, 8)}`;
|
|
361
|
+
}
|
|
362
|
+
|
|
357
363
|
//Add directories at startup (so they are present before next upload)
|
|
358
364
|
/**
|
|
359
365
|
* @param startDirectory directorypath (id)
|