• 1
    Instillation
    1. Load raspbin onto a raspberry pi.  I used the Raspberry Pi 1 Model B as I have a few laying around, and loaded 2019-09-26-raspbian-buster-lite onto it.
    2. Install Node Red - I used the bash script
      bash <(curl -sL https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered)
    3. Start Node Red as a service: sudo systemctl enable nodered.service
    4. Install GIT: sudo apt install git
    5. Install node-gyp: sudo npm install -g node-gyp
    6. Install USB Lib: sudo apt install libusb-1.0-0 libusb-1.0-0-dev
    7. Install Libudev: sudo apt install libudev-dev
    8. Plug in module connected to device
    9. Install Green Bean, in the node red directory
      cd ~/.node-red
      npm install green-bean
    10. Add Green bean to the settings.js file for node red:  Add greenBean:require("green-bean") to functionGlobalContext function
    11. Change user permissions of the HID hardware-  /dev/hidraw0 with the following VID/PID: 04d8:fcf0
      echo "KERNEL==\"hidraw*\", SUBSYSTEM==\"hidraw\", ATTRS{idVendor}==\"04d8\", ATTRS{idProduct}==\"fcf0\", MODE=\"0666\"" | sudo tee /etc/udev/rules.d/greenbean-hid.rules