What is the problem?
I am looking to automate my 3D printing room. And one way of doing that is by using Octoprint on Raspberry Pi and then use the Octoprint software to control LEDs above that respective printer. I want to know if Octoprint can send data to a python script running on the Raspberry Pi.
For example, I have 4 printer for one Pi, now I want the software to send a specific value to the python script when a certain printer is running. When the data is sent it turns on and when the print is finished, a specific value is sent to turn the light off.
Is something like this possible?