Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

holiday-udp

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

holiday-udp

Sends frames to the MooresCloud Holiday UDP API

latest
Source
npmnpm
Version
0.1.2
Version published
Maintainers
1
Created
Source

holiday-udp

Fires frames at the UDP-based secret API of Holiday by MooresCloud.

Usage

var Holiday = require('holiday-udp'),
    holiday = new Holiday('192.168.23.254');

var frame = new Array[50];
// fill frame with [r, g, b] values, each 0..value..255
holiday.send(frame);

Lazy Usage

If you just want to see see it work:

npm install -g holiday-udp
holiday-xmas 192.168.23.254 &

API

Holiday.send takes two arguments:

  • frame, an array of 50 RGB values to send to the Holiday
  • callback, an optional callback function passed to Socket.send

If callback isn't supplied and an error occurs (e.g. getaddrinfo ENOTFOUND), the Holiday will emit error.

WARNING: On OS X, if a setInterval timer calls send an error emitted to no subscribers should bring down Node if you've called unref, but it doesn't.

Testing

Once you've found your Holiday, try bin/thrash.js. If it works and you're into red, white, and green themed holidays at the end of the year, try bin/xmas.js. The latter has a simple animation module hiding in it, waiting to be broken out.

Keywords

holiday

FAQs

Package last updated on 25 Dec 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts