Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Socket
Sign inDemoInstall

milight

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

milight

A node.js milight library.


Version published
Weekly downloads
6
decreased by-14.29%
Maintainers
1
Weekly downloads
 
Created
Source

Nodejs-Milight

Nodejs for Milight RGB lights

Beware: there is no acknowledge from the milight module !

Installation

$ npm install milight

API Usage

var Milight = require("milight");

var milight = new Milight({
	host: "192.168.0.255",
	broadcast: true
});

// All zones on
milight.on();

// Zone 1 : red color
milight.zone(1).rgb("#FF0000");

// Zone 2 and 3: white light 50%
milight.zone([2,3]).white(50, function(error) {
  // Command sent !
});

##Configuration Milight constructor accepts an optional configuration object. At the moment, the following is supported:

  • host String Hostname of milight module. Default : '255.255.255.255'
  • port Number Specifies the port of milight module. Default : 8899
  • broadcast Boolean Use broadcast udp socket. Default : 'true'
  • delayBetweenMessages Number Delay between messages in milliseconds. Default : 200ms

Author

Olivier Oeuillot

Contributors

https://github.com/oeuillot/node-milight/graphs/contributors

Keywords

FAQs

Package last updated on 16 Nov 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc