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"}); }
|
else { node.status({fill:"blue",shape:"dot",text:"night"}); }
|
||||||
if (msg.payload != oldval) {
|
if (msg.payload != oldval) {
|
||||||
oldval = msg.payload;
|
oldval = msg.payload;
|
||||||
msg2 = msg;
|
node.send( [msg,msg] );
|
||||||
node.send( [msg,msg2] );
|
|
||||||
}
|
}
|
||||||
else { node.send(msg); }
|
else { node.send(msg); }
|
||||||
}, 60000);
|
}, 60000);
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name" : "node-red-node-suncalc",
|
"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",
|
"description" : "A Node-RED node to provide a signal at sunrise and sunset",
|
||||||
"dependencies" : {
|
"dependencies" : {
|
||||||
"suncalc" : "1.5.*"
|
"suncalc" : "1.5.*"
|
||||||
|
Loading…
Reference in New Issue
Block a user