New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

homebridge-syntex-webhooks

Package Overview
Dependencies
Maintainers
1
Versions
1176
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

homebridge-syntex-webhooks - npm Package Compare versions

Comparing version 2.0.7-b11 to 2.0.7-b12

32

index.js

@@ -5,2 +5,3 @@ var request = require('request');

var store = require('json-fs-store');
var convert = require('color-convert');
var Service, Characteristic;

@@ -518,4 +519,4 @@

this.service.getCharacteristic(Characteristic.On).on('get', this.getState.bind(this)).on('set', this.setState.bind(this));
//this.service.addCharacteristic(new Characteristic.Brightness()).on('get', this.getBrightness.bind(this)).on('set', this.setBrightness.bind(this));
this.service.addCharacteristic(new Characteristic.Hue()).on('get', this.getHue.bind(this))/*.on('set', this.setHue.bind(this))*/;
this.service.addCharacteristic(new Characteristic.Brightness())/*.on('get', this.getBrightness.bind(this)).on('set', this.setBrightness.bind(this))*/;
this.service.addCharacteristic(new Characteristic.Hue())/*.on('get', this.getHue.bind(this))*/.on('set', this.setHue.bind(this));
this.service.addCharacteristic(new Characteristic.Saturation())/*.on('get', this.getSaturation.bind(this)).on('set', this.setSaturation.bind(this))*/;

@@ -569,2 +570,29 @@ }

SynTexWebHookStripeRGBAccessory.prototype.setHue = function(level, callback)
{
var rgb = convert.hsv.rgb([level, 100, 100]);
var theRequest = {
method : "GET",
url : "http://192.168.188.155/color?r=" + rgb[0] + "&g=" + rgb[1] + "&b=" + rgb[2],
timeout : 5000
};
request(theRequest, (function(err, response, body)
{
var statusCode = response && response.statusCode ? response.statusCode : -1;
log("Anfrage zu '%s' wurde mit dem Status Code '%s' beendet: '%s'", urlToCall, statusCode, body, err);
if(!err && statusCode == 200)
{
callback(null);
}
else
{
callback(err || new Error("Request to '" + urlToCall + "' was not succesful."));
}
}).bind(this));
};
SynTexWebHookStripeRGBAccessory.prototype.getServices = function()

@@ -571,0 +599,0 @@ {

2

package.json
{
"name": "homebridge-syntex-webhooks",
"version": "2.0.7-b11",
"version": "2.0.7-b12",
"description": "A webhook plugin for HTTP devices",

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

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