Giter Site home page Giter Site logo

Bulb not found about node-lifx HOT 7 CLOSED

mariusrumpf avatar mariusrumpf commented on August 11, 2024
Bulb not found

from node-lifx.

Comments (7)

ronzelver avatar ronzelver commented on August 11, 2024 1

Problem solved with broadcast address 192.168.1.255

from node-lifx.

MariusRumpf avatar MariusRumpf commented on August 11, 2024

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

MariusRumpf avatar MariusRumpf commented on August 11, 2024

Please try to update to ^0.5.0 and set an explicit broadcast address.

client.init({
    broadcast: '255.255.255.255'
}); 

from node-lifx.

ronzelver avatar ronzelver commented on August 11, 2024

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.

MariusRumpf avatar MariusRumpf commented on August 11, 2024

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.

ronzelver avatar ronzelver commented on August 11, 2024

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.

MariusRumpf avatar MariusRumpf commented on August 11, 2024

Perfect

from node-lifx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.