I’m using the rpi-ws281x-python lib to control WS2812 LED stripes.
It was pretty easy to set it up and run some examples on my Pi Zero.
Now I’m doing a couple of .py scripts for my setup - and I want to trigger them with nymea.
I need to run the .py scripts with sudo, like
sudo python3 simontest.py because it needs access to PWM hardware on the Pi.
How can I define that in the command launcher?
I want to properly start and stop any script - tied to nymeas rule engine.