Socket
Socket
Sign inDemoInstall

iobroker.wifilight

Package Overview
Dependencies
Maintainers
1
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

iobroker.wifilight - npm Package Compare versions

Comparing version 0.1.5 to 0.1.6

6

io-package.json
{
"common": {
"name": "wifilight",
"version": "0.1.5",
"version": "0.1.6",
"news": {
"0.1.6": {
"en": "fixed typo. Caused an object change which caused an adapter restart",
"de": "Tippfehler korrigiert. Führte zu einer Object-Änderung die wiederum zum Adapterneustart führte"
},
"0.1.5": {

@@ -7,0 +11,0 @@ "en": "Possible exception, if wrong device name configured, fixed. Reason is added to the error log.",

2

package.json
{
"name": "iobroker.wifilight",
"version": "0.1.5",
"version": "0.1.6",
"description": "WiFi Light Adapter",

@@ -5,0 +5,0 @@ "author": {

@@ -198,3 +198,3 @@ "use strict";

for (var j in usedStateNames) {
if (j == 'white' && this.cmds.rgbw == undefined) continue;
if (j === 'white' && this.cmds.rgbw === undefined) continue;
var st = Object.assign({}, usedStateNames[j]);

@@ -221,3 +221,3 @@ if ((j === 'progNo' || j==='disco') && this.cmds.programNames) st.common.states = this.cmds.programNames;

case 'on':
this.on_off(channel, val >> 0 ? true : false);
this.on_off(channel, !!(val >> 0));
break;

@@ -235,3 +235,3 @@ case 'rgbw':

var co;
if (typeof val == 'string' && val[0] == '#') {
if (typeof val === 'string' && val[0] === '#') {
co = parseHexColors(val);

@@ -260,11 +260,12 @@ } else {

case usedStateNames.progNo.n:
if (typeof val == 'string') {
var speed;
if (typeof val === 'string') {
var ar = val.split(' ');
if (!ar || ar.lengt < 2) ar = val.split(',');
if (ar && ar.length >= 2) {
var speed = parseInt(ar[1]);
speed = parseInt(ar[1]);
val = parseInt(ar[0]);
}
} else {
var speed = this.getval(channel, usedStateNames.progSpeed.n, 30);
speed = this.getval(channel, usedStateNames.progSpeed.n, 30);
}

@@ -298,4 +299,4 @@ //if (this.cmds._setProgNo) _setProgNo(this, channel, val >> 0); else

if(colors.off !== undefined) {
this.color(channel, {r:0, g:0, b:0, w: colors.w != undefined ? 0 : undefined});
this.states.red = 0; this.states.green = 0; this.states.blue = 0; if (this.states.white != undefined) this.states.white = 0;
this.color(channel, {r:0, g:0, b:0, w: colors.w !== undefined ? 0 : undefined});
this.states.red = 0; this.states.green = 0; this.states.blue = 0; if (this.states.white !== undefined) this.states.white = 0;
}

@@ -308,3 +309,3 @@ var o = fullExtend(this.getRGBStates(channel), colors);

if (o['on'] !== undefined) {
this.on_off(channel, o.on >> 0 ? true : false);
this.on_off(channel, !!(o.on >> 0));
}

@@ -923,3 +924,3 @@ if (colors.r!==undefined || colors.g!==undefined || colors.b!==undefined || colors.w!==undefined || colors.sat!==undefined) {

d.pollIntervall = parseInt(dev.pollIntervall) | 0;
d.pollIntervall = parseInt(d.pollIntervall) | 0;
if (d.pollIntervall && d.pollIntervall < 5) d.pollIntervall = 5;

@@ -943,7 +944,4 @@ d.port = parseInt(d.port) || 5577;

function main() {
//onMessage({command: 'discovery'});
//return;
if (!adapter.config.devices) return;

@@ -950,0 +948,0 @@ checkDeletedDevices(function(err) {

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