updated magic-home lib, added timeout parameter

This commit is contained in:
Jan Scheiper 2019-11-08 01:02:32 +01:00
parent 3113249771
commit f31a49da6c
4 changed files with 12 additions and 9 deletions

View File

@ -16,6 +16,7 @@ class HCMagicHome extends HCColorLamp {
let opts = {
ack: (this._configuration.ack !== undefined) ? Control.ackMask(this._configuration.ack) : true,
log_all_received: (this._configuration.logall !== undefined) ? this._configuration.logall : false,
connect_timeout: (this._configuration.connect_timeout !== undefined) ? this._configuration.connect_timeout : 10000,
};
this._control = new Control(this._configuration.address, opts);

View File

@ -3,4 +3,6 @@
- `ack`
Bitmask to set `ack` in the constructor.
- `logall`
Sets `log_all_received` in the constructor.
Sets `log_all_received` in the constructor.
- `connect_timeout`
Sets `connect_timeout` in the constructor. (Default: 10000)

12
package-lock.json generated
View File

@ -5,9 +5,9 @@
"requires": true,
"dependencies": {
"commander": {
"version": "2.20.0",
"resolved": "https://registry.npmjs.org/commander/-/commander-2.20.0.tgz",
"integrity": "sha512-7j2y+40w61zy6YC2iRNpUe/NwhNyoXrYpHMrSunaMG64nRnaf96zO/KMQR4OyN/UnE5KLyEBnKHd4aG3rskjpQ=="
"version": "2.20.3",
"resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz",
"integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ=="
},
"homecontrol-control-base": {
"version": "git+https://git.literalchaos.de/jan/homecontrol-control-base.git#c37d47a85bc9f08cba7f4c8aa36ae6c6232800bd",
@ -23,9 +23,9 @@
"integrity": "sha1-caUMhCnfync8kqOQpKA7OfzVHT4="
},
"magic-home": {
"version": "2.2.0",
"resolved": "https://registry.npmjs.org/magic-home/-/magic-home-2.2.0.tgz",
"integrity": "sha512-2awAYAv1N2msMO088HKwj7fNh20XrDl/YmaOceFMYByhwBS+9L3iWpAiwsi/LXwOrJzUu54zhLujYF/m/NfR2w==",
"version": "2.3.0",
"resolved": "https://registry.npmjs.org/magic-home/-/magic-home-2.3.0.tgz",
"integrity": "sha512-Qycy4vzAzDbjr0Ic1zBJ2OzCaHKIkNDIMHGli8ea3HmWwdSKiCcDPgIB5gpyPWxCHg0wcpPPOTd/XLOWyIq4wQ==",
"requires": {
"commander": "^2.20.0",
"merge-options": "^1.0.1"

View File

@ -1,6 +1,6 @@
{
"name": "hc-magichome",
"version": "1.1.0",
"version": "1.2.0",
"description": "Magic Home Plugin for Homecontrol",
"main": "HCMagicHome.js",
"scripts": {
@ -14,6 +14,6 @@
"license": "UNLICENSED",
"dependencies": {
"homecontrol-control-base": "git+https://git.literalchaos.de/jan/homecontrol-control-base.git",
"magic-home": "^2.2.0"
"magic-home": "^2.3.0"
}
}