Open StefanMeGit opened 4 years ago
Post your config and what is you gpio -v?
wasn't the one who opened the issue but it is exactly the same as what I'm getting:
pi@raspberrypi:~ $ gpio -v gpio version: 2.46 Copyright (c) 2012-2018 Gordon Henderson This is free software with ABSOLUTELY NO WARRANTY. For details type: gpio -warranty
Raspberry Pi Details: Type: Pi 3+, Revision: 03, Memory: 1024MB, Maker: Sony
@bobisaperson1 I got the same issue. I think I got it working with a reinstall:
sudo npm uninstall -g homebridge-gpio-device
sudo npm install -g homebridge-gpio-device --unsafe-perm
This comes up at the end of the install:
make: *** [nodeWiringPi.target.mk:126: Release/obj.target/nodeWiringPi/src/wiringPi.o] Error 1
make: Leaving directory '/usr/lib/node_modules/homebridge-gpio-device/node_modules/node-wiring-pi/build'
gyp ERR! build error
gyp ERR! stack Error: make
failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack at ChildProcess.emit (events.js:311:20)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
gyp ERR! System Linux 4.19.97-v7+
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "build"
gyp ERR! cwd /usr/lib/node_modules/homebridge-gpio-device/node_modules/node-wiring-pi
gyp ERR! node -v v12.16.1
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
@bobisaperson1, I have the same issue on my RPi 4.
gpio version: 2.46 Copyright (c) 2012-2018 Gordon Henderson This is free software with ABSOLUTELY NO WARRANTY. For details type: gpio -warranty
Raspberry Pi Details: Type: 00, Revision: 02, Memory: 0MB, Maker: Sony
I tried with the WiringPi 2.52 that is updated for RPi4 as well but same Error.
what method of installing homebridge did you use?
I followed this instruction when I installed Homebridge: https://github.com/homebridge/homebridge/wiki/Install-Homebridge-on-Raspbian And I am running it on Raspbian newly installed, so Feb2020 version.
and with wiringpi updated to 2.52. ( I also tested with 2.46 but it doesn't seem fully compatible with RPi 4 as you see in my post above it states type: 00)
how I updated to 2.52: cd /tmp wget https://project-downloads.drogon.net/wiringpi-latest.deb sudo dpkg -i wiringpi-latest.deb
At first! AWESOME PLUGIN! Exactly what I am looking for! Unfortunately the plugin doesn't work for me...
Node v8.11.1
Any idea what is going wrong?