Skip to content

Commit

Permalink
corrected precipitation duration yesterday
Browse files Browse the repository at this point in the history
  • Loading branch information
woessmich committed Dec 31, 2020
1 parent b4b6b98 commit 87f866a
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 4 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 5 additions & 1 deletion io-package.json
Original file line number Diff line number Diff line change
@@ -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'"
Expand Down
2 changes: 1 addition & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}

Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,5 @@
"test:package": "mocha test/package --exit",
"test:unit": "mocha test/unit --exit"
},
"version": "0.0.11"
"version": "0.0.12"
}

0 comments on commit 87f866a

Please sign in to comment.