LIFX Developer Zone

LIFX Tile Halloween Effects πŸŽƒ

Hi! :wave:

I made a collection of Halloween inspired LIFX Tile effects:

My effects build upon the fantastic node-lifx-lan package (now with Tile Support).

To use via Node, simply:

  • Clone (or download) the repository
  • Install the repository dependencies (npm ci)
  • Run the application (node lifx-tile-halloween-effects)

Running the application displays a list of effects:

Quit the selected effect by pressing [ctrl+c]:

effect-chosen

Hope someone somewhere is inspired!

Happy Halloween!

:nerd_face::+1:

2 Likes

Cool stuff.

Usually I have photons tile animations running on our two tile sets at the front of the office from an rPi on my desk, but I’m now running your nun effect on one of the tile sets!

It seems however that it doesn’t know about tile orientation (example code at here) and you can’t run more than one instance of the application on the same machine as it errors with:

    at dgram.js:321:20
    at processTicksAndRejections (internal/process/task_queues.js:81:21) {
  errno: -98,
  code: 'EADDRINUSE',
  syscall: 'bind',
  address: '0.0.0.0',
  port: 56700
}
1 Like

Hi @delfick,

Thanks for checking out my repoβ€”really appreciate the feedback!

The orientation issue seems like a relatively simple fix based on the example links you sent.

Running more than one instance appears to be a limitation of the node-lifx-lan library (guessing it has something to do with the hardcoded UDP port value). I’ll write a PR to handle free port discovery (plus a few other performance optimisations).

PSβ€”Photons looks awesome!

Cheers!

:grinning:

Awesome :slight_smile: Thanks!!!

I’ll write a PR to handle free port discovery

If you set the source to a non zero value, you should be able to listen on any port you like and the bulb will return packets to you. Most OSes will find a free port for you if you try to listen on port 0.

1 Like

Great ideaβ€”I’ll try that first.

Thanks @daniel_hall!