# playbulb

> Set colours and run effects on Playbulb bluetooth candles.

Latest version **1.1.3** (published 2015-05-13) · ISC license · 0 weekly downloads

## Install

```sh
npm install playbulb
pnpm add playbulb
yarn add playbulb
bun add playbulb
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.3 |
| Published | 2015-05-13 |
| First published | 2015-05-06 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 11 |
| Author | Dr. Daniel Alexander Smith |
| Maintainers | danielsmith |

## Links

- npm: https://www.npmjs.com/package/playbulb
- Repository: https://github.com/danielsmith-eu/playbulb-live
- Issues: https://github.com/danielsmith-eu/playbulb-live/issues
- npm.io page: https://npm.io/package/playbulb

## Dependencies (1)

- [noble](https://npm.io/package/noble.md) ^0.3.14

## Recent versions

- 1.1.3 (latest) — 2015-05-13
- 1.1.2 — 2015-05-13
- 1.1.1 — 2015-05-06
- 1.1.0 — 2015-05-06
- 1.0.1 — 2015-05-06
- 1.0.0 — 2015-05-06

## README

# Playbulb-live

Node.js module for sending commands to the bluetooth Playbulb Candle and Playbulb Color.

Uses `noble` for BLE communication, and protocol from `https://github.com/Phhere/Playbulb/blob/master/protocols/color.md`

Usage:

    var Playbulb = require('playbulb');
    var pb = new Playbulb.PlaybulbCandle();
    pb.ready(function () {
        pb.setColor(0, 255, 0, 255); // set fixed color in Saturation, R, G, B
    });

## Twitter Demo

There is a demo in `demo-twitter.js` that opens a continuous stream of tweets, performs sentiment analysis on the text, and turns the light green if the sentiment is positive, and red if it is negative.

To get this working, copy `demo-twitter-config.js.example` to `demo-twitter-config.js` and fill in your access keys from `https://apps.twitter.com/`

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