mirror of
https://github.com/node-red/node-red-nodes.git
synced 2025-03-01 10:37:43 +00:00
tweak node.status to be consistent with latest thinking
stomp, xmpp and suncalc.
This commit is contained in:
@@ -42,8 +42,8 @@ module.exports = function(RED) {
|
||||
msg = { payload:0, topic:"sun", moon:moon };
|
||||
if ((e1 > 0) & (e2 < 0)) { msg.payload = 1; }
|
||||
if (oldval == null) { oldval = msg.payload; }
|
||||
if (msg.payload == 1) { node.status({fill:"yellow",shape:"dot",text:"day"},true); }
|
||||
else { node.status({fill:"blue",shape:"dot",text:"night"},true); }
|
||||
if (msg.payload == 1) { node.status({fill:"yellow",shape:"dot",text:"day"}); }
|
||||
else { node.status({fill:"blue",shape:"dot",text:"night"}); }
|
||||
if (msg.payload != oldval) {
|
||||
oldval = msg.payload;
|
||||
msg2 = msg;
|
||||
|
Reference in New Issue
Block a user