upgraded rcswitch to a (hopefully) functioinal version

This commit is contained in:
Jan Scheiper 2020-09-29 12:17:12 +02:00
parent 951a4fc3bc
commit 1e7a39d654
3 changed files with 3 additions and 34 deletions

View File

@ -7,7 +7,7 @@ const os = require('os');
let rcswitch; let rcswitch;
if(os.arch() == 'arm' || os.arch() == 'arm64') { if(os.arch() == 'arm' || os.arch() == 'arm64') {
rcswitch = require('rcswitch'); rcswitch = require('rcswitch4');
} else { } else {
/** /**
* "Polyfill" for development purposes. Should run correctly on actual Raspberry PI hardware * "Polyfill" for development purposes. Should run correctly on actual Raspberry PI hardware

31
package-lock.json generated
View File

@ -4,21 +4,6 @@
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,
"dependencies": { "dependencies": {
"bindings": {
"version": "1.4.0",
"resolved": "https://registry.npmjs.org/bindings/-/bindings-1.4.0.tgz",
"integrity": "sha512-7znEVX22Djn+nYjxCWKDne0RRloa9XfYa84yk3s+HkE3LpDYZmhArYr9O9huBoHY3/oXispx5LorIX7Sl2CgSQ==",
"optional": true,
"requires": {
"file-uri-to-path": "1.0.0"
}
},
"file-uri-to-path": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/file-uri-to-path/-/file-uri-to-path-1.0.0.tgz",
"integrity": "sha512-0Zt+s3L7Vf1biwWZ29aARiVYLx7iMGnEUl9x33fbB/j3jR81u/O2LbqK+Bm1CDSNDKVtJ/YjwY7TUd5SkeLQLw==",
"optional": true
},
"homecontrol-control-base": { "homecontrol-control-base": {
"version": "git+https://git.literalchaos.de/jan/homecontrol-control-base.git#809acfad8245dad9d974cba5b1eff2dfc5419cc9", "version": "git+https://git.literalchaos.de/jan/homecontrol-control-base.git#809acfad8245dad9d974cba5b1eff2dfc5419cc9",
"from": "git+https://git.literalchaos.de/jan/homecontrol-control-base.git", "from": "git+https://git.literalchaos.de/jan/homecontrol-control-base.git",
@ -40,26 +25,10 @@
"is-plain-obj": "^1.1" "is-plain-obj": "^1.1"
} }
}, },
"nan": {
"version": "2.12.1",
"resolved": "https://registry.npmjs.org/nan/-/nan-2.12.1.tgz",
"integrity": "sha512-JY7V6lRkStKcKTvHO5NVSQRv+RV+FIL5pvDoLiAtSL9pKlC5x9PKQcZDsq7m4FO4d57mkhC6Z+QhAh3Jdk5JFw==",
"optional": true
},
"node-object-hash": { "node-object-hash": {
"version": "1.4.1", "version": "1.4.1",
"resolved": "https://registry.npmjs.org/node-object-hash/-/node-object-hash-1.4.1.tgz", "resolved": "https://registry.npmjs.org/node-object-hash/-/node-object-hash-1.4.1.tgz",
"integrity": "sha512-JQVqSM5/mOaUoUhCYR0t1vgm8RFo7qpJtPvnoFCLeqQh1xrfmr3BCD3nGBnACzpIEF7F7EVgqGD3O4lao/BY/A==" "integrity": "sha512-JQVqSM5/mOaUoUhCYR0t1vgm8RFo7qpJtPvnoFCLeqQh1xrfmr3BCD3nGBnACzpIEF7F7EVgqGD3O4lao/BY/A=="
},
"rcswitch": {
"version": "0.3.1",
"resolved": "https://registry.npmjs.org/rcswitch/-/rcswitch-0.3.1.tgz",
"integrity": "sha1-zJGN+cUwaczWQycC46cIjcqiwy8=",
"optional": true,
"requires": {
"bindings": "^1.2.1",
"nan": "^2.0.8"
}
} }
} }
} }

View File

@ -1,6 +1,6 @@
{ {
"name": "hc-rcswitch", "name": "hc-rcswitch",
"version": "1.0.0", "version": "1.1.0",
"description": "rcswitch integration for Homecontrol", "description": "rcswitch integration for Homecontrol",
"main": "HCrcswitch.js", "main": "HCrcswitch.js",
"scripts": { "scripts": {
@ -16,6 +16,6 @@
"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"
}, },
"optionalDependencies": { "optionalDependencies": {
"rcswitch": "^0.3.1" "rcswitch4": "^0.4.0"
} }
} }