From f31a49da6cd2b3d2b5f750c8077501294f71c26d Mon Sep 17 00:00:00 2001 From: Jan Scheiper Date: Fri, 8 Nov 2019 01:02:32 +0100 Subject: [PATCH] updated magic-home lib, added timeout parameter --- HCMagicHome.js | 1 + README.md | 4 +++- package-lock.json | 12 ++++++------ package.json | 4 ++-- 4 files changed, 12 insertions(+), 9 deletions(-) diff --git a/HCMagicHome.js b/HCMagicHome.js index 0a4f995..0d2023c 100644 --- a/HCMagicHome.js +++ b/HCMagicHome.js @@ -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); diff --git a/README.md b/README.md index 1160fda..b2b292c 100644 --- a/README.md +++ b/README.md @@ -3,4 +3,6 @@ - `ack` Bitmask to set `ack` in the constructor. - `logall` -Sets `log_all_received` in the constructor. \ No newline at end of file +Sets `log_all_received` in the constructor. +- `connect_timeout` +Sets `connect_timeout` in the constructor. (Default: 10000) \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index c4f9c93..319151d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -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" diff --git a/package.json b/package.json index 4d10e16..1ebf6ba 100644 --- a/package.json +++ b/package.json @@ -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" } }