npm

Join us for the "JavaScript Supply Chain Security" tech talk, presented by VP of Security, Adam Baldwin. 6/20 at 10am PT.Sign up here »

yeelight.io

1.0.1 • Public • Published

Description

yeelight is a simple library for you to control YeeLight LED bulb through LAN.

Installation

npm install yeelight

Usage

'use strict';
 
const Bulb = require('yeelight');
const l1 = new Bulb('192.168.10.25');
 
l1.on('connected', () => {
  l1.toggle();
  l1.on();
  l1.off();
  l1.color(255, 0, 0);
});

License

MIT

install

npm i yeelight.io

Downloadsweekly downloads

2

version

1.0.1

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability