Comments (7)
Problem solved with broadcast address 192.168.1.255
from node-lifx.
@DaIgeb reported similar problems in PR #25. Maybe a wrong broadcast address is used by the library, which can happen on windows he says. I will take a look at providing this by hand.
from node-lifx.
Please try to update to ^0.5.0
and set an explicit broadcast address.
client.init({
broadcast: '255.255.255.255'
});
from node-lifx.
I've installed 0.5.1
and when I run cli.js
I now get the following response with or without the explicit broadcast address in the client.init()
call (it doesn't seem to take it?!):
LIFX Client UDP error Trace: { [Error: bind EADDRINUSE 0.0.0.0:56700] code: 'EADDRINUSE', errno: 'EADDRINUSE', syscall: 'bind', address: '0.0.0.0', port: 56700 } at Client.<anonymous> (/root/node_modules/node-lifx/lib/lifx/client.js:145:13) at emitOne (events.js:90:13) at Socket.emit (events.js:182:7) at dgram.js:215:14 at _combinedTickCallback (node.js:380:13) at process._tickCallback (node.js:401:11) at Function.Module.runMain (module.js:449:11) at startup (node.js:141:18) at node.js:933:3 LIFX error: Error: bind EADDRINUSE 0.0.0.0:56700 at Object.exports._errnoException (util.js:856:11) at exports._exceptionWithHostPort (util.js:879:20) at dgram.js:214:18 at _combinedTickCallback (node.js:380:13) at process._tickCallback (node.js:401:11) at Function.Module.runMain (module.js:449:11) at startup (node.js:141:18) at node.js:933:3
from node-lifx.
You get this error if there is already an application running on the same port. Check that you quit all previous instances you ran.
from node-lifx.
Ok, I still had homebridge running. Now I get the following response:
`[root@saclnas04 ~/node_modules/node-lifx]# node cli.js
Started LIFX listening on 0.0.0.0:56700
{ size: 36,
addressable: true,
tagged: true,
origin: false,
protocolVersion: 1024,
source: 'eb3e05a2',
target: '000000000000',
reserved1: <Buffer 00 00>,
site: '',
ackRequired: false,
resRequired: true,
sequence: 0,
time: <Buffer 00 00 00 00 00 00 00 00>,
type: 'getGroup',
reserved2: <Buffer 00 00> } ' from 192.168.1.185'
{ size: 36,
addressable: true,
tagged: true,
origin: false,
protocolVersion: 1024,
source: 'eb3e05a2',
target: '000000000000',
reserved1: <Buffer 00 00>,
site: '',
ackRequired: false,
resRequired: true,
sequence: 0,
time: <Buffer 00 00 00 00 00 00 00 00>,
type: 'getLocation',
reserved2: <Buffer 00 00> } ' from 192.168.1.185'
{ size: 36,
addressable: true,
tagged: true,
origin: false,
protocolVersion: 1024,
source: 'eb3e05a2',
target: '000000000000',
reserved1: <Buffer 00 00>,
site: '',
ackRequired: false,
resRequired: true,
sequence: 0,
time: <Buffer 00 00 00 00 00 00 00 00>,
type: 'getOwner',
reserved2: <Buffer 00 00> } ' from 192.168.1.185'`
from node-lifx.
Perfect
from node-lifx.
Related Issues (20)
- ES6 syntax HOT 3
- Implement infrared color packets to control LIFX+ HOT 5
- MultiZone Packets for LIFX Z HOT 8
- powerOn or powerOff with duration set to 0 is not instant HOT 2
- Consider usage with promises HOT 3
- Constant disconnecting HOT 2
- Multiple node-lifx client instances on the same ip address HOT 3
- Create event for state changed of bulb HOT 3
- add light.setPower() HOT 1
- manually send a udp command to node-lifx to turn on a light HOT 4
- IR capable lights timeout when light.getMaxIR is called HOT 5
- getAmbientLight always returns 0 on BR30+ (IR capable)
- getColorZones doesn't return all zones. HOT 1
- light.getState(), light.getLabel(), light.getHardwareVersion(), ... , time out HOT 3
- Not working in Windows when running Docker HOT 4
- light-online firing incorrectly HOT 2
- Constants wrong for LIFX Mini Day & Night HOT 1
- Using Buffer is deprecated
- Do you need someone to take over the project? HOT 11
- Please update vulnerable dependencies
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-lifx.