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:
parent
3a8e86d962
commit
14d1cad846
@ -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);
|
||||
|
@ -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.*"
|
||||
|
Loading…
Reference in New Issue
Block a user