Closed registerednerd closed 3 years ago
https://github.com/bitfocus/companion-module-raspberry-gpio
It already exists. Since it is Pi specific it needs to be installed manually.
I've actually been chasing that module, but I'm having issues getting it installed. I got the filed pulled to the appropriate location, and it shows under instances, but it times out anytime I try to add the module. Is there a guide anywhere to installing a third party module?
The module depends on another one before it will work. I need to check my notes, it has been a couple of months since I got it working.
Aha, that would do it. Looking at the documentation, it looks like it may be the onoff
node module. Trying that now, but that was really easy to miss.
Documenting how to add this to the Companion Pi image...
From the '/usr/local/src/companion' directory:
$ sudo git submodule add -f https://github.com/.../companion-module-raspberry-gpio.git module-local-dev/raspberry-gpio
$ sudo yarn add onoff
Transferring to the pi GPIO module
Particularly on Companion Pi, it would be nice to have access to the GPIO pins on the Pi to use as triggers on input, or to change state as output.