Node-red-contrib-usbhid raspberry PI 3

I am trying to utilize this node on a Raspberry PI 3 however it errors during install of the node. I traced it back to the original usbhid not being compiled for the PI3 arm chip. Can someone help me figure out how to get this working for my pi3?

If you can share the actual error message it may help.


I created this issue that documents the error. It looks like a simple compile issue but it is beyond my capabilities at this point to do that.

In an effort to not have the same conversation in two places, I'm just going to post that I've responded to the issue -

You are on an ancient version of npm that is probably causing the install issues. I've pointed you at our update script for the Pi.

Thanks, still having a problem. I documented the details in the github link.


I did get it working. Here are the details for other newbies like me. Don't exactly understand everything here but it worked! After the below steps all you need to do is reboot and install the USBHID Nodes

pi@100S_QA_PI:~ $ cd .node-red

pi@100S_QA_PI:/.node-red $ sudo npm install -g node-gyp

pi@100S_QA_PI:/.node-red $ sudo apt install libusb-1.0-0 libusb-1.0-0-dev

pi@100S_QA_PI:/.node-red $ sudo apt-get install libudev-dev

pi@100S_QA_PI:/.node-red $ sudo npm install node-hid --build-from-source --unsafe-perm

pi@100S_QA_PI:/.node-red $ sudo mkdir -p /etc/udev/rules.d

pi@100S_QA_PI:/.node-red $ sudo nano /etc/udev/rules.d/85-pure-data.rules
SUBSYSTEM=="usb", GROUP="input", MODE="777"

pi@100S_QA_PI:/.node-red $

pi@100S_QA_PI:/.node-red $ sudo groupadd -f input

pi@100S_QA_PI:/.node-red $

pi@100S_QA_PI:/.node-red $ sudo gpasswd -a pi input