balena-labs-projects / balena-node-red

a node-red application with balena-supervisor support, can be managed remotely via balena publicURL
Apache License 2.0
60 stars 59 forks source link

Rpi.GPIO library #14

Closed joearkay closed 5 years ago

joearkay commented 5 years ago

Hi all,

Very new to balena but extremely familar with Node Red. Once installed on a Pi 3, the logs show that the Pi GPIO library is not installed.

Alongside this I added the modbus node to my palette but this won’t install due to a dependency on serial libraries. Is there a way a I can include this in the docker container to be rolled out automatically for future deployments?

Thanks

kanr commented 5 years ago

I think that submitting a Pull request with a patch to correctly install the rpi.gpio library would be in the scope of this repo but the modbus addition would not be and you should fork it.

I have fixed the rpi.gpio dependency before so I can submit a PR as well if thats helpful.

joearkay commented 5 years ago

@kanr if you could submit a PR that would be fab 👍 - I'll fork and do the modbus part. Thanks :)

kanr commented 5 years ago

@joearkay you can merge the above PR into your fork and should now be able to use the UART and I2C nodes in node-red. I am a pretty big fan of Node-Red + Balena and have done lots of experimenting so feel free to reach out if you want/need more help.

joearkay commented 5 years ago

@kanr - have pulled this in and will set up now - thanks!

joearkay commented 5 years ago

@kanr I’ve taken up your offer on reaching out on the forum! Hope that’s ok!

https://forums.balena.io/t/node-red-on-pi-3-to-use-gpio-and-serial-modbus/4444