iobroker.lorawan 0.3.3 → 0.3.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 CHANGED
@@ -22,6 +22,9 @@ For now there is documentation in English here: http://www.hafenmeister.com/Lora
22
22
  Placeholder for the next version (at the beginning of the line):
23
23
  ### **WORK IN PROGRESS**
24
24
  -->
25
+ ### 0.3.4 (2024-02-20)
26
+ * (BenAhrdt) put some debug and silly logging to code
27
+
25
28
  ### 0.3.3 (2024-02-19)
26
29
  * (BenAhrdt) set infos into native
27
30
 
package/io-package.json CHANGED
@@ -1,8 +1,21 @@
1
1
  {
2
2
  "common": {
3
3
  "name": "lorawan",
4
- "version": "0.3.3",
4
+ "version": "0.3.4",
5
5
  "news": {
6
+ "0.3.4": {
7
+ "en": "put some debug and silly logging to code",
8
+ "de": "debug und silly logging auf code setzen",
9
+ "ru": "положить некоторые отладки и глупые журналы для кодирования",
10
+ "pt": "colocar algum debug e log tonto para o código",
11
+ "nl": "zet wat debug en dom loggen op code",
12
+ "fr": "mettre un peu de débogage et stupide log pour coder",
13
+ "it": "mettere alcuni debug e stupido registrazione al codice",
14
+ "es": "poner un poco de depuración y registro tonto para el código",
15
+ "pl": "dodaj debug i głupie logowanie do kodu",
16
+ "uk": "покласти деякі debug і silly журналювання до коду",
17
+ "zh-cn": "把一些调试和愚蠢的日志输入代码"
18
+ },
6
19
  "0.3.3": {
7
20
  "en": "set infos into native",
8
21
  "de": "informationen in die heimat",
@@ -80,19 +93,6 @@
80
93
  "pl": "większa funkcjonalność w zakresie rozwiązywania problemów",
81
94
  "uk": "більше функцій в повідомленнях",
82
95
  "zh-cn": "信件中更多的功能"
83
- },
84
- "0.1.13": {
85
- "en": "building of directory changed and message implemented",
86
- "de": "aufbau des geänderten verzeichnisses und der implementierten meldung",
87
- "ru": "создание измененного каталога и реализовано сообщение",
88
- "pt": "construção de diretório alterado e mensagem implementada",
89
- "nl": "opbouw van map gewijzigd en bericht geïmplementeerd",
90
- "fr": "la construction du répertoire modifié et le message mis en œuvre",
91
- "it": "costruzione della directory modificata e messa in atto",
92
- "es": "la construcción del directorio cambiado y el mensaje implementado",
93
- "pl": "budowa zmienionych katalogów i wdrożona wiadomość",
94
- "uk": "створення каталогу змінено та повідомлення",
95
- "zh-cn": "更改目录构建并执行消息"
96
96
  }
97
97
  },
98
98
  "title": "LoRaWAN",
@@ -157,8 +157,12 @@ class directorieshandlerClass {
157
157
  let myObject = {};
158
158
  // check object exists
159
159
  if(await this.adapter.objectExists(objectId)){
160
+ this.adapter.log.silly(`get object ${objectId}`);
160
161
  myObject = await this.adapter.getObjectAsync(objectId);
161
162
  }
163
+ else{
164
+ this.adapter.log.silly(`object ${objectId} not exists`);
165
+ }
162
166
  const myObjectBefore = structuredClone(myObject);
163
167
 
164
168
  //Set type of object
@@ -201,10 +205,12 @@ class directorieshandlerClass {
201
205
  //check for content
202
206
  if(myObjectBefore.common[attribute] === myObjectBefore.native[obj[elementName].objectCommonFromNative[attribute]] ||
203
207
  myObjectBefore.common[attribute] === ""){
208
+ this.adapter.log.silly(`set common attribut ${attribute} to ${myObject.native[obj[elementName].objectCommonFromNative[attribute]]}`);
204
209
  myObject.common[attribute] = myObject.native[obj[elementName].objectCommonFromNative[attribute]];
205
210
  }
206
211
  }
207
212
  else{
213
+ this.adapter.log.silly(`set common attribut ${attribute} to ${myObject.native[obj[elementName].objectCommonFromNative[attribute]]}`);
208
214
  myObject.common[attribute] = myObject.native[obj[elementName].objectCommonFromNative[attribute]];
209
215
  }
210
216
  }
@@ -216,6 +222,7 @@ class directorieshandlerClass {
216
222
  myObject.common.name = "";
217
223
  }
218
224
  if(!isDeepStrictEqual(myObject,myObjectBefore)){
225
+ this.adapter.log.debug(`set object ${objectId}`);
219
226
  await this.adapter.setObject(objectId,myObject);
220
227
  }
221
228
  // Jump into next step (next directory / attribute)
@@ -170,9 +170,9 @@ class downlinkConfighandlerClass {
170
170
  // Select downlinktopic in case of origin
171
171
  switch(this.adapter.config.origin){
172
172
  case this.adapter.origin.ttn:
173
- return this.getTtnDownlinkTopicFromDirectory(changeInfo,suffix);
173
+ return this.getTtnDownlinkTopic(changeInfo,suffix);
174
174
  case this.adapter.origin.chirpstack:
175
- return this.getChirpstackDownlinkTopicFromDirectory(changeInfo,suffix);
175
+ return this.getChirpstackDownlinkTopic(changeInfo,suffix);
176
176
  }
177
177
  }
178
178
 
@@ -303,7 +303,7 @@ class downlinkConfighandlerClass {
303
303
  * *********************** Downlinktopic *****************************
304
304
  * ******************************************************************/
305
305
 
306
- getTtnDownlinkTopicFromDirectory(changeInfo,suffix){
306
+ getTtnDownlinkTopic(changeInfo,suffix){
307
307
  this.adapter.log.silly(`the downlinktopic for ttn is requested`);
308
308
  const topicElements = {
309
309
  Version : "v3",
@@ -349,7 +349,7 @@ class downlinkConfighandlerClass {
349
349
  * *********************** Downlinktopic *****************************
350
350
  * ******************************************************************/
351
351
 
352
- getChirpstackDownlinkTopicFromDirectory(changeInfo,suffix){
352
+ getChirpstackDownlinkTopic(changeInfo,suffix){
353
353
  this.adapter.log.silly(`the downlinktopic for chirpstack is requested`);
354
354
  const topicElements = {
355
355
  Version : "application",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iobroker.lorawan",
3
- "version": "0.3.3",
3
+ "version": "0.3.4",
4
4
  "description": "converts the desired lora gateway data to a ioBroker structure",
5
5
  "author": {
6
6
  "name": "BenAhrdt",