Wanted to experiment using Balena on the raspberry pi and I came to this idea that might be useful to people that streams during zoom calls. You can give them the balena public url and they will be able to interact from the web sending you messages or changing lights or buzz...
I am using balena and I run 2 containers.
Python Container
This container has a flask server to receive the commands from the nodejs container running the webserver that you can access via the public URL
Here we run the rainbow hat commands in python and we command the actions by receiving post request from the node js container.
It is very simple and you can add more functionality to it if you wish.
NodeJs Container
Here we run the web server. It hosts the html webpage and the server side to talk to the python container. The python container is not exposed to the public URL so the communication needs to be done from the Nodejs container to the the python server internally
This is also a good starter project that has all the configuration to communicate a nodejs server in express to a python container to run hardware.
Remember to send me a message, buzz or change the light color. I will keep this running so I will know when someone reads the project. public URL
Comments