Automatic webcam shutdown after print is done

Hi,
I am running the latest version of octoprint on a Raspi B3+ and everything works fine so far.
@Gina: Great job !!

Now I would like to know if there is any possibility to shutdown the webcam automatically when the print is done. The Pi is running 24/7 because he manages other things as well. So shutting down the Pi is not what I need.
I found some ways to shut down the printer, but nothing about the webcam. By using the "system command editor" I added some command lines to start and shutdown the webcam (I am using the raspi webcam) manually. But now I donΒ΄t have a clou, how to get it done automatically. Is there a gcode for starting a script or so?

Has anyone a good idea?
Thanks,
Matze

Octoprint Version: 1.3.9
OctoPi Version: 0.15.1

just found it :grimacing:

OutsourcedGuru answered the question a few days ago:


So sorry for the double-post :persevere: