Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kaku/learning problem #34

Open
rickb100 opened this issue Apr 28, 2020 · 6 comments
Open

kaku/learning problem #34

rickb100 opened this issue Apr 28, 2020 · 6 comments

Comments

@rickb100
Copy link

rickb100 commented Apr 28, 2020

@robertklep: thanks for the plugin.
i got the klikaanklikuit plugin installed in homebridge. when i switch a lightbulb in apple home i can measure a voltage pulse (~1V) on the selected pin of the raspberry zero using a multi-meter. so that probably works. Although when I set a device (ACD-200) in learning mode and send an on signal nothing happens.
i tried to install the kaku-rpi to learn the codes as you suggested in other issues although i cannot get that tool installed, see errors below. Do you have any suggestions on this issue?
Thanks.

Linux raspberrypi 4.19.97+ #1294 Thu Jan 30 13:10:54 GMT 2020 armv6l

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

pi@raspberrypi:~ $ node -v
v12.16.2
pi@raspberrypi:~ $ npm -v
6.14.4
pi@raspberrypi:~ $ node-gyp -v
v6.1.0
pi@raspberrypi:~ $ sudo npm i kaku-rpi -g
/usr/local/bin/kaku -> /usr/local/lib/node_modules/kaku-rpi/bin/kaku

[email protected] install /usr/local/lib/node_modules/kaku-rpi/node_modules/rpio
node-gyp rebuild

gyp WARN EACCES current user ("nobody") does not have permission to access the d > ev dir "/root/.cache/node-gyp/12.16.2"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/usr/local/lib/
node_modules/kaku-rpi/node_modules/rpio/.node-gyp"
gyp WARN install got an error, rolling back install
gyp WARN install got an error, rolling back install
gyp ERR! configure error
gyp ERR! stack Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modu les/kaku-rpi/node_modules/rpio/.node-gyp'
gyp ERR! System Linux 4.19.97+
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_mod ules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/local/lib/node_modules/kaku-rpi/node_modules/rpio
gyp ERR! node -v v12.16.2
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional log ging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2020-04-28T14_47_36_771Z-debug.log
pi@raspberrypi:~ $

@robertklep
Copy link
Owner

Try with this:

$  sudo npm i kaku-rpi -g --unsafe-perm

@rickb100
Copy link
Author

Thanks that worked, I was able to install the kaku-rpi!

Although switching/learning the ACD-200 units still did not work. I use a raspberry zero. If I select pin 37 (GPIO 26) and execute for example:

kaku 37 5224 0 1
then i can measure a signal on pin 37 with the multi-meter although the ACD-200 does not switch/learn. I have reset the ACD device before starting.

Any GPIO pin should work right?

I think I will replace the transmitter to check if that solves the issue

@robertklep
Copy link
Owner

robertklep commented Apr 28, 2020

Instead of a numerical address, try using one of A, B, C, D, for instance:

kaku 37 A 0 1

I don't know the ACD-200, perhaps it's an old-style device (or it accepts old-style addresses).

@rickb100
Copy link
Author

rickb100 commented May 2, 2020

thanks for the help. I tried several things and it did not work on the raspberry pi zero. Then switched to a raspberry pi 3 and everything works perfectly.

@robertklep
Copy link
Owner

@rickb100 thanks for the update! I don't know why it doesn't work on the Pi Zero (although I've never tried myself so not sure if it's supposed to work on it at all).

@rickb100
Copy link
Author

rickb100 commented May 2, 2020

I'm not sure, read online that more people had issues with the pi zero and the rf transmitter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants