# holiday-udp

> Sends frames to the MooresCloud Holiday UDP API

Latest version **0.1.2** (published 2013-12-25) · BSD-2-Clause license · 0 weekly downloads

## Install

```sh
npm install holiday-udp
pnpm add holiday-udp
yarn add holiday-udp
bun add holiday-udp
```

Provides the commands `holiday-xmas`, `holiday-thrash`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.2 |
| Published | 2013-12-25 |
| First published | 2013-12-25 |
| Weekly downloads | 0 |
| License | BSD-2-Clause |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Garth Kidd |
| Maintainers | garthk |
| Keywords | holiday, moorescloud, udp |

## Links

- npm: https://www.npmjs.com/package/holiday-udp
- Repository: https://github.com/garthk/holiday-udp
- Issues: https://github.com/garthk/holiday-udp/issues
- npm.io page: https://npm.io/package/holiday-udp

## Dependencies (1)

- [optimist](https://npm.io/package/optimist.md) ~0.6.0

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 0.1.2 (latest) — 2013-12-25
- 0.1.1 — 2013-12-25

## README

# holiday-udp

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

[secret API]: https://github.com/moorescloud/secretapi
[holiday]: http://holiday.moorescloud.com/

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

---
_Source: https://npm.io/package/holiday-udp · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
