iobroker.weathersense 3.0.0 → 3.0.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 CHANGED
@@ -30,6 +30,10 @@ 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.1 (2025-08-18)
34
+
35
+ - Delay 0-117s added
36
+
33
37
  ### 3.0.0 (2025-08-18)
34
38
 
35
39
  - Type and channel position swapped for more meaningful sorting
package/io-package.json CHANGED
@@ -1,8 +1,21 @@
1
1
  {
2
2
  "common": {
3
3
  "name": "weathersense",
4
- "version": "3.0.0",
4
+ "version": "3.0.1",
5
5
  "news": {
6
+ "3.0.1": {
7
+ "en": "Delay 0-117s added",
8
+ "de": "Verzögerung 0-117s hinzugefügt",
9
+ "ru": "Добавлена задержка 0-117",
10
+ "pt": "Atraso 0-117s adicionado",
11
+ "nl": "Vertraging 0-117s toegevoegd",
12
+ "fr": "Délai 0-117s ajoutés",
13
+ "it": "Ritardo 0-117s aggiunto",
14
+ "es": "Delay 0-117s añadidos",
15
+ "pl": "Dodano opóźnienie 0- 117s",
16
+ "uk": "Додано Delay 0-117s",
17
+ "zh-cn": "延迟 0-117次"
18
+ },
6
19
  "3.0.0": {
7
20
  "en": "Type and channel position swapped for more meaningful sorting",
8
21
  "de": "Typ- und Kanalposition getauscht für eine sinnvollere Sortierung",
@@ -80,19 +93,6 @@
80
93
  "pl": "Nowe wydanie ponieważ SSH problemy w portalu dev",
81
94
  "uk": "Новий реліз через SSH клопоти на порталі dev",
82
95
  "zh-cn": "Dev 门户网站中由于 SSH 麻烦而新建发布"
83
- },
84
- "1.0.1": {
85
- "en": "Code cleanups",
86
- "de": "Aufräumen von Codes",
87
- "ru": "Очистка кода",
88
- "pt": "Limpeza de código",
89
- "nl": "Code opruiming",
90
- "fr": "Nettoyage du code",
91
- "it": "Pulizia del codice",
92
- "es": "Limpieza del código",
93
- "pl": "Czyszczenie kodu",
94
- "uk": "Чистка коду",
95
- "zh-cn": "代码清理"
96
96
  }
97
97
  },
98
98
  "titleLang": {
package/main.js CHANGED
@@ -26,6 +26,11 @@ class WeatherSense extends utils.Adapter {
26
26
  this.on('unload', this.onUnload.bind(this));
27
27
  }
28
28
 
29
+ // Delay-Helferfunktion
30
+ delay(ms) {
31
+ return new Promise(resolve => setTimeout(resolve, ms));
32
+ }
33
+
29
34
  async onReady() {
30
35
  const username = this.config.username;
31
36
  const passwort = this.config.passwort;
@@ -40,6 +45,11 @@ class WeatherSense extends utils.Adapter {
40
45
  const storeJson = this.config.storeJson;
41
46
  const storeDir = this.config.storeDir;
42
47
 
48
+ // Delay 0-117s
49
+ const startupDelay = Math.floor(Math.random() * 118) * 1000;
50
+ this.log.debug(`Start cloud query after ${startupDelay / 1000} Seconds...`);
51
+ await this.delay(startupDelay);
52
+
43
53
  if (Number(sensor_in)) {
44
54
  sensor_id = parseInt(sensor_in);
45
55
  if (sensor_id < 1 || sensor_id > 20) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iobroker.weathersense",
3
- "version": "3.0.0",
3
+ "version": "3.0.1",
4
4
  "description": "Read in data from WeatherSense",
5
5
  "author": {
6
6
  "name": "Daniel Luginbühl",