jnv / node-red-contrib-lifx Goto Github PK
View Code? Open in Web Editor NEW[DEPRECATED] LIFX light bulbs control for Node-RED
Home Page: https://www.npmjs.org/package/node-red-contrib-lifx
License: MIT License
[DEPRECATED] LIFX light bulbs control for Node-RED
Home Page: https://www.npmjs.org/package/node-red-contrib-lifx
License: MIT License
Hello -
Thanks for taking the time to wrap all this into a node-red module.
Question - I am seeing a connection refused error message when attempting to communicate using this module, wondering if you've run into it before or if you have any ideas.
Connecting using the node module works without issue:
pi@pi ~/lifx/node_modules/lifx $ node cli.js
Keys:
Press 1 to turn the lights on
Press 2 to turn the lights off
Press 3 to turn the lights a dim red
Press 4 to turn the lights a dim purple
Press 5 to turn the lights a bright white
Press 6 to cycle forwards through colours
Press 7 to cycle backwards through colours
Press 8 to show debug messages including network traffic
Press 9 to hide debug messages including network traffic
Press letters a-m to request various status fields
U+ 240000340000000000000000000000000000000000000000000000000000000002000000
U- 2900005400000000d073d5017d2d00004c494658563200000000000000000000030000000200000000
U- 2900005400000000d073d5017d2d00004c49465856320000000000000000000003000000017cdd0000
U+ 240000340000000000000000000000004c49465856320000000000000000000065000000
New gateway found: 192.168.1.11
U- 5800005400000000d073d5017d2d00004c4946585632000000000000000000006b0000008f0100000080f00a000000004e696768747374616e64000000000000000000000000000000000000000000000100000000000000
New bulb found: Nightstand
Lights on
U+ 260000340000000000000000000000004c4946585632000000000000000000001500000000ff
Lights off
U+ 260000340000000000000000000000004c494658563200000000000000000000150000000000
Closing...
But when I try to start use the node-red module I see:
12 Nov 12:26:12 - [log] [lifx:Nightstand] Lights on
12 Nov 12:26:12 - [log] [lifx:Nightstand] Setting color: {"on":true,"hue":"0xCC15","saturation":"0xFFFF","luminance":"0x8000","whiteColor":"0x00","fadeTime":"0x0513"}
U+ 240000540000000000000000000000000000000000000000000000000000000002000000
U- 240000540000000000000000000000000000000000000000000000000000000002000000
U- 2900005400000000d073d5017d2d00004c494658563200000000000000000000030000000200000000
U- 2900005400000000d073d5017d2d00004c49465856320000000000000000000003000000017cdd0000
Connecting to 192.168.1.11:56700
T+ 240000340000000000000000000000000000000000000000000000000000000065000000
{ [Error: connect ECONNREFUSED]
code: 'ECONNREFUSED',
errno: 'ECONNREFUSED',
syscall: 'connect' }
Have you run into this ?
Any ideas on working through it?
I upgraded the bulb to f/w 1.5 last night and am using the latest src from your repo.
Thanks !
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.