Skip to content

Commit e6d639a

Browse files
committed
Added lastUpdate field
1 parent 2961565 commit e6d639a

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

README.md

+4
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ $ npm install node-red-contrib-dutch-weather
2424

2525
For all nodes, you'll need to create at least one configuration. Drag one of the exposed nodes to your flow and set it up just like all other config nodes. After that, you can use the event emitters in your own code.
2626

27+
## Release 2.0.7
28+
29+
* Added 'lastUpdate' field.
30+
2731
## Release 2.0.6
2832

2933
* After some time the rain-node was not giving any output anymore; the time in between working and not varies from various minutes to hours. Previously the script required both Buienradar and Meteoplaza to respond with a valid response when asking for the current rain state; this is changed so that only 1 of the systems would need to provide accurate values.

lib/WeatherLogic.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ class WeatherLogic extends EventEmitter {
172172
var after = new Date(Math.floor(new Date() / FIVE_MINUTES) * FIVE_MINUTES);
173173

174174
// Get rainstate object
175-
var tempState = { };
175+
var tempState = { lastUpdate: after };
176176

177177
// Loop over possibilities for rain starting or stopping in the next 120 minutes
178178
for (let i = 0; i < 23; i++) {

0 commit comments

Comments
 (0)