iobroker.weathersense 2.0.1 → 3.0.0

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
@@ -30,6 +30,14 @@ The weather station data is stored in the weathersense data point.
30
30
  The data can also be sent via MQTT.
31
31
 
32
32
  ## Changelog
33
+ ### 3.0.0 (2025-08-18)
34
+
35
+ - Type and channel position swapped for more meaningful sorting
36
+
37
+ ### 2.0.2 (2025-08-17)
38
+
39
+ - Unit hPa added
40
+
33
41
  ### 2.0.1 (2025-08-17)
34
42
 
35
43
  - More data output
package/io-package.json CHANGED
@@ -1,8 +1,34 @@
1
1
  {
2
2
  "common": {
3
3
  "name": "weathersense",
4
- "version": "2.0.1",
4
+ "version": "3.0.0",
5
5
  "news": {
6
+ "3.0.0": {
7
+ "en": "Type and channel position swapped for more meaningful sorting",
8
+ "de": "Typ- und Kanalposition getauscht für eine sinnvollere Sortierung",
9
+ "ru": "Положение типа и канала поменялось для более значимой сортировки",
10
+ "pt": "Tipo e posição do canal trocados para classificação mais significativa",
11
+ "nl": "Type- en kanaalpositie geruild voor meer betekenisvol sorteren",
12
+ "fr": "Type et position du canal échangés pour un tri plus significatif",
13
+ "it": "Tipo e posizione del canale scambiato per una selezione più significativa",
14
+ "es": "Tipo y posición de canal intercambiado para una clasificación más significativa",
15
+ "pl": "Pozycja typu i kanału zamieniona na bardziej znaczące sortowanie",
16
+ "uk": "Тип і позиція каналу, що спрощуються для більш значущого сортування",
17
+ "zh-cn": "类型和频道位置交换,以进行更有意义的排序"
18
+ },
19
+ "2.0.2": {
20
+ "en": "Unit hPa added",
21
+ "de": "Einheit hPa hinzugefügt",
22
+ "ru": "Единица hPa добавлена",
23
+ "pt": "Unidade hPa adicionada",
24
+ "nl": "Eenheid hPa toegevoegd",
25
+ "fr": "Unité hPa ajoutée",
26
+ "it": "Ulteriori informazioni",
27
+ "es": "Unidad de resultados",
28
+ "pl": "Jednostka hPa dodana",
29
+ "uk": "Блок hPa додано",
30
+ "zh-cn": "单位 hPa 添加"
31
+ },
6
32
  "2.0.1": {
7
33
  "en": "More data output\nCleaner type & channel output",
8
34
  "de": "Mehr Datenausgabe\nReiniger Typ & Kanal Ausgang",
@@ -67,19 +93,6 @@
67
93
  "pl": "Czyszczenie kodu",
68
94
  "uk": "Чистка коду",
69
95
  "zh-cn": "代码清理"
70
- },
71
- "1.0.0": {
72
- "en": "First release",
73
- "de": "Erstes Release",
74
- "ru": "Первый релиз",
75
- "pt": "Primeiro lançamento",
76
- "nl": "Eerste release",
77
- "fr": "Première sortie",
78
- "it": "Prima versione",
79
- "es": "Primer lanzamiento",
80
- "pl": "Pierwsze wydanie",
81
- "uk": "Перший випуск",
82
- "zh-cn": "第一版"
83
96
  }
84
97
  },
85
98
  "titleLang": {
package/main.js CHANGED
@@ -159,13 +159,19 @@ class WeatherSense extends utils.Adapter {
159
159
  for (const [key, value] of Object.entries(content)) {
160
160
  if (value !== null && value !== undefined && key !== 'sensorDatas') {
161
161
  const id = `${devDataChannelId}.${key}`;
162
+
163
+ let unit = '';
164
+ if (key === 'atmos') {
165
+ unit = 'hPa';
166
+ }
167
+
162
168
  await this.setObjectNotExistsAsync(id, {
163
169
  type: typeof value === 'number' ? 'state' : 'state',
164
170
  common: {
165
171
  name: key,
166
172
  type: typeof value,
167
173
  role: 'value',
168
- unit: '',
174
+ unit: unit,
169
175
  read: true,
170
176
  write: false,
171
177
  },
@@ -193,7 +199,7 @@ class WeatherSense extends utils.Adapter {
193
199
  prefix = '-Hum';
194
200
  }
195
201
 
196
- const key = `Type${type_}-Channel${channel}${prefix}`;
202
+ const key = `Channel${channel}-Type${type_}${prefix}`;
197
203
  const base = `${devDataChannelId}.${key}`;
198
204
 
199
205
  // current
@@ -609,7 +615,7 @@ class WeatherSense extends utils.Adapter {
609
615
  prefix = '-Hum';
610
616
  }
611
617
 
612
- const key = `Type${type_}-Channel${channel}${prefix}`;
618
+ const key = `Channel${channel}-Type${type_}${prefix}`;
613
619
  const base = `devData/${key}`;
614
620
 
615
621
  if (cur_val !== null && cur_val !== undefined && cur_val !== 65535 && cur_val !== 255) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iobroker.weathersense",
3
- "version": "2.0.1",
3
+ "version": "3.0.0",
4
4
  "description": "Read in data from WeatherSense",
5
5
  "author": {
6
6
  "name": "Daniel Luginbühl",