1
0
mirror of https://github.com/node-red/node-red-nodes.git synced 2023-10-10 13:36:58 +02:00

Fix Suncalc nodes (strict failure). Closes Issue #64

This commit is contained in:
Dave C-J 2014-08-19 12:15:27 +01:00
parent 3a8e86d962
commit 14d1cad846
2 changed files with 2 additions and 3 deletions

View File

@ -47,8 +47,7 @@ module.exports = function(RED) {
else { node.status({fill:"blue",shape:"dot",text:"night"}); }
if (msg.payload != oldval) {
oldval = msg.payload;
msg2 = msg;
node.send( [msg,msg2] );
node.send( [msg,msg] );
}
else { node.send(msg); }
}, 60000);

View File

@ -1,6 +1,6 @@
{
"name" : "node-red-node-suncalc",
"version" : "0.0.2",
"version" : "0.0.3",
"description" : "A Node-RED node to provide a signal at sunrise and sunset",
"dependencies" : {
"suncalc" : "1.5.*"