We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When I try running my code, it outputs:
"LIFX bulb off method expects duration to be a number"
I'm relatively new to node js, so I wasn't able to understand why the issue occurred. Any ideas why?
My code is as follows:
var LifxClient = require('node-lifx').Client; var client = new LifxClient();
client.on('bulb-new', function (bulb) { bulb.on(['1000']); });
client.init();
The text was updated successfully, but these errors were encountered:
Hey ajsaini,
bulb.on expects a number as parameter. You gave it an array containing a string.
var LifxClient = require('node-lifx').Client; var client = new LifxClient(); client.on('bulb-new', function (bulb) { bulb.on(1000); }); client.init();
Sorry, something went wrong.
I assume this answered your question.
No branches or pull requests
When I try running my code, it outputs:
"LIFX bulb off method expects duration to be a number"
I'm relatively new to node js, so I wasn't able to understand why the issue occurred. Any ideas why?
My code is as follows:
var LifxClient = require('node-lifx').Client;
var client = new LifxClient();
client.on('bulb-new', function (bulb) {
bulb.on(['1000']);
});
client.init();
The text was updated successfully, but these errors were encountered: