Giter Site home page Giter Site logo

jnv / node-red-contrib-lifx Goto Github PK

View Code? Open in Web Editor NEW
4.0 5.0 5.0 9 KB

[DEPRECATED] LIFX light bulbs control for Node-RED

Home Page: https://www.npmjs.org/package/node-red-contrib-lifx

License: MIT License

JavaScript 38.88% HTML 61.12%
node-red light-bulbs lifx deprecated

node-red-contrib-lifx's People

Contributors

ctaloi avatar jnv avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

node-red-contrib-lifx's Issues

Connection Refused

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 !

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.