
Product
Reachability for Ruby Now in Beta
Reachability analysis for Ruby is now in beta, helping teams identify which vulnerabilities are truly exploitable in their applications.
milight-wifi-box
Advanced tools
This is a lightweight class for communicating with the MiLight/LimitlessLED/AppLamp WiFi box.
const { MiBoxConnection } = require("milight-wifi-box");
//create the connection
const ip = "192.168.1.5";
const port = 5987; //optional
let miConnection = new MiBoxConnection(ip, port);
let group = 1;
let lightType = "rgbww"; //can be "rgbww", "rgbw", or anything else for the default
miConnection.sendOnCmd(lightType, group);
miConnection.sendBrightnessCmd(100, lightType, group); //brightness can be between 0-100
miConnection.sendHueCmd(255, lightType, group); //hue can be between 0-255
miConnection.sendSaturationCmd(100, lightType, group); //saturation can be between 0-100
miConnection.sendKelvinCmd(100, lightType, group); //for rgbww lights, kelvin can be between 0-100
miConnection.sendOffCmd(lightType, group);
//the group and lightType arguments are optional
//you can also change the default group and lightType like this
miConnection.defaultLightType = "rgbw"; //default is "rgbww"
miConnection.defaultGroup = 1; //default is 0
miConnection.sendOnCmd();
miConnection.sendBrightnessCmd(100);
//or additionally you can set the rgb of a light,
//this will automatically be converted to the right commands using hsv
miConnection.setRgb(255, 255, 0);
FAQs
Lightweight class for connecting to the MiLight wifi box
The npm package milight-wifi-box receives a total of 3 weekly downloads. As such, milight-wifi-box popularity was classified as not popular.
We found that milight-wifi-box demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Product
Reachability analysis for Ruby is now in beta, helping teams identify which vulnerabilities are truly exploitable in their applications.

Research
/Security News
Malicious npm packages use Adspect cloaking and fake CAPTCHAs to fingerprint visitors and redirect victims to crypto-themed scam sites.

Security News
Recent coverage mislabels the latest TEA protocol spam as a worm. Here’s what’s actually happening.