Having a few issues with Homekit Siri guide (Node.js issue)

Moderator: leecollings

yanic
Posts: 10
Joined: Saturday 31 October 2015 22:39
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Having a few issues with Homekit Siri guide (Node.js issue)

Post by yanic »

Hello. I've just set up Domoticz on an RPI2 using your image and configured 2 Z-wave devices with my Z-stick which seem to work lovely! I have an RGB bulb and a load bearing plug socket.

I am right toward the end of your guide on Homekit : http://www.domoticz.com/wiki/Homekit_Siri

I am on Install dependencies

Code: Select all

node -v
gives the message:

Code: Select all

pi@raspberrypi ~/node.js $ node -v
node: /usr/lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by node)
node: /lib/arm-linux-gnueabihf/libc.so.6: version `GLIBC_2.16' not found (required by node)
libstd++6, python, g++ and MDNS all report that they are the latest version

git clone https://github.com/nfarina/homebridge.git - says the directory allready exists.. so I continue.

Code: Select all

pi@raspberrypi ~/homebridge $ git submodule init
Submodule 'lib/HAP-NodeJS' () registered for path 'lib/HAP-NodeJS'
Then this happens on npm install

Code: Select all

pi@raspberrypi ~/homebridge $ npm install
/usr/local/bin/node: /usr/lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by /usr/l                                                                      ocal/bin/node)
/usr/local/bin/node: /lib/arm-linux-gnueabihf/libc.so.6: version `GLIBC_2.16' not found (required by /usr/local/bin/node                                                                      )
Is that right? I don't really understand the message sorry. I also get a similar message after typing "npm run start" after editing config.json in the homebridge directory.

Thanks for any help anyone can provide - I have made a room with IDX 2 and allocated my 2 z-wave devices in to it. I also made a scene but am not really sure what loadscenes: 0 indicates. So i left it as 0.
Last edited by yanic on Sunday 01 November 2015 13:23, edited 1 time in total.
User avatar
gizmocuz
Posts: 2350
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: Having a few issues with Homekit Siri guide

Post by gizmocuz »

if you used the sdcard image, it was already installed, but not activated (running)
Quality outlives Quantity!
yanic
Posts: 10
Joined: Saturday 31 October 2015 22:39
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Having a few issues with Homekit Siri guide

Post by yanic »

Thanks for the reply Gizmocuz
gizmocuz wrote:if you used the sdcard image, it was already installed, but not activated (running)

ah great, so what do i do next? I.e. to run it? When I try

"npm run start"

I get:

Code: Select all

pi@raspberrypi ~/homebridge $ npm run start
/usr/local/bin/node: /usr/lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by /usr/local/bin/node)
/usr/local/bin/node: /lib/arm-linux-gnueabihf/libc.so.6: version `GLIBC_2.16' not found (required by /usr/local/bin/node)
Does this mean its running? It looks like an error to me no?
yanic
Posts: 10
Joined: Saturday 31 October 2015 22:39
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Having a few issues with Homekit Siri guide

Post by yanic »

I think this is all stemming back to:

Code: Select all

node -v
Giving the error:

Code: Select all

pi@raspberrypi ~/node.js $ node -v
node: /usr/lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by node)
node: /lib/arm-linux-gnueabihf/libc.so.6: version `GLIBC_2.16' not found (required by node)
http://node-arm.herokuapp.com/ - says that this is an error with the install of node. I don't really know whats wrong with it. I tried to reinstall it using

sudo dpkg -i node_latest_armhf.deb

but it still shows that it is missing GLIBCXX_3.4.20.....



When I run: dpkg -l, it shows that the following is installed but still, node -v returns that error

ii node 4.2.1-1 armhf node v4.2.1
ii nodejs 0.10.40-1nodesource1~ armhf Node.js event-based server-side javascript engine
safi78
Posts: 204
Joined: Thursday 05 September 2013 15:39
Target OS: Linux
Domoticz version: LastBeta
Contact:

Re: Having a few issues with Homekit Siri guide

Post by safi78 »

I'm having the same issues too and after Googling around it seems you have to upgrade to jessie for this to work. (Probably a dependency / os-version related stuff)

I'll try: https://www.raspberrypi.org/forums/view ... 6&t=121880 and let you know if this works.
homebridge, rfxcom, zwave, nest, applamp, hue, debian, apple, mysensors, netatmo, fibaro, synology, foscam, otherz
yanic
Posts: 10
Joined: Saturday 31 October 2015 22:39
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Having a few issues with Homekit Siri guide

Post by yanic »

I think I upgraded to Jessie ok but I am still having the same issue.

Code: Select all

pi@raspberrypi ~ $ cat /etc/*-release
PRETTY_NAME="Raspbian GNU/Linux 8 (jessie)"
NAME="Raspbian GNU/Linux"
VERSION_ID="8"
VERSION="8 (jessie)"
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
yanic
Posts: 10
Joined: Saturday 31 October 2015 22:39
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Having a few issues with Homekit Siri guide

Post by yanic »

safi78 wrote:I'm having the same issues too and after Googling around it seems you have to upgrade to jessie for this to work. (Probably a dependency / os-version related stuff)

I'll try: https://www.raspberrypi.org/forums/view ... 6&t=121880 and let you know if this works.
Any luck? I am now on Jessie and still getting:

pi@raspberrypi ~/node.js $ node -v
node: /usr/lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by node)
node: /lib/arm-linux-gnueabihf/libc.so.6: version `GLIBC_2.16' not found (required by node)

Have now rebooted, tried installing to the node.js folder as the tutorial says and in the parent directory. I am guessing that some dependent libraries have not installed or are not compatible with this RPI2 perhaps? Although I have no idea. I wonder if certain aspects of the OS did not update.

"dpkg -l node" - 4.2.1-1 appears installed (it says ii)

"dpkg -l nodejs" - 0.10.40-1nodesource1 appears installed (but it doesnt say ii, it says rc?)


http://www.andrewconnell.com/blog/setup ... rry-pi-2-b - again, followed this guy and the same old issue. Its just an issue with getting node.js working :(
safi78
Posts: 204
Joined: Thursday 05 September 2013 15:39
Target OS: Linux
Domoticz version: LastBeta
Contact:

Re: Having a few issues with Homekit Siri guide (Node.js iss

Post by safi78 »

now on jessie:

Code: Select all

bla@domoticz ~/node.js $ node -v
v4.2.1
So that fixed the dependencies somewhat...

Now with:

Code: Select all

bla@domoticz ~/homebridge $ npm install
npm WARN engine [email protected]: wanted: {"node":"~0.10.0"} (current: {"node":"4.2.1","npm":"2.14.7"})
npm WARN optional dep failed, continuing [email protected]
Don't know if that matters, we'll find out in a sec :)
homebridge, rfxcom, zwave, nest, applamp, hue, debian, apple, mysensors, netatmo, fibaro, synology, foscam, otherz
yanic
Posts: 10
Joined: Saturday 31 October 2015 22:39
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Having a few issues with Homekit Siri guide (Node.js iss

Post by yanic »

I started all over again and got it working. Currently can only turn on and off lights and dim them with siri. Its not working with colours but I am mighty chuffed. Not sure what was wrong with my node.js the first time round.

Hey Siri, turn the bedroom lights off! :D
safi78
Posts: 204
Joined: Thursday 05 September 2013 15:39
Target OS: Linux
Domoticz version: LastBeta
Contact:

Re: Having a few issues with Homekit Siri guide (Node.js iss

Post by safi78 »

'Just started over?' lol

I watched 2 movies before I finished upgrading to jessie and do the node.js stuff ;)

It's somewhat working here as well, now to figure out the logic ...
homebridge, rfxcom, zwave, nest, applamp, hue, debian, apple, mysensors, netatmo, fibaro, synology, foscam, otherz
yanic
Posts: 10
Joined: Saturday 31 October 2015 22:39
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Having a few issues with Homekit Siri guide (Node.js iss

Post by yanic »

Ive added my 2 devices but messed one of them up during the pairing 8key entry thing. Now I cant readd it. Either way, I am sure there is a config file thats stored near that json file that needs some entries deleting and then re-entering.

Hoping to get RGB access to my bulb and on/off to my other plug socket. Not sure siri has those commands yet.

I had a mighty smile when it worked the first time :D - oh and it worked fine on the original file I setup the SD card with without the Jessie upgrade. Quite a lot of moaning from the npm start command about me using the wrong bonjour service or something along these lines.

Let me know how your'e getting on .
safi78
Posts: 204
Joined: Thursday 05 September 2013 15:39
Target OS: Linux
Domoticz version: LastBeta
Contact:

Re: Having a few issues with Homekit Siri guide (Node.js iss

Post by safi78 »

Working like a charm here. Lights On/Off, Dim, but not the colors indeed.

I recognize the 'mighty smile' feeling ;)

This is fun!
homebridge, rfxcom, zwave, nest, applamp, hue, debian, apple, mysensors, netatmo, fibaro, synology, foscam, otherz
safi78
Posts: 204
Joined: Thursday 05 September 2013 15:39
Target OS: Linux
Domoticz version: LastBeta
Contact:

Re: Having a few issues with Homekit Siri guide (Node.js iss

Post by safi78 »

did the:

Code: Select all

sudo npm install forever -g
forever start app.js
work for you?
homebridge, rfxcom, zwave, nest, applamp, hue, debian, apple, mysensors, netatmo, fibaro, synology, foscam, otherz
safi78
Posts: 204
Joined: Thursday 05 September 2013 15:39
Target OS: Linux
Domoticz version: LastBeta
Contact:

Re: Having a few issues with Homekit Siri guide (Node.js iss

Post by safi78 »

Never mind. Works now.


Sent from my iPad using Tapatalk
homebridge, rfxcom, zwave, nest, applamp, hue, debian, apple, mysensors, netatmo, fibaro, synology, foscam, otherz
safi78
Posts: 204
Joined: Thursday 05 September 2013 15:39
Target OS: Linux
Domoticz version: LastBeta
Contact:

Re: Having a few issues with Homekit Siri guide (Node.js iss

Post by safi78 »

homebridge, rfxcom, zwave, nest, applamp, hue, debian, apple, mysensors, netatmo, fibaro, synology, foscam, otherz
yanic
Posts: 10
Joined: Saturday 31 October 2015 22:39
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Having a few issues with Homekit Siri guide (Node.js iss

Post by yanic »

safi78 wrote:did the:

Code: Select all

sudo npm install forever -g
forever start app.js
work for you?

I haven't been back on it tonight we were watching some homeland :-)

I will try this later. Currently I lost access to my 2 switches when the lights restarted and now I'm struggling to add them again. I'm wondering where all the details of the switches that get added by HomeKit are stored and how. Hopefully there is a nice guide somewhere on this.

Thanks dude, we should help one another :)
safi78
Posts: 204
Joined: Thursday 05 September 2013 15:39
Target OS: Linux
Domoticz version: LastBeta
Contact:

Re: Having a few issues with Homekit Siri guide (Node.js iss

Post by safi78 »

already got it 'deamon'-ized? That took me a while lol :P

I don't want to start the script manually everytime, and the wiki kind of ends with the 'forever' thingie... so if you need it, let me know.

I have another little issue, maybe you have this too:

I added my Nest as a platform as well, but I can't find an app that supports (or sees the thermostat functionality) exported by home-bridge ...

Any ideas? Or don't you have a Nest
homebridge, rfxcom, zwave, nest, applamp, hue, debian, apple, mysensors, netatmo, fibaro, synology, foscam, otherz
frizby66
Posts: 33
Joined: Friday 13 November 2015 17:36
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Having a few issues with Homekit Siri guide (Node.js iss

Post by frizby66 »

I also have an issue with Nest and homebridge/siri.

Can see sand control nest in domoticz app but it does not show in home kit. Looks like home bridge is not picking up nest from domoticz. Any suggestions?
--------------------
Raspberry Pi2, RTX433e USB, Philips Hue, Nest, LightwaveRF.
frizby66
Posts: 33
Joined: Friday 13 November 2015 17:36
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Having a few issues with Homekit Siri guide (Node.js iss

Post by frizby66 »

Got Nest working with Siri and Domoticz :-)

Work around was to have Nest assigned to a room which is not noted in the config.json within Homebridge. You will need the Nest plugin for Homebridge as it is not installed with the default homebridge that is supplied with Domoticz. So you use the Nest Homebridge Plugin to control Nest with Siri and the Nest control within Domoticz to control within Domoticz.
--------------------
Raspberry Pi2, RTX433e USB, Philips Hue, Nest, LightwaveRF.
theolsen
Posts: 46
Joined: Wednesday 31 July 2013 11:15
Target OS: -
Domoticz version:
Contact:

Re: Having a few issues with Homekit Siri guide (Node.js iss

Post by theolsen »

frizby66 wrote:Got Nest working with Siri and Domoticz :-)

Work around was to have Nest assigned to a room which is not noted in the config.json within Homebridge. You will need the Nest plugin for Homebridge as it is not installed with the default homebridge that is supplied with Domoticz. So you use the Nest Homebridge Plugin to control Nest with Siri and the Nest control within Domoticz to control within Domoticz.
@frizby66 can you show your config.son here? Obviously redact any secure info.

Thanks.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests