tweak node.status to be consistent with latest thinking

stomp, xmpp and suncalc.
This commit is contained in:
Dave C-J
2014-05-31 20:08:15 +01:00
parent f2dd4ae062
commit be810be2e2
3 changed files with 17 additions and 17 deletions

View File

@@ -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;