You are missing the MQTT part in the config.json. Take a look at the config.json example on the github page:
https://github.com/PatchworkBoy/homebridge-edomoticz
Add the missing lines to your config.json and it should work..

Moderator: leecollings
Oh wow, that one changes colour? What's the first one then?rwijbenga wrote:I get an error about hardware:
When I use this JSON command it changes the color:Code: Select all
{ "message" : "Error sending switch command, check device/hardware !", "status" : "ERROR", "title" : "SwitchLight" }
Output:Code: Select all
http://domoticz_url:8080/json.htm?type=command¶m=setcolbrightnessvalue&idx=291&hex=FFC700
I use the RFLink hardware in combination wit MiLight's. Maybe the JSON command are different?Code: Select all
{ "status" : "OK", "title" : "SetColBrightnessValue" }
Code: Select all
pi@raspberrypi:~/domoticz $ sudo apt-get install -y build-essential python-rpi.gpio nodejs
Reading package lists... Done
Building dependency tree
Reading state information... Done
build-essential is already the newest version.
nodejs is already the newest version.
nodejs set to manually installed.
python-rpi.gpio is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
pi@raspberrypi:~/domoticz $ sudo apt-get install libavahi-compat-libdnssd-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
libavahi-client-dev libavahi-common-dev libavahi-compat-libdnssd1 libdbus-1-dev
The following NEW packages will be installed:
libavahi-client-dev libavahi-common-dev libavahi-compat-libdnssd-dev libavahi-compat-libdnssd1 libdbus-1-dev
0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.
Need to get 401 kB of archives.
After this operation, 1,160 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://mirrordirector.raspbian.org/raspbian/ jessie/main libavahi-compat-libdnssd1 armhf 0.6.31-5 [42.9 kB]
Get:2 http://mirrordirector.raspbian.org/raspbian/ jessie/main libavahi-common-dev armhf 0.6.31-5 [61.4 kB]
Get:3 http://mirrordirector.raspbian.org/raspbian/ jessie/main libdbus-1-dev armhf 1.8.20-0+deb8u1 [184 kB]
Get:4 http://mirrordirector.raspbian.org/raspbian/ jessie/main libavahi-client-dev armhf 0.6.31-5 [55.4 kB]
Get:5 http://mirrordirector.raspbian.org/raspbian/ jessie/main libavahi-compat-libdnssd-dev armhf 0.6.31-5 [57.7 kB]
Fetched 401 kB in 1s (286 kB/s)
Selecting previously unselected package libavahi-compat-libdnssd1:armhf.
(Reading database ... 121774 files and directories currently installed.)
Preparing to unpack .../libavahi-compat-libdnssd1_0.6.31-5_armhf.deb ...
Unpacking libavahi-compat-libdnssd1:armhf (0.6.31-5) ...
Selecting previously unselected package libavahi-common-dev.
Preparing to unpack .../libavahi-common-dev_0.6.31-5_armhf.deb ...
Unpacking libavahi-common-dev (0.6.31-5) ...
Selecting previously unselected package libdbus-1-dev:armhf.
Preparing to unpack .../libdbus-1-dev_1.8.20-0+deb8u1_armhf.deb ...
Unpacking libdbus-1-dev:armhf (1.8.20-0+deb8u1) ...
Selecting previously unselected package libavahi-client-dev.
Preparing to unpack .../libavahi-client-dev_0.6.31-5_armhf.deb ...
Unpacking libavahi-client-dev (0.6.31-5) ...
Selecting previously unselected package libavahi-compat-libdnssd-dev.
Preparing to unpack .../libavahi-compat-libdnssd-dev_0.6.31-5_armhf.deb ...
Unpacking libavahi-compat-libdnssd-dev (0.6.31-5) ...
Setting up libavahi-compat-libdnssd1:armhf (0.6.31-5) ...
Setting up libavahi-common-dev (0.6.31-5) ...
Setting up libdbus-1-dev:armhf (1.8.20-0+deb8u1) ...
Setting up libavahi-client-dev (0.6.31-5) ...
Setting up libavahi-compat-libdnssd-dev (0.6.31-5) ...
Processing triggers for libc-bin (2.19-18+deb8u6) ...
pi@raspberrypi:~/domoticz $ sudo apt-get install git
Reading package lists... Done
Building dependency tree
Reading state information... Done
git is already the newest version.
git set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
pi@raspberrypi:~/domoticz $ sudo apt-get install mosquitto
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
mosquitto
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 101 kB of archives.
After this operation, 190 kB of additional disk space will be used.
Get:1 http://mirrordirector.raspbian.org/raspbian/ jessie/main mosquitto armhf 1.3.4-2 [101 kB]
Fetched 101 kB in 0s (136 kB/s)
Selecting previously unselected package mosquitto.
(Reading database ... 121863 files and directories currently installed.)
Preparing to unpack .../mosquitto_1.3.4-2_armhf.deb ...
Unpacking mosquitto (1.3.4-2) ...
Processing triggers for man-db (2.7.0.2-5) ...
Processing triggers for systemd (215-17+deb8u5) ...
Setting up mosquitto (1.3.4-2) ...
Processing triggers for systemd (215-17+deb8u5) ...
pi@raspberrypi:~/domoticz $ sudo npm install -g node-red --unsafe-perm
sudo: npm: command not found
pi@raspberrypi:~/domoticz $ sudo apt-get install npm
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
gyp libc-ares-dev libjs-node-uuid libssl-dev libssl-doc libv8-3.14-dev node-abbrev node-ansi node-ansi-color-table node-archy
node-async node-block-stream node-combined-stream node-cookie-jar node-delayed-stream node-forever-agent node-form-data
node-fstream node-fstream-ignore node-github-url-from-git node-glob node-graceful-fs node-gyp node-inherits node-ini
node-json-stringify-safe node-lockfile node-lru-cache node-mime node-minimatch node-mkdirp node-mute-stream node-node-uuid
node-nopt node-normalize-package-data node-npmlog node-once node-osenv node-qs node-read node-read-package-json node-request
node-retry node-rimraf node-semver node-sha node-sigmund node-slide node-tar node-tunnel-agent node-underscore node-which
nodejs-dev
Suggested packages:
node-hawk node-aws-sign node-oauth-sign node-http-signature
The following NEW packages will be installed:
gyp libc-ares-dev libjs-node-uuid libssl-dev libssl-doc libv8-3.14-dev node-abbrev node-ansi node-ansi-color-table node-archy
node-async node-block-stream node-combined-stream node-cookie-jar node-delayed-stream node-forever-agent node-form-data
node-fstream node-fstream-ignore node-github-url-from-git node-glob node-graceful-fs node-gyp node-inherits node-ini
node-json-stringify-safe node-lockfile node-lru-cache node-mime node-minimatch node-mkdirp node-mute-stream node-node-uuid
node-nopt node-normalize-package-data node-npmlog node-once node-osenv node-qs node-read node-read-package-json node-request
node-retry node-rimraf node-semver node-sha node-sigmund node-slide node-tar node-tunnel-agent node-underscore node-which
nodejs-dev npm
0 upgraded, 54 newly installed, 0 to remove and 0 not upgraded.
Need to get 3,689 kB of archives.
After this operation, 13.3 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://mirrordirector.raspbian.org/raspbian/ jessie/main gyp all 0.1~svn1729-3 [201 kB]
Get:2 http://mirrordirector.raspbian.org/raspbian/ jessie/main libjs-node-uuid all 1.4.0-1 [12.6 kB]
Get:3 http://mirrordirector.raspbian.org/raspbian/ jessie/main libssl-dev armhf 1.0.1t-1+deb8u5 [1,094 kB]
Get:4 http://mirrordirector.raspbian.org/raspbian/ jessie/main libssl-doc all 1.0.1t-1+deb8u5 [1,167 kB]
Get:5 http://mirrordirector.raspbian.org/raspbian/ jessie/main libv8-3.14-dev armhf 3.14.5.8-8.1+rpi1 [108 kB]
Get:6 http://mirrordirector.raspbian.org/raspbian/ jessie/main node-async all 0.8.0-1 [24.6 kB]
Get:7 http://mirrordirector.raspbian.org/raspbian/ jessie/main node-node-uuid all 1.4.0-1 [9,194 B]
Get:8 http://mirrordirector.raspbian.org/raspbian/ jessie/main node-underscore all 1.7.0~dfsg-1 [34.2 kB]
Get:9 http://mirrordirector.raspbian.org/raspbian/ jessie/main libc-ares-dev armhf 1.10.0-2+deb8u1 [131 kB]
Get:10 http://mirrordirector.raspbian.org/raspbian/ jessie/main node-abbrev all 1.0.5-2 [3,540 B]
Get:11 http://mirrordirector.raspbian.org/raspbian/ jessie/main node-ansi all 0.3.0-2 [8,608 B]
Get:12 http://mirrordirector.raspbian.org/raspbian/ jessie/main node-ansi-color-table all 1.0.0-1 [4,408 B]
Get:13 http://mirrordirector.raspbian.org/raspbian/ jessie/main node-archy all 0.0.2-1 [3,620 B]
Get:14 http://mirrordirector.raspbian.org/raspbian/ jessie/main node-inherits all 2.0.1-1 [3,230 B]
Get:15 http://mirrordirector.raspbian.org/raspbian/ jessie/main node-block-stream all 0.0.7-1 [4,550 B]
Get:16 http://mirrordirector.raspbian.org/raspbian/ jessie/main node-delayed-stream all 0.0.5-1 [4,482 B]
Get:17 http://mirrordirector.raspbian.org/raspbian/ jessie/main node-combined-stream all 0.0.5-1 [4,918 B]
Get:18 http://mirrordirector.raspbian.org/raspbian/ jessie/main node-cookie-jar all 0.3.1-1 [3,570 B]
Get:19 http://mirrordirector.raspbian.org/raspbian/ jessie/main node-forever-agent all 0.5.1-1 [3,066 B]
Get:20 http://mirrordirector.raspbian.org/raspbian/ jessie/main node-mime all 1.2.11-1 [18.1 kB]
Get:21 http://mirrordirector.raspbian.org/raspbian/ jessie/main node-form-data all 0.1.0-1 [6,084 B]
Get:22 http://mirrordirector.raspbian.org/raspbian/ jessie/main node-rimraf all 2.2.8-1 [5,668 B]
Get:23 http://mirrordirector.raspbian.org/raspbian/ jessie/main node-mkdirp all 0.5.0-1 [4,634 B]
Get:24 http://mirrordirector.raspbian.org/raspbian/ jessie/main node-graceful-fs all 3.0.2-1 [7,070 B]
Get:25 http://mirrordirector.raspbian.org/raspbian/ jessie/main node-fstream all 0.1.24-1 [17.5 kB]
Get:26 http://mirrordirector.raspbian.org/raspbian/ jessie/main node-lru-cache all 2.3.1-1 [5,344 B]
Get:27 http://mirrordirector.raspbian.org/raspbian/ jessie/main node-sigmund all 1.0.0-1 [3,750 B]
Get:28 http://mirrordirector.raspbian.org/raspbian/ jessie/main node-minimatch all 1.0.0-1 [13.9 kB]
Get:29 http://mirrordirector.raspbian.org/raspbian/ jessie/main node-fstream-ignore all 0.0.6-2 [5,536 B]
Get:30 http://mirrordirector.raspbian.org/raspbian/ jessie/main node-github-url-from-git all 1.1.1-1 [2,986 B]
Get:31 http://mirrordirector.raspbian.org/raspbian/ jessie/main node-once all 1.1.1-1 [2,552 B]
Get:32 http://mirrordirector.raspbian.org/raspbian/ jessie/main node-glob all 4.0.5-1 [13.1 kB]
Get:33 http://mirrordirector.raspbian.org/raspbian/ jessie/main nodejs-dev armhf 0.10.29~dfsg-2 [247 kB]
Get:34 http://mirrordirector.raspbian.org/raspbian/ jessie/main node-nopt all 3.0.1-1 [9,484 B]
Get:35 http://mirrordirector.raspbian.org/raspbian/ jessie/main node-npmlog all 0.0.4-1 [5,516 B]
Get:36 http://mirrordirector.raspbian.org/raspbian/ jessie/main node-osenv all 0.1.0-1 [3,734 B]
Get:37 http://mirrordirector.raspbian.org/raspbian/ jessie/main node-tunnel-agent all 0.3.1-1 [3,840 B]
Get:38 http://mirrordirector.raspbian.org/raspbian/ jessie/main node-json-stringify-safe all 5.0.0-1 [3,356 B]
Get:39 http://mirrordirector.raspbian.org/raspbian/ jessie/main node-qs all 2.2.4-1 [8,474 B]
Get:40 http://mirrordirector.raspbian.org/raspbian/ jessie/main node-request all 2.26.1-1 [15.7 kB]
Get:41 http://mirrordirector.raspbian.org/raspbian/ jessie/main node-semver all 2.1.0-2 [14.9 kB]
Get:42 http://mirrordirector.raspbian.org/raspbian/ jessie/main node-tar all 0.1.18-1 [16.9 kB]
Get:43 http://mirrordirector.raspbian.org/raspbian/ jessie/main node-which all 1.0.5-2 [3,610 B]
Get:44 http://mirrordirector.raspbian.org/raspbian/ jessie/main node-gyp all 0.12.2+ds-1 [19.4 kB]
Get:45 http://mirrordirector.raspbian.org/raspbian/ jessie/main node-ini all 1.1.0-1 [4,720 B]
Get:46 http://mirrordirector.raspbian.org/raspbian/ jessie/main node-lockfile all 0.4.1-1 [5,150 B]
Get:47 http://mirrordirector.raspbian.org/raspbian/ jessie/main node-mute-stream all 0.0.4-1 [4,056 B]
Get:48 http://mirrordirector.raspbian.org/raspbian/ jessie/main node-normalize-package-data all 0.2.2-1 [8,604 B]
Get:49 http://mirrordirector.raspbian.org/raspbian/ jessie/main node-read all 1.0.5-1 [4,262 B]
Get:50 http://mirrordirector.raspbian.org/raspbian/ jessie/main node-read-package-json all 1.2.4-1 [7,740 B]
Get:51 http://mirrordirector.raspbian.org/raspbian/ jessie/main node-retry all 0.6.0-1 [6,124 B]
Get:52 http://mirrordirector.raspbian.org/raspbian/ jessie/main node-sha all 1.2.3-1 [4,064 B]
Get:53 http://mirrordirector.raspbian.org/raspbian/ jessie/main node-slide all 1.1.4-1 [6,078 B]
Get:54 http://mirrordirector.raspbian.org/raspbian/ jessie/main npm all 1.4.21+ds-2 [354 kB]
Fetched 3,689 kB in 10s (347 kB/s)
Extracting templates from packages: 100%
Selecting previously unselected package gyp.
(Reading database ... 121893 files and directories currently installed.)
Preparing to unpack .../gyp_0.1~svn1729-3_all.deb ...
Unpacking gyp (0.1~svn1729-3) ...
Selecting previously unselected package libjs-node-uuid.
Preparing to unpack .../libjs-node-uuid_1.4.0-1_all.deb ...
Unpacking libjs-node-uuid (1.4.0-1) ...
Selecting previously unselected package libssl-dev:armhf.
Preparing to unpack .../libssl-dev_1.0.1t-1+deb8u5_armhf.deb ...
Unpacking libssl-dev:armhf (1.0.1t-1+deb8u5) ...
Selecting previously unselected package libssl-doc.
Preparing to unpack .../libssl-doc_1.0.1t-1+deb8u5_all.deb ...
Unpacking libssl-doc (1.0.1t-1+deb8u5) ...
Selecting previously unselected package libv8-3.14-dev.
Preparing to unpack .../libv8-3.14-dev_3.14.5.8-8.1+rpi1_armhf.deb ...
Unpacking libv8-3.14-dev (3.14.5.8-8.1+rpi1) ...
Selecting previously unselected package node-async.
Preparing to unpack .../node-async_0.8.0-1_all.deb ...
Unpacking node-async (0.8.0-1) ...
Selecting previously unselected package node-node-uuid.
Preparing to unpack .../node-node-uuid_1.4.0-1_all.deb ...
Unpacking node-node-uuid (1.4.0-1) ...
Selecting previously unselected package node-underscore.
Preparing to unpack .../node-underscore_1.7.0~dfsg-1_all.deb ...
Unpacking node-underscore (1.7.0~dfsg-1) ...
Selecting previously unselected package libc-ares-dev:armhf.
Preparing to unpack .../libc-ares-dev_1.10.0-2+deb8u1_armhf.deb ...
Unpacking libc-ares-dev:armhf (1.10.0-2+deb8u1) ...
Selecting previously unselected package node-abbrev.
Preparing to unpack .../node-abbrev_1.0.5-2_all.deb ...
Unpacking node-abbrev (1.0.5-2) ...
Selecting previously unselected package node-ansi.
Preparing to unpack .../node-ansi_0.3.0-2_all.deb ...
Unpacking node-ansi (0.3.0-2) ...
Selecting previously unselected package node-ansi-color-table.
Preparing to unpack .../node-ansi-color-table_1.0.0-1_all.deb ...
Unpacking node-ansi-color-table (1.0.0-1) ...
Selecting previously unselected package node-archy.
Preparing to unpack .../node-archy_0.0.2-1_all.deb ...
Unpacking node-archy (0.0.2-1) ...
Selecting previously unselected package node-inherits.
Preparing to unpack .../node-inherits_2.0.1-1_all.deb ...
Unpacking node-inherits (2.0.1-1) ...
Selecting previously unselected package node-block-stream.
Preparing to unpack .../node-block-stream_0.0.7-1_all.deb ...
Unpacking node-block-stream (0.0.7-1) ...
Selecting previously unselected package node-delayed-stream.
Preparing to unpack .../node-delayed-stream_0.0.5-1_all.deb ...
Unpacking node-delayed-stream (0.0.5-1) ...
Selecting previously unselected package node-combined-stream.
Preparing to unpack .../node-combined-stream_0.0.5-1_all.deb ...
Unpacking node-combined-stream (0.0.5-1) ...
Selecting previously unselected package node-cookie-jar.
Preparing to unpack .../node-cookie-jar_0.3.1-1_all.deb ...
Unpacking node-cookie-jar (0.3.1-1) ...
Selecting previously unselected package node-forever-agent.
Preparing to unpack .../node-forever-agent_0.5.1-1_all.deb ...
Unpacking node-forever-agent (0.5.1-1) ...
Selecting previously unselected package node-mime.
Preparing to unpack .../node-mime_1.2.11-1_all.deb ...
Unpacking node-mime (1.2.11-1) ...
Selecting previously unselected package node-form-data.
Preparing to unpack .../node-form-data_0.1.0-1_all.deb ...
Unpacking node-form-data (0.1.0-1) ...
Selecting previously unselected package node-rimraf.
Preparing to unpack .../node-rimraf_2.2.8-1_all.deb ...
Unpacking node-rimraf (2.2.8-1) ...
Selecting previously unselected package node-mkdirp.
Preparing to unpack .../node-mkdirp_0.5.0-1_all.deb ...
Unpacking node-mkdirp (0.5.0-1) ...
Selecting previously unselected package node-graceful-fs.
Preparing to unpack .../node-graceful-fs_3.0.2-1_all.deb ...
Unpacking node-graceful-fs (3.0.2-1) ...
Selecting previously unselected package node-fstream.
Preparing to unpack .../node-fstream_0.1.24-1_all.deb ...
Unpacking node-fstream (0.1.24-1) ...
Selecting previously unselected package node-lru-cache.
Preparing to unpack .../node-lru-cache_2.3.1-1_all.deb ...
Unpacking node-lru-cache (2.3.1-1) ...
Selecting previously unselected package node-sigmund.
Preparing to unpack .../node-sigmund_1.0.0-1_all.deb ...
Unpacking node-sigmund (1.0.0-1) ...
Selecting previously unselected package node-minimatch.
Preparing to unpack .../node-minimatch_1.0.0-1_all.deb ...
Unpacking node-minimatch (1.0.0-1) ...
Selecting previously unselected package node-fstream-ignore.
Preparing to unpack .../node-fstream-ignore_0.0.6-2_all.deb ...
Unpacking node-fstream-ignore (0.0.6-2) ...
Selecting previously unselected package node-github-url-from-git.
Preparing to unpack .../node-github-url-from-git_1.1.1-1_all.deb ...
Unpacking node-github-url-from-git (1.1.1-1) ...
Selecting previously unselected package node-once.
Preparing to unpack .../node-once_1.1.1-1_all.deb ...
Unpacking node-once (1.1.1-1) ...
Selecting previously unselected package node-glob.
Preparing to unpack .../node-glob_4.0.5-1_all.deb ...
Unpacking node-glob (4.0.5-1) ...
Selecting previously unselected package nodejs-dev.
Preparing to unpack .../nodejs-dev_0.10.29~dfsg-2_armhf.deb ...
Unpacking nodejs-dev (0.10.29~dfsg-2) ...
Selecting previously unselected package node-nopt.
Preparing to unpack .../node-nopt_3.0.1-1_all.deb ...
Unpacking node-nopt (3.0.1-1) ...
Selecting previously unselected package node-npmlog.
Preparing to unpack .../node-npmlog_0.0.4-1_all.deb ...
Unpacking node-npmlog (0.0.4-1) ...
Selecting previously unselected package node-osenv.
Preparing to unpack .../node-osenv_0.1.0-1_all.deb ...
Unpacking node-osenv (0.1.0-1) ...
Selecting previously unselected package node-tunnel-agent.
Preparing to unpack .../node-tunnel-agent_0.3.1-1_all.deb ...
Unpacking node-tunnel-agent (0.3.1-1) ...
Selecting previously unselected package node-json-stringify-safe.
Preparing to unpack .../node-json-stringify-safe_5.0.0-1_all.deb ...
Unpacking node-json-stringify-safe (5.0.0-1) ...
Selecting previously unselected package node-qs.
Preparing to unpack .../node-qs_2.2.4-1_all.deb ...
Unpacking node-qs (2.2.4-1) ...
Selecting previously unselected package node-request.
Preparing to unpack .../node-request_2.26.1-1_all.deb ...
Unpacking node-request (2.26.1-1) ...
Selecting previously unselected package node-semver.
Preparing to unpack .../node-semver_2.1.0-2_all.deb ...
Unpacking node-semver (2.1.0-2) ...
Selecting previously unselected package node-tar.
Preparing to unpack .../node-tar_0.1.18-1_all.deb ...
Unpacking node-tar (0.1.18-1) ...
Selecting previously unselected package node-which.
Preparing to unpack .../node-which_1.0.5-2_all.deb ...
Unpacking node-which (1.0.5-2) ...
Selecting previously unselected package node-gyp.
Preparing to unpack .../node-gyp_0.12.2+ds-1_all.deb ...
Unpacking node-gyp (0.12.2+ds-1) ...
Selecting previously unselected package node-ini.
Preparing to unpack .../node-ini_1.1.0-1_all.deb ...
Unpacking node-ini (1.1.0-1) ...
Selecting previously unselected package node-lockfile.
Preparing to unpack .../node-lockfile_0.4.1-1_all.deb ...
Unpacking node-lockfile (0.4.1-1) ...
Selecting previously unselected package node-mute-stream.
Preparing to unpack .../node-mute-stream_0.0.4-1_all.deb ...
Unpacking node-mute-stream (0.0.4-1) ...
Selecting previously unselected package node-normalize-package-data.
Preparing to unpack .../node-normalize-package-data_0.2.2-1_all.deb ...
Unpacking node-normalize-package-data (0.2.2-1) ...
Selecting previously unselected package node-read.
Preparing to unpack .../node-read_1.0.5-1_all.deb ...
Unpacking node-read (1.0.5-1) ...
Selecting previously unselected package node-read-package-json.
Preparing to unpack .../node-read-package-json_1.2.4-1_all.deb ...
Unpacking node-read-package-json (1.2.4-1) ...
Selecting previously unselected package node-retry.
Preparing to unpack .../node-retry_0.6.0-1_all.deb ...
Unpacking node-retry (0.6.0-1) ...
Selecting previously unselected package node-sha.
Preparing to unpack .../node-sha_1.2.3-1_all.deb ...
Unpacking node-sha (1.2.3-1) ...
Selecting previously unselected package node-slide.
Preparing to unpack .../node-slide_1.1.4-1_all.deb ...
Unpacking node-slide (1.1.4-1) ...
Selecting previously unselected package npm.
Preparing to unpack .../npm_1.4.21+ds-2_all.deb ...
Unpacking npm (1.4.21+ds-2) ...
Processing triggers for man-db (2.7.0.2-5) ...
Setting up gyp (0.1~svn1729-3) ...
Setting up libjs-node-uuid (1.4.0-1) ...
Setting up libssl-dev:armhf (1.0.1t-1+deb8u5) ...
Setting up libssl-doc (1.0.1t-1+deb8u5) ...
Setting up libv8-3.14-dev (3.14.5.8-8.1+rpi1) ...
Setting up node-async (0.8.0-1) ...
Setting up node-node-uuid (1.4.0-1) ...
Setting up node-underscore (1.7.0~dfsg-1) ...
Setting up libc-ares-dev:armhf (1.10.0-2+deb8u1) ...
Setting up node-abbrev (1.0.5-2) ...
Setting up node-ansi (0.3.0-2) ...
Setting up node-ansi-color-table (1.0.0-1) ...
Setting up node-archy (0.0.2-1) ...
Setting up node-inherits (2.0.1-1) ...
Setting up node-block-stream (0.0.7-1) ...
Setting up node-delayed-stream (0.0.5-1) ...
Setting up node-combined-stream (0.0.5-1) ...
Setting up node-cookie-jar (0.3.1-1) ...
Setting up node-forever-agent (0.5.1-1) ...
Setting up node-mime (1.2.11-1) ...
Setting up node-form-data (0.1.0-1) ...
Setting up node-rimraf (2.2.8-1) ...
Setting up node-mkdirp (0.5.0-1) ...
Setting up node-graceful-fs (3.0.2-1) ...
Setting up node-fstream (0.1.24-1) ...
Setting up node-lru-cache (2.3.1-1) ...
Setting up node-sigmund (1.0.0-1) ...
Setting up node-minimatch (1.0.0-1) ...
Setting up node-fstream-ignore (0.0.6-2) ...
Setting up node-github-url-from-git (1.1.1-1) ...
Setting up node-once (1.1.1-1) ...
Setting up node-glob (4.0.5-1) ...
Setting up nodejs-dev (0.10.29~dfsg-2) ...
Setting up node-nopt (3.0.1-1) ...
Setting up node-npmlog (0.0.4-1) ...
Setting up node-osenv (0.1.0-1) ...
Setting up node-tunnel-agent (0.3.1-1) ...
Setting up node-json-stringify-safe (5.0.0-1) ...
Setting up node-qs (2.2.4-1) ...
Setting up node-request (2.26.1-1) ...
Setting up node-semver (2.1.0-2) ...
Setting up node-tar (0.1.18-1) ...
Setting up node-which (1.0.5-2) ...
Setting up node-gyp (0.12.2+ds-1) ...
Setting up node-ini (1.1.0-1) ...
Setting up node-lockfile (0.4.1-1) ...
Setting up node-mute-stream (0.0.4-1) ...
Setting up node-normalize-package-data (0.2.2-1) ...
Setting up node-read (1.0.5-1) ...
Setting up node-read-package-json (1.2.4-1) ...
Setting up node-retry (0.6.0-1) ...
Setting up node-sha (1.2.3-1) ...
Setting up node-slide (1.1.4-1) ...
Setting up npm (1.4.21+ds-2) ...
pi@raspberrypi:~/domoticz $ sudo npm install -g node-red --unsafe-perm
npm WARN engine [email protected]: wanted: {"node":">=0.10.32"} (current: {"node":"0.10.29","npm":"1.4.21"})
npm WARN engine [email protected]: wanted: {"node":">= 0.12"} (current: {"node":"0.10.29","npm":"1.4.21"})
npm WARN engine [email protected]: wanted: {"node":">=0.10.32"} (current: {"node":"0.10.29","npm":"1.4.21"})
> [email protected] install /usr/local/lib/node_modules/node-red/node_modules/bcrypt
> node-gyp rebuild
make: Entering directory '/usr/local/lib/node_modules/node-red/node_modules/bcrypt/build'
CXX(target) Release/obj.target/bcrypt_lib/src/blowfish.o
CXX(target) Release/obj.target/bcrypt_lib/src/bcrypt.o
CXX(target) Release/obj.target/bcrypt_lib/src/bcrypt_node.o
In file included from ../src/bcrypt_node.cc:1:0:
../node_modules/nan/nan.h:324:47: error: ‘REPLACE_INVALID_UTF8’ is not a member of ‘v8::String’
static const unsigned kReplaceInvalidUtf8 = v8::String::REPLACE_INVALID_UTF8;
^
bcrypt_lib.target.mk:84: recipe for target 'Release/obj.target/bcrypt_lib/src/bcrypt_node.o' failed
make: *** [Release/obj.target/bcrypt_lib/src/bcrypt_node.o] Error 1
make: Leaving directory '/usr/local/lib/node_modules/node-red/node_modules/bcrypt/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/share/node-gyp/lib/build.js:267:23)
gyp ERR! stack at ChildProcess.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:809:12)
gyp ERR! System Linux 4.4.26-v7+
gyp ERR! command "nodejs" "/usr/bin/node-gyp" "rebuild"
gyp ERR! cwd /usr/local/lib/node_modules/node-red/node_modules/bcrypt
gyp ERR! node -v v0.10.29
gyp ERR! node-gyp -v v0.12.2
gyp ERR! not ok
npm WARN engine [email protected]: wanted: {"node":">=0.10.40"} (current: {"node":"0.10.29","npm":"1.4.21"})
npm WARN engine [email protected]: wanted: {"node":">=0.10.40"} (current: {"node":"0.10.29","npm":"1.4.21"})
npm WARN engine [email protected]: wanted: {"node":">=0.10.40"} (current: {"node":"0.10.29","npm":"1.4.21"})
npm WARN deprecated [email protected]: you can use npm install i18next from version 2.0.0
npm WARN engine [email protected]: wanted: {"node":">=0.10.40"} (current: {"node":"0.10.29","npm":"1.4.21"})
npm WARN engine [email protected]: wanted: {"node":">=0.10.40"} (current: {"node":"0.10.29","npm":"1.4.21"})
npm WARN engine [email protected]: wanted: {"node":">=0.10.40"} (current: {"node":"0.10.29","npm":"1.4.21"})
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian
> [email protected] install /usr/local/lib/node_modules/node-red/node_modules/ws/node_modules/utf-8-validate
> node-gyp rebuild
make: Entering directory '/usr/local/lib/node_modules/node-red/node_modules/ws/node_modules/utf-8-validate/build'
CXX(target) Release/obj.target/validation/src/validation.o
In file included from ../src/validation.cc:15:0:
../node_modules/nan/nan.h:324:47: error: ‘REPLACE_INVALID_UTF8’ is not a member of ‘v8::String’
static const unsigned kReplaceInvalidUtf8 = v8::String::REPLACE_INVALID_UTF8;
^
validation.target.mk:84: recipe for target 'Release/obj.target/validation/src/validation.o' failed
make: *** [Release/obj.target/validation/src/validation.o] Error 1
make: Leaving directory '/usr/local/lib/node_modules/node-red/node_modules/ws/node_modules/utf-8-validate/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/share/node-gyp/lib/build.js:267:23)
gyp ERR! stack at ChildProcess.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:809:12)
gyp ERR! System Linux 4.4.26-v7+
gyp ERR! command "nodejs" "/usr/bin/node-gyp" "rebuild"
gyp ERR! cwd /usr/local/lib/node_modules/node-red/node_modules/ws/node_modules/utf-8-validate
gyp ERR! node -v v0.10.29
gyp ERR! node-gyp -v v0.12.2
gyp ERR! not ok
npm WARN optional dep failed, continuing [email protected]
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian
> [email protected] install /usr/local/lib/node_modules/node-red/node_modules/ws/node_modules/bufferutil
> node-gyp rebuild
make: Entering directory '/usr/local/lib/node_modules/node-red/node_modules/ws/node_modules/bufferutil/build'
CXX(target) Release/obj.target/bufferutil/src/bufferutil.o
In file included from ../src/bufferutil.cc:16:0:
../node_modules/nan/nan.h:324:47: error: ‘REPLACE_INVALID_UTF8’ is not a member of ‘v8::String’
static const unsigned kReplaceInvalidUtf8 = v8::String::REPLACE_INVALID_UTF8;
^
bufferutil.target.mk:84: recipe for target 'Release/obj.target/bufferutil/src/bufferutil.o' failed
make: *** [Release/obj.target/bufferutil/src/bufferutil.o] Error 1
make: Leaving directory '/usr/local/lib/node_modules/node-red/node_modules/ws/node_modules/bufferutil/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/share/node-gyp/lib/build.js:267:23)
gyp ERR! stack at ChildProcess.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:809:12)
gyp ERR! System Linux 4.4.26-v7+
gyp ERR! command "nodejs" "/usr/bin/node-gyp" "rebuild"
gyp ERR! cwd /usr/local/lib/node_modules/node-red/node_modules/ws/node_modules/bufferutil
gyp ERR! node -v v0.10.29
gyp ERR! node-gyp -v v0.12.2
gyp ERR! not ok
npm WARN optional dep failed, continuing [email protected]
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian
npm WARN optional dep failed, continuing [email protected]
-
> [email protected] install /usr/local/lib/node_modules/node-red/node_modules/node-red-node-serialport/node_modules/serialport
> node-pre-gyp install --fallback-to-build
node-pre-gyp ERR! Tried to download: https://github.com/voodootikigod/node-serialport/releases/download/3.1.2/serialport-v3.1.2-node-v11-linux-arm.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (node-v11 ABI) (falling back to source compile with node-gyp)
make: Entering directory '/usr/local/lib/node_modules/node-red/node_modules/node-red-node-serialport/node_modules/serialport/build'
CXX(target) Release/obj.target/serialport/src/serialport.o
In file included from ../src/./serialport.h:7:0,
from ../src/serialport.cpp:1:
../node_modules/nan/nan.h:324:47: error: ‘REPLACE_INVALID_UTF8’ is not a member of ‘v8::String’
static const unsigned kReplaceInvalidUtf8 = v8::String::REPLACE_INVALID_UTF8;
^
serialport.target.mk:84: recipe for target 'Release/obj.target/serialport/src/serialport.o' failed
make: *** [Release/obj.target/serialport/src/serialport.o] Error 1
make: Leaving directory '/usr/local/lib/node_modules/node-red/node_modules/node-red-node-serialport/node_modules/serialport/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/share/node-gyp/lib/build.js:267:23)
gyp ERR! stack at ChildProcess.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:809:12)
gyp ERR! System Linux 4.4.26-v7+
gyp ERR! command "nodejs" "/usr/bin/node-gyp" "build" "--fallback-to-build" "--module=/usr/local/lib/node_modules/node-red/node_modules/node-red-node-serialport/node_modules/serialport/build/Release/serialport.node" "--module_name=serialport" "--module_path=/usr/local/lib/node_modules/node-red/node_modules/node-red-node-serialport/node_modules/serialport/build/Release"
gyp ERR! cwd /usr/local/lib/node_modules/node-red/node_modules/node-red-node-serialport/node_modules/serialport
gyp ERR! node -v v0.10.29
gyp ERR! node-gyp -v v0.12.2
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute 'node-gyp build --fallback-to-build --module=/usr/local/lib/node_modules/node-red/node_modules/node-red-node-serialport/node_modules/serialport/build/Release/serialport.node --module_name=serialport --module_path=/usr/local/lib/node_modules/node-red/node_modules/node-red-node-serialport/node_modules/serialport/build/Release' (1)
node-pre-gyp ERR! stack at ChildProcess.<anonymous> (/usr/local/lib/node_modules/node-red/node_modules/node-red-node-serialport/node_modules/serialport/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:98:17)
node-pre-gyp ERR! stack at maybeClose (child_process.js:755:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:822:5)
node-pre-gyp ERR! System Linux 4.4.26-v7+
node-pre-gyp ERR! command "node" "/usr/local/lib/node_modules/node-red/node_modules/node-red-node-serialport/node_modules/serialport/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /usr/local/lib/node_modules/node-red/node_modules/node-red-node-serialport/node_modules/serialport
node-pre-gyp ERR! node -v v0.10.29
node-pre-gyp ERR! node-pre-gyp -v v0.6.28
node-pre-gyp ERR! not ok
Failed to execute 'node-gyp build --fallback-to-build --module=/usr/local/lib/node_modules/node-red/node_modules/node-red-node-serialport/node_modules/serialport/build/Release/serialport.node --module_name=serialport --module_path=/usr/local/lib/node_modules/node-red/node_modules/node-red-node-serialport/node_modules/serialport/build/Release' (1)
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian
npm WARN optional dep failed, continuing [email protected]
/usr/local/bin/node-red -> /usr/local/lib/node_modules/node-red/red.js
/usr/local/bin/node-red-pi -> /usr/local/lib/node_modules/node-red/bin/node-red-pi
[email protected] /usr/local/lib/node_modules/node-red
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected]
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected]
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected], [email protected])
└── [email protected] ([email protected])
pi@raspberrypi:~/domoticz $ sudo wget https://raw.githubusercontent.com/node-red/raspbian-deb-package/master/resources/nodered.service -O /lib/systemd/system/nodered.service
--2016-10-28 09:50:15-- https://raw.githubusercontent.com/node-red/raspbian-deb-package/master/resources/nodered.service
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.12.133
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.12.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 888 [text/plain]
Saving to: ‘/lib/systemd/system/nodered.service’
/lib/systemd/system/nodered.serv 100%[============================================================>] 888 --.-KB/s in 0s
2016-10-28 09:50:15 (4.00 MB/s) - ‘/lib/systemd/system/nodered.service’ saved [888/888]
pi@raspberrypi:~/domoticz $
pi@raspberrypi:~/domoticz $ sudo wget https://raw.githubusercontent.com/node-red/raspbian-deb-package/master/resources/node-red-start -O /usr/bin/node-red-start
--2016-10-28 09:50:24-- https://raw.githubusercontent.com/node-red/raspbian-deb-package/master/resources/node-red-start
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.16.133
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.16.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1863 (1.8K) [text/plain]
Saving to: ‘/usr/bin/node-red-start’
/usr/bin/node-red-start 100%[============================================================>] 1.82K --.-KB/s in 0s
2016-10-28 09:50:25 (12.8 MB/s) - ‘/usr/bin/node-red-start’ saved [1863/1863]
pi@raspberrypi:~/domoticz $ sudo wget https://raw.githubusercontent.com/node-red/raspbian-deb-package/master/resources/node-red-stop -O /usr/bin/node-red-stop
--2016-10-28 09:50:29-- https://raw.githubusercontent.com/node-red/raspbian-deb-package/master/resources/node-red-stop
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.16.133
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.16.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 226 [text/plain]
Saving to: ‘/usr/bin/node-red-stop’
/usr/bin/node-red-stop 100%[============================================================>] 226 --.-KB/s in 0s
2016-10-28 09:50:29 (94.0 MB/s) - ‘/usr/bin/node-red-stop’ saved [226/226]
pi@raspberrypi:~/domoticz $ sudo chmod +x /usr/bin/node-red-st*
pi@raspberrypi:~/domoticz $ sudo npm install -g homebridge --unsafe-perm
npm WARN engine [email protected]: wanted: {"node":">=4.3.2"} (current: {"node":"0.10.29","npm":"1.4.21"})
npm WARN engine [email protected]: wanted: {"node":">=4.3.2"} (current: {"node":"0.10.29","npm":"1.4.21"})
> [email protected] install /usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/node_modules/curve25519-n
> node-gyp rebuild
make: Entering directory '/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/node_modules/curve25519-n/build'
CXX(target) Release/obj.target/curve/node_curve.o
In file included from ../node_curve.cc:9:0:
../node_modules/nan/nan.h:324:47: error: ‘REPLACE_INVALID_UTF8’ is not a member of ‘v8::String’
static const unsigned kReplaceInvalidUtf8 = v8::String::REPLACE_INVALID_UTF8;
^
curve.target.mk:82: recipe for target 'Release/obj.target/curve/node_curve.o' failed
make: *** [Release/obj.target/curve/node_curve.o] Error 1
make: Leaving directory '/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/node_modules/curve25519-n/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/share/node-gyp/lib/build.js:267:23)
gyp ERR! stack at ChildProcess.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:809:12)
gyp ERR! System Linux 4.4.26-v7+
gyp ERR! command "nodejs" "/usr/bin/node-gyp" "rebuild"
cwd /usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/node_modules/curve25519-n
gyp ERR! node -v v0.10.29
gyp ERR! node-gyp -v v0.12.2
gyp ERR! not ok
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian
> [email protected] install /usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/node_modules/mdns
> node-gyp rebuild
-
gyp ERR! UNCAUGHT EXCEPTION
gyp ERR! stack Error: ENOENT, no such file or directory
gyp ERR! stack at process.cwd (/usr/lib/nodejs/graceful-fs/polyfills.js:8:19)
gyp ERR! stack at Object.exports.resolve (path.js:309:52)
gyp ERR! stack at configure (/usr/share/node-gyp/lib/configure.js:26:23)
gyp ERR! stack at Object.self.commands.(anonymous function) [as configure] (/usr/share/node-gyp/lib/node-gyp.js:66:37)
gyp ERR! stack at run (/usr/share/node-gyp/bin/node-gyp.js:72:30)
gyp ERR! stack at process._tickCallback (node.js:419:13)
gyp ERR! System Linux 4.4.26-v7+
gyp ERR! command "nodejs" "/usr/bin/node-gyp" "rebuild"
/usr/lib/nodejs/graceful-fs/polyfills.js:8
cwd = origCwd.call(process)
^
Error: ENOENT, no such file or directory
at process.cwd (/usr/lib/nodejs/graceful-fs/polyfills.js:8:19)
at errorMessage (/usr/share/node-gyp/bin/node-gyp.js:119:28)
at issueMessage (/usr/share/node-gyp/bin/node-gyp.js:125:3)
at process.<anonymous> (/usr/share/node-gyp/bin/node-gyp.js:109:3)
at process.emit (events.js:95:17)
at process._fatalException (node.js:272:26)
npm ERR! Error: ENOENT, lstat '/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/node_modules/srp/node_modules/bignum/node_modules/node-pre-gyp/node_modules/nopt/README.md'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR! <http://github.com/npm/npm/issues>
npm ERR! System Linux 4.4.26-v7+
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "-g" "homebridge" "--unsafe-perm"
npm ERR! cwd /home/pi/domoticz
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.21
npm ERR! path /usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/node_modules/srp/node_modules/bignum/node_modules/node-pre-gyp/node_modules/nopt/README.md
npm ERR! fstream_path /usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/node_modules/srp/node_modules/bignum/node_modules/node-pre-gyp/node_modules/nopt/README.md
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/lib/nodejs/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (evalmachine.<anonymous>:107:15)
npm ERR! error rolling back Error: ENOTEMPTY, rmdir '/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/node_modules/srp/node_modules/bignum/node_modules/node-pre-gyp/node_modules/npmlog'
npm ERR! error rolling back [email protected] { [Error: ENOTEMPTY, rmdir '/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/node_modules/srp/node_modules/bignum/node_modules/node-pre-gyp/node_modules/npmlog']
npm ERR! error rolling back errno: 53,
npm ERR! error rolling back code: 'ENOTEMPTY',
npm ERR! error rolling back path: '/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/node_modules/srp/node_modules/bignum/node_modules/node-pre-gyp/node_modules/npmlog' }
npm ERR! Error: ENOENT, lstat '/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/node_modules/srp/node_modules/bignum/node_modules/node-pre-gyp/node_modules/semver/README.md'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR! <http://github.com/npm/npm/issues>
npm ERR! System Linux 4.4.26-v7+
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "-g" "homebridge" "--unsafe-perm"
npm ERR! cwd /home/pi/domoticz
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.21
npm ERR! path /usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/node_modules/srp/node_modules/bignum/node_modules/node-pre-gyp/node_modules/semver/README.md
npm ERR! fstream_path /usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/node_modules/srp/node_modules/bignum/node_modules/node-pre-gyp/node_modules/semver/README.md
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/lib/nodejs/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (evalmachine.<anonymous>:107:15)
npm ERR! Error: ENOENT, lstat '/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/node_modules/srp/node_modules/bignum/node_modules/node-pre-gyp/node_modules/tar/LICENSE'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR! <http://github.com/npm/npm/issues>
npm ERR! System Linux 4.4.26-v7+
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "-g" "homebridge" "--unsafe-perm"
npm ERR! cwd /home/pi/domoticz
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.21
npm ERR! path /usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/node_modules/srp/node_modules/bignum/node_modules/node-pre-gyp/node_modules/tar/LICENSE
npm ERR! fstream_path /usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/node_modules/srp/node_modules/bignum/node_modules/node-pre-gyp/node_modules/tar/LICENSE
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/lib/nodejs/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (evalmachine.<anonymous>:107:15)
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian
> [email protected] install /usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/node_modules/ed25519
> node-gyp rebuild
pi@raspberrypi:~/domoticz $ sudo npm install -g homebridge-edomoticz --unsafe-perm
npm WARN engine [email protected]: wanted: {"node":">=0.12.0","homebridge":">=0.2.5"} (current: {"node":"0.10.29","npm":"1.4.21"})
npm WARN deprecated [email protected]: ReDoS vulnerability parsing Set-Cookie https://nodesecurity.io/advisories/130
npm WARN engine [email protected]: wanted: {"node":">=0.10.32"} (current: {"node":"0.10.29","npm":"1.4.21"})
npm WARN engine [email protected]: wanted: {"node":">=0.10.40"} (current: {"node":"0.10.29","npm":"1.4.21"})
npm WARN engine [email protected]: wanted: {"node":">=0.10.40"} (current: {"node":"0.10.29","npm":"1.4.21"})
npm WARN engine [email protected]: wanted: {"node":">=0.10.40"} (current: {"node":"0.10.29","npm":"1.4.21"})
[email protected] /usr/local/lib/node_modules/homebridge-edomoticz
├── [email protected]
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
└── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
Now I reinstalled with DOmoticz SD images... I followed step by step the first post on this topic...Marci wrote:Everyone trying to do barebones from scratch via method 3 / InstallGuide on repo:
USE THE PRECONFIGURED DOMOTICZ IMAGES FROM DOMOTICZ.COM
Then follow method 1 or 2.
We are here to support running the plugin.
Code: Select all
pi@raspberrypi:~$ DEBUG=* homebridge -D
*** WARNING *** The program 'node' uses the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=node>
*** WARNING *** The program 'node' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=node&f=DNSServiceRegister>
[10/28/2016, 1:38:45 PM] Loaded plugin: homebridge-edomoticz
[10/28/2016, 1:38:46 PM] Registering accessory 'homebridge-edomoticz.eDomoticz'
[10/28/2016, 1:38:46 PM] Registering platform 'homebridge-edomoticz.eDomoticz'
[10/28/2016, 1:38:46 PM] ---
[10/28/2016, 1:38:46 PM] Loaded config.json with 0 accessories and 1 platforms.
[10/28/2016, 1:38:46 PM] ---
[10/28/2016, 1:38:46 PM] Loading 1 platforms...
[10/28/2016, 1:38:46 PM] [eDomoticz] Initializing eDomoticz platform...
[10/28/2016, 1:38:46 PM] [eDomoticz] Fetching Domoticz lights and switches...
[10/28/2016, 1:38:46 PM] Loading 0 accessories...
[10/28/2016, 1:38:46 PM] [eDomoticz] Initializing platform accessory 'Accento Ingresso'...
[10/28/2016, 1:38:46 PM] [eDomoticz] Initializing platform accessory 'CPU_Usage'...
[10/28/2016, 1:38:46 PM] [eDomoticz] Initializing platform accessory 'Corridoio Cupola'...
[10/28/2016, 1:38:46 PM] [eDomoticz] Initializing platform accessory 'Corridoio Fioriera'...
[10/28/2016, 1:38:46 PM] [eDomoticz] Initializing platform accessory 'Corridoio e Anticamera'...
[10/28/2016, 1:38:46 PM] [eDomoticz] Initializing platform accessory 'Cupola Xmas'...
[10/28/2016, 1:38:46 PM] [eDomoticz] Initializing platform accessory 'Esterno Cupola'...
[10/28/2016, 1:38:46 PM] [eDomoticz] Initializing platform accessory 'Facciata'...
[10/28/2016, 1:38:46 PM] [eDomoticz] Initializing platform accessory 'Fotovoltaico'...
[10/28/2016, 1:38:46 PM] [eDomoticz] Initializing platform accessory 'Lampada Sala'...
[10/28/2016, 1:38:46 PM] [eDomoticz] Initializing platform accessory 'Lampione'...
[10/28/2016, 1:38:46 PM] [eDomoticz] Initializing platform accessory 'Lanterna Ingresso'...
[10/28/2016, 1:38:46 PM] [eDomoticz] Initializing platform accessory 'Lanterna Nonna'...
[10/28/2016, 1:38:46 PM] [eDomoticz] Initializing platform accessory 'Luci'...
[10/28/2016, 1:38:46 PM] [eDomoticz] Initializing platform accessory 'Luci Cancellino'...
[10/28/2016, 1:38:46 PM] [eDomoticz] Initializing platform accessory 'MacBook'...
[10/28/2016, 1:38:46 PM] [eDomoticz] Initializing platform accessory 'Memory Usage'...
[10/28/2016, 1:38:46 PM] [eDomoticz] Initializing platform accessory 'Pulsante Cancello'...
[10/28/2016, 1:38:46 PM] [eDomoticz] Initializing platform accessory 'Riavvio Modem'...
[10/28/2016, 1:38:46 PM] [eDomoticz] Initializing platform accessory 'Riavvio RaspBerry'...
[10/28/2016, 1:38:46 PM] [eDomoticz] Initializing platform accessory 'Riavvio WiFi'...
[10/28/2016, 1:38:46 PM] [eDomoticz] Initializing platform accessory 'iPad'...
[10/28/2016, 1:38:46 PM] [eDomoticz] Initializing platform accessory 'iPhone'...
Scan this code with your HomeKit App on your iOS device to pair with Homebridge:
┌────────────┐
│ 031-45-154 │
└────────────┘
events.js:160
throw er; // Unhandled 'error' event
^
Error: listen EADDRINUSE :::51826
at Object.exports._errnoException (util.js:1012:11)
at exports._exceptionWithHostPort (util.js:1035:20)
at Server._listen2 (net.js:1252:14)
at listen (net.js:1288:10)
at Server.listen (net.js:1384:5)
at EventedHTTPServer.listen (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/util/eventedhttp.js:59:19)
at HAPServer.listen (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/HAPServer.js:157:20)
at Bridge.Accessory.publish (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:496:16)
at Server._publish (/usr/local/lib/node_modules/homebridge/lib/server.js:111:16)
at Server.<anonymous> (/usr/local/lib/node_modules/homebridge/lib/server.js:369:14)
Hahaha nice one!!rwijbenga wrote:@TheRamon
I am also not at home but I updated remotely, and when I change the color I can see it working with my webcam.![]()
I will test some more @home but for now it looks like it is working again!
bdormael wrote:I'm using the SecPanel switch from Domoticz in Home, which is showing in Home as an Alarm switch, this is really cool.
I'm aware that it's read only for now, no issue with that.
Small issue I've encountered is when the status changes in Domoticz from eg. Home to Away, when opening Home the first time, it is not updated.
When closing Home, then opening again, it is updated properly.
I don't have this with other switches from Domoticz.
Is this something that can be looked at or is it not supported properly yet ?
Thank you, I started home bridge manually but it was already in useTheRamon wrote:Looks like you already have a "homebridge" version running.. Maybe try asking the guys from homebridge why their version is still running or try killing it.
Agree with Marci though, the plugin is running fine, but you can't seem to get your homebridge running. Ofcourse we'd want to help you, but it really clutters up the topic. Anyhow, try a complete restart of your device and check the logs after. Do not start homebridge manually, since then there are two versions running. Try googling the errors, too. Really helps.
First things first - guys (Marci, TheRamon), great work with the plugin. Really enjoying the latest improvements!TheRamon wrote:@rwijbenga:
I have just committed a new version on the master branch. I have changed the command to the one that is working on your side. Have just tried with a Hue emulator (since I don't have any hue lamp at work) and I have ironed out some more bugs regarding brightness.
Would you try checking out the master branch and trying again?
Thanks in advance.
Code: Select all
http://url:port/json.htm?type=command¶m=setcolbrightnessvalue&idx=116&hue=233&brightness=50&iswhite=false
Cool, that would be great of course!simon_rb wrote:With the squeezebox players we are trying to map the dimmers to the volume controls so saying turn on kitchen radio would turn it on and saying set kitchen radio to 50 would set the volume to 50. Also be able to adjust the volume from within the native home app and from Apple Watch. Just not quite worked out how to map them yet. Marci was looking into I think with a custom handler..
Code: Select all
{
"bridge": {
"name": "Homebridge",
"username": "CC:21:3E:E4:DE:33",
"port": 51826,
"pin": "031-45-154"
},
"description": "Configuration file for (e)xtended Domoticz platform.",
"platforms": [
{
"platform": "eDomoticz",
"name": "eDomoticz",
"server": "192.168.1.5",
"port": "8080",
"ssl": 0,
"roomid": 3,
"mqttenable": 1,
"mqttserver": "192.168.1.5",
"mqttport": "1883",
"mqttauth": 0,
"mqttuser": "",
"mqttpass": ""
}
],
"accessories": []
}
Users browsing this forum: No registered users and 1 guest