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

homebridge-plugin-wrapper

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

homebridge-plugin-wrapper - npm Package Compare versions

Comparing version 0.5.0 to 0.5.1

5

package.json
{
"name": "homebridge-plugin-wrapper",
"version": "0.5.0",
"version": "0.5.1",
"description": "Wrapper for Homebridge and NodeJS-HAP with reduced dependecies",

@@ -26,3 +26,4 @@ "author": {

"chalk": "^1.1.0",
"ip": "^1.1.3"
"ip": "^1.1.3",
"semver": "5.0.3"
},

@@ -29,0 +30,0 @@ "devDependencies": {

12

README.md

@@ -32,4 +32,10 @@ # homebridge-plugin-wrapper

## How to use it?
Basically you create an object instance and providing a configuration object to the constructor. The configuration needs to have a "logger" object with *info* and *debug* functions, a directory to store Homebridge Persist-Files in "homebridgeConfigPath" and finally the Homebridge configuration in "wrapperConfig". See the example file.
Basically you create an object instance and providing a configuration object to the constructor. The configuration needs to have:
* logger: an object with *info* and *debug* functions
* homebridgeConfigPath: a directory to store Homebridge Persist-Files
* wrapperConfig: the Homebridge configuration in "wrapperConfig".
* characteristicPollingInterval: a number in ms in which intervall all values will be read to always stay up to date. This can be used if plugins do not send updates from itself
See the example file.
After that you can register to the following events:

@@ -54,2 +60,6 @@ * characteristic-value-change: This Event will be triggered as soon as a value of one of the characteristics change and also initially to get the initial value. The event contains one object with keys for "accessory", "service", "characteristic" objects, "oldValue" and "newValue". See example.

## 0.5.1
* add option to poll values in defined intervals
* add semver as dep
## 0.4.7

@@ -56,0 +66,0 @@ * add modules ip and chalk as dependecies and remove from mocked

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