homebridge-plugin-wrapper
Advanced tools
Comparing version 0.5.0 to 0.5.1
{ | ||
"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": { |
@@ -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 |
656635
75
8
+ Addedsemver@5.0.3
+ Addedsemver@5.0.3(transitive)