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 = { let opts = {
ack: (this._configuration.ack !== undefined) ? Control.ackMask(this._configuration.ack) : true, ack: (this._configuration.ack !== undefined) ? Control.ackMask(this._configuration.ack) : true,
log_all_received: (this._configuration.logall !== undefined) ? this._configuration.logall : false, 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); this._control = new Control(this._configuration.address, opts);

View File

@ -3,4 +3,6 @@
- `ack` - `ack`
Bitmask to set `ack` in the constructor. Bitmask to set `ack` in the constructor.
- `logall` - `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, "requires": true,
"dependencies": { "dependencies": {
"commander": { "commander": {
"version": "2.20.0", "version": "2.20.3",
"resolved": "https://registry.npmjs.org/commander/-/commander-2.20.0.tgz", "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz",
"integrity": "sha512-7j2y+40w61zy6YC2iRNpUe/NwhNyoXrYpHMrSunaMG64nRnaf96zO/KMQR4OyN/UnE5KLyEBnKHd4aG3rskjpQ==" "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ=="
}, },
"homecontrol-control-base": { "homecontrol-control-base": {
"version": "git+https://git.literalchaos.de/jan/homecontrol-control-base.git#c37d47a85bc9f08cba7f4c8aa36ae6c6232800bd", "version": "git+https://git.literalchaos.de/jan/homecontrol-control-base.git#c37d47a85bc9f08cba7f4c8aa36ae6c6232800bd",
@ -23,9 +23,9 @@
"integrity": "sha1-caUMhCnfync8kqOQpKA7OfzVHT4=" "integrity": "sha1-caUMhCnfync8kqOQpKA7OfzVHT4="
}, },
"magic-home": { "magic-home": {
"version": "2.2.0", "version": "2.3.0",
"resolved": "https://registry.npmjs.org/magic-home/-/magic-home-2.2.0.tgz", "resolved": "https://registry.npmjs.org/magic-home/-/magic-home-2.3.0.tgz",
"integrity": "sha512-2awAYAv1N2msMO088HKwj7fNh20XrDl/YmaOceFMYByhwBS+9L3iWpAiwsi/LXwOrJzUu54zhLujYF/m/NfR2w==", "integrity": "sha512-Qycy4vzAzDbjr0Ic1zBJ2OzCaHKIkNDIMHGli8ea3HmWwdSKiCcDPgIB5gpyPWxCHg0wcpPPOTd/XLOWyIq4wQ==",
"requires": { "requires": {
"commander": "^2.20.0", "commander": "^2.20.0",
"merge-options": "^1.0.1" "merge-options": "^1.0.1"

View File

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