Skip to content

Commit

Permalink
Add infrared support, allow setting colors when light is off
Browse files Browse the repository at this point in the history
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
  • Loading branch information
jdomeij committed Jan 15, 2017
1 parent 008bd91 commit a5c78bc
Show file tree
Hide file tree
Showing 8 changed files with 252 additions and 180 deletions.
3 changes: 2 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"ClassDeclaration": false,
"ArrowFunctionExpression": false
}
}]
} ],
"no-trailing-spaces": [1, { "skipBlankLines": true }]
}
}
4 changes: 2 additions & 2 deletions lib/lifx-input.html
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
oneditprepare: function() {
var htmlID = '#node-input-lightID';
var htmlText = '<input type="text" id="node-input-lightID" placeholder="Light ID" style="width: 100%;">';
var htmlCombo = '<select id="node-input-lightID" placeholder="Light ID" style="width: 100%;"/>';
var htmlCombo = '<select id="node-input-lightID" placeholder="Light ID" style="width: 100%;"/>';

function enableCombobox() {
var val = $(htmlID).val();
Expand Down Expand Up @@ -90,7 +90,7 @@
var input = $(htmlID);
data.forEach(function(light) {
input.append($('<option>').val(light.id).text(
(light.name || light.id ) +
(light.name || light.id ) +
(light.info ? (' (' + light.info + ')'):'')
));
});
Expand Down
Loading

0 comments on commit a5c78bc

Please sign in to comment.