From 87f866a2f168d8d64d70cff22bd810fc5924e8e8 Mon Sep 17 00:00:00 2001 From: woessmich Date: Thu, 31 Dec 2020 15:23:24 +0100 Subject: [PATCH] corrected precipitation duration yesterday --- README.md | 2 ++ io-package.json | 6 +++++- main.js | 2 +- package-lock.json | 2 +- package.json | 2 +- 5 files changed, 10 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 06d3aa6..958990e 100644 --- a/README.md +++ b/README.md @@ -59,6 +59,8 @@ Further, the adapter provides a selection of useful minimum and maximum values o The protocol sends a lightning distance of 0 when no lightning was detected. Values of 0 are modified to 999 to avoid the impression that lightning strikes are directly overhead. ## Changelog +### 0.0.12 +* (womi) Correction: Precipitation yesterday was not written ### 0.0.11 * (womi) Corrected more programming issues from review ### 0.0.10 diff --git a/io-package.json b/io-package.json index fa182fc..8fcb2c1 100644 --- a/io-package.json +++ b/io-package.json @@ -1,8 +1,12 @@ { "common": { "name": "weatherflow_udp", - "version": "0.0.11", + "version": "0.0.12", "news": { + "0.0.12": { + "en": "Corrected precipitation duration yesterday not written", + "de": "Korrektur: Regen gestern nicht geschrieben" + }, "0.0.11": { "en": "Corrected more programming issues from review", "de": "Mehr Korrekturen nach Überprüfung für 'latest'" diff --git a/main.js b/main.js index bce2a9f..8aab5e3 100644 --- a/main.js +++ b/main.js @@ -496,7 +496,7 @@ class WeatherflowUdp extends utils.Adapter { that.myCreateState(stateNameYesterdayD, stateParametersYesterdayD, objdayD.val); // save value from current day to last yesterday } - that.myCreateState(stateNameToday, stateParametersToday, newValueDay); // always write value for current day + that.myCreateState(stateNameTodayD, stateParametersTodayD, newValueDayD); // always write value for current day } } diff --git a/package-lock.json b/package-lock.json index 7a70798..02af600 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "iobroker.weatherflow_udp", - "version": "0.0.11", + "version": "0.0.12", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 7448c17..618de13 100644 --- a/package.json +++ b/package.json @@ -57,5 +57,5 @@ "test:package": "mocha test/package --exit", "test:unit": "mocha test/unit --exit" }, - "version": "0.0.11" + "version": "0.0.12" }