diff --git a/time/79-suncalc.js b/time/79-suncalc.js index a8a667cc..6d59a855 100644 --- a/time/79-suncalc.js +++ b/time/79-suncalc.js @@ -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); diff --git a/time/package.json b/time/package.json index 9f7becd6..9f74aa2a 100644 --- a/time/package.json +++ b/time/package.json @@ -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.*"