Skip to content

Commit a5c78bc

Browse files
committed
Add infrared support, allow setting colors when light is off
Support for setting max infrared level Possible to set color when light is off, also syncs color when off Added source event to output node to track origin of message
1 parent 008bd91 commit a5c78bc

File tree

8 files changed

+252
-180
lines changed

8 files changed

+252
-180
lines changed

.eslintrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
"ClassDeclaration": false,
2929
"ArrowFunctionExpression": false
3030
}
31-
}]
31+
} ],
32+
"no-trailing-spaces": [1, { "skipBlankLines": true }]
3233
}
3334
}

lib/lifx-input.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
oneditprepare: function() {
6262
var htmlID = '#node-input-lightID';
6363
var htmlText = '<input type="text" id="node-input-lightID" placeholder="Light ID" style="width: 100%;">';
64-
var htmlCombo = '<select id="node-input-lightID" placeholder="Light ID" style="width: 100%;"/>';
64+
var htmlCombo = '<select id="node-input-lightID" placeholder="Light ID" style="width: 100%;"/>';
6565

6666
function enableCombobox() {
6767
var val = $(htmlID).val();
@@ -90,7 +90,7 @@
9090
var input = $(htmlID);
9191
data.forEach(function(light) {
9292
input.append($('<option>').val(light.id).text(
93-
(light.name || light.id ) +
93+
(light.name || light.id ) +
9494
(light.info ? (' (' + light.info + ')'):'')
9595
));
9696
});

0 commit comments

Comments
 (0)