# huejs

> A module to control Philips Hue lamps

Latest version **0.0.0** (published 2013-11-03) · BSD license · 0 weekly downloads

## Install

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

## 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.0.0 |
| Published | 2013-11-03 |
| First published | 2013-11-03 |
| Weekly downloads | 0 |
| License | BSD |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 (+2 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Felix Hageloh |
| Maintainers | felx |
| Keywords | hue, philips, lamps |

## Links

- npm: https://www.npmjs.com/package/huejs
- Repository: git@github.com:felixhageloh/huejs
- Issues: https://github.com/felixhageloh/huejs/issues
- npm.io page: https://npm.io/package/huejs

## Dependencies (2)

- [request](https://npm.io/package/request.md) ~2.27.0
- [node-ssdp](https://npm.io/package/node-ssdp.md) ~0.1.1

## Recent versions

- 0.0.0 (latest) — 2013-11-03

## README

# huejs

> a nodejs module to control Philips Hue lamps

### VERY EARLY ALPHA STATE!

## Usage

```js
var huejs = require('huejs');

// only needed if a user name has not been configured yet
function prompt(ready) {
  // ask user to press link button, plus some feedback when they are ready
  ...
  ready()
}

huejs.init('myusername', prompt, function (lights) {
  lights[0].setState({ on: true });
});

```

`setState` takes the same arguments as described in section 1.6.2 of the [Hue API](http://developers.meethue.com/1_lightsapi.html)

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