I have connected some LED christmas lights to GPIO outputs on a RPi with the intention of synchronizing them to music.
In the past I have used lightshowpi which did the job perfectly, however I was hoping to use nodered to do the same.
But thought a good idea would be first try calling lightshowpi from nodered when a button is clicked on the user interface dashboard. This gives the error "Need to setup SYNCHRONIZED_LIGHTS_HOME environment variable, see readme" when attempting to execute python3 /home/pi/lightshowpi/py/synchronized_lights.py in the exec node.
I have tried setting the environment variable in settings.js which hasn't resolved the situation.
Does anybody have any suggestions on how to resolve this?
My other consideration is to have a frequency sampler in node red and use that to trigger the gpio ports.