# smart-light-disco

> Party mode (or maybe disco mode) for smart lights. Cycle through various colors on an interval

Latest version **1.0.0** (published 2021-01-03) · ISC license · 0 weekly downloads

## Install

```sh
npm install smart-light-disco
pnpm add smart-light-disco
yarn add smart-light-disco
bun add smart-light-disco
```

## 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.0.0 |
| Published | 2021-01-03 |
| First published | 2021-01-03 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 3.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Justin Rudio |
| Maintainers | jrudio |

## Links

- npm: https://www.npmjs.com/package/smart-light-disco
- npm.io page: https://npm.io/package/smart-light-disco

## Dependencies (1)

- [tplink-smarthome-api](https://npm.io/package/tplink-smarthome-api.md) ^3.1.0

## Recent versions

- 1.0.0 (latest) — 2021-01-03

## README

Party Mode For Smart Lights*
===

![](disco_720.gif)

Bulbs supported:

- Kasa KL130

Planned support:

- A19 C by GE

* Only a select few smart bulbs are supported due to access to these bulbs

How to use
===

`npm install smart-light-disco`

```
const { Client } = require('tplink-smarthome-api');
const BulbWrapper = require('smart-light-disco');

const client = new Client();

(async () => {
  const device = await client.getDevice({ host: '192.168.254.35' })

  const isOn = await device.getPowerState()

  if (!isOn) {
    await device.togglePowerState()
  }

  // pass in the device
  const bulb = new BulbWrapper(device)

  // fire up disco
  bulb.startDisco(750)
})()
```

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