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 +4 -0
- package/io-package.json +14 -1
- package/main.js +4 -3
- package/package.json +1 -1
package/README.md
CHANGED
package/io-package.json
CHANGED
|
@@ -1,8 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"common": {
|
|
3
3
|
"name": "weathersense",
|
|
4
|
-
"version": "1.0.
|
|
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
|
|
330
|
+
// Funktion zum Erzeugen des PW-Hashes
|
|
331
331
|
hashPassword(pw) {
|
|
332
|
-
const
|
|
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
|
|
592
|
+
await this.delay(2000); // sleep 2s
|
|
592
593
|
|
|
593
594
|
await this.sendForecasts(client, forecasts, celsius, sensor_id);
|
|
594
595
|
|