Hi, I have code very similar to the code for the pi xmas tree.
https://thepihut.com/products/3d-xmas-t ... spberry-pi
I want to start the script remotely from python doing `python3 script.py &` in subprocess
Then I want to somehow stop the script.
What is the best way to either get the pid of the running script (baring in mind more than one python3 process is running) and killing it from python.
When it gets 'killed' I want to catch this and turn the led's off.
I wasn't sure where to put this question, any help will be greatly appreciated!