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

homebridge-syntex-magichome

Package Overview
Dependencies
Maintainers
1
Versions
423
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

homebridge-syntex-magichome - npm Package Compare versions

Comparing version 1.0.0-b46 to 1.0.0-b47

2

package.json
{
"name": "homebridge-syntex-magichome",
"version": "1.0.0-b46",
"version": "1.0.0-b47",
"description": "Homebridge Plugin for MagicHome LED Strips with preset scenes",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -57,2 +57,4 @@ const LightBulb = require('./accessories/lightBulb');

{
var found = false;
for(var i = 0; i < this.lights.length; i++)

@@ -62,2 +64,4 @@ {

{
found = true;
if(params.power)

@@ -85,7 +89,7 @@ {

response.write('Success');
response.write(found ? 'Success' : 'Error');
}
else
{
response.write('Keine Mac!');
response.write('Keine IP angegeben!');
}

@@ -95,2 +99,26 @@

});
server.addPage('/get-device', (response, params) => {
if(params.ip)
{
var found = null;
for(var i = 0; i < this.lights.length; i++)
{
if(this.lights[i].ip == params.ip)
{
found = this.lights[i].color;
}
}
response.write(found != null ? found : 'Error');
}
else
{
response.write('Keine IP angegeben!');
}
response.end();
});

@@ -97,0 +125,0 @@ lightAgent.setLogger(logger);

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