iobroker.weathersense 1.0.2 → 1.0.3

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
@@ -29,6 +29,10 @@ The data can also be sent via MQTT.
29
29
 
30
30
 
31
31
  ## Changelog
32
+ ### 1.0.3 (2025-07-03)
33
+
34
+ - Delay with different syntax
35
+
32
36
  ### 1.0.2 (2025-07-02)
33
37
 
34
38
  - New release because SSH troubles in dev portal
package/io-package.json CHANGED
@@ -1,8 +1,21 @@
1
1
  {
2
2
  "common": {
3
3
  "name": "weathersense",
4
- "version": "1.0.2",
4
+ "version": "1.0.3",
5
5
  "news": {
6
+ "1.0.3": {
7
+ "en": "Delay with different syntax",
8
+ "de": "Verzögerung mit unterschiedlicher Syntax",
9
+ "ru": "Задержка с разным синтаксисом",
10
+ "pt": "Atrasar com sintaxe diferente",
11
+ "nl": "Vertraging met verschillende syntaxis",
12
+ "fr": "Retard avec une syntaxe différente",
13
+ "it": "Delay con sintassi diversa",
14
+ "es": "Delay con diferentes sintaxis",
15
+ "pl": "Opóźnienie z inną składnią",
16
+ "uk": "Делей з різними синтаксисом",
17
+ "zh-cn": "不同语法的延迟"
18
+ },
6
19
  "1.0.2": {
7
20
  "en": "New release because SSH troubles in dev portal",
8
21
  "de": "Neue Veröffentlichung, weil SSH Probleme im dev Portal",
package/main.js CHANGED
@@ -327,9 +327,10 @@ class WeatherSense extends utils.Adapter {
327
327
  }
328
328
 
329
329
 
330
- // Funktion zum Erzeugen des MD5-Hashes
330
+ // Funktion zum Erzeugen des PW-Hashes
331
331
  hashPassword(pw) {
332
- const combined = pw + "emax@pwd123";
332
+ const key = Buffer.from("ZW1heEBwd2QxMjM=", "base64").toString("utf8");
333
+ const combined = pw + key;
333
334
  return crypto.createHash("md5").update(combined, "utf8").digest("hex").toUpperCase();
334
335
  }
335
336
 
@@ -588,7 +589,7 @@ class WeatherSense extends utils.Adapter {
588
589
 
589
590
  if (mqtt_active) {
590
591
  await this.clearOldForecasts(sensor_id, client, 6);
591
- await new Promise(r => setTimeout(r, 2000)); // sleep 2s
592
+ await this.delay(2000); // sleep 2s
592
593
 
593
594
  await this.sendForecasts(client, forecasts, celsius, sensor_id);
594
595
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iobroker.weathersense",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "Read in data from WeatherSense",
5
5
  "author": {
6
6
  "name": "Daniel Luginbühl",