Skip to content

Commit

Permalink
Added lastUpdate field
Browse files Browse the repository at this point in the history
  • Loading branch information
gvdhoven committed Jan 1, 2021
1 parent 2961565 commit e6d639a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ $ npm install node-red-contrib-dutch-weather

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.

## Release 2.0.7

* Added 'lastUpdate' field.

## Release 2.0.6

* 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.
Expand Down
2 changes: 1 addition & 1 deletion lib/WeatherLogic.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ class WeatherLogic extends EventEmitter {
var after = new Date(Math.floor(new Date() / FIVE_MINUTES) * FIVE_MINUTES);

// Get rainstate object
var tempState = { };
var tempState = { lastUpdate: after };

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

0 comments on commit e6d639a

Please sign in to comment.