bitfocus / companion-module-raspberry-gpio

MIT License
7 stars 0 forks source link

Raspberry Pi GPIO #4

Closed registerednerd closed 3 years ago

registerednerd commented 3 years ago

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.

istnv commented 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.

registerednerd commented 3 years ago

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?

istnv commented 3 years ago

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.

registerednerd commented 3 years ago

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.

istnv commented 3 years ago

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

josephdadams commented 3 years ago

Transferring to the pi GPIO module