From 1e7a39d654ac4d4ad094c4b57025d2e2cd8bc22f Mon Sep 17 00:00:00 2001 From: Jan Scheiper Date: Tue, 29 Sep 2020 12:17:12 +0200 Subject: [PATCH] upgraded rcswitch to a (hopefully) functioinal version --- HCrcswitch.js | 2 +- package-lock.json | 31 ------------------------------- package.json | 4 ++-- 3 files changed, 3 insertions(+), 34 deletions(-) diff --git a/HCrcswitch.js b/HCrcswitch.js index 7f65f85..823cd26 100644 --- a/HCrcswitch.js +++ b/HCrcswitch.js @@ -7,7 +7,7 @@ const os = require('os'); let rcswitch; if(os.arch() == 'arm' || os.arch() == 'arm64') { - rcswitch = require('rcswitch'); + rcswitch = require('rcswitch4'); } else { /** * "Polyfill" for development purposes. Should run correctly on actual Raspberry PI hardware diff --git a/package-lock.json b/package-lock.json index b19c0dd..1d10b7c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -4,21 +4,6 @@ "lockfileVersion": 1, "requires": true, "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": { "version": "git+https://git.literalchaos.de/jan/homecontrol-control-base.git#809acfad8245dad9d974cba5b1eff2dfc5419cc9", "from": "git+https://git.literalchaos.de/jan/homecontrol-control-base.git", @@ -40,26 +25,10 @@ "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": { "version": "1.4.1", "resolved": "https://registry.npmjs.org/node-object-hash/-/node-object-hash-1.4.1.tgz", "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" - } } } } diff --git a/package.json b/package.json index 69eb1ce..0f2bd24 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "hc-rcswitch", - "version": "1.0.0", + "version": "1.1.0", "description": "rcswitch integration for Homecontrol", "main": "HCrcswitch.js", "scripts": { @@ -16,6 +16,6 @@ "homecontrol-control-base": "git+https://git.literalchaos.de/jan/homecontrol-control-base.git" }, "optionalDependencies": { - "rcswitch": "^0.3.1" + "rcswitch4": "^0.4.0" } }