Webcam On-Off Option

And docker user could use:

OCTO910 s6-svc -u /var/run/s6/services/mjpg-streamer
OCTO911 s6-svc -d /var/run/s6/services/mjpg-streamer
1 Like

Just to keep this up to date - with the new camera stack (now testing in 1.9.2) these commands would be:

OCTO910: sudo /usr/sbin/service camera-streamer start
OCTO911: sudo /usr/sbin/service camera-streamer stop

Enjoy!

1 Like

Hi guys,
I need to bring this topic up again, because I am not able to get the camera to start automatically by using OCTO910 (after connected to the printer) and stopped by using OCTO911 (before printer is being disconnected).
System Command Editor scripts are working fine though and scripts look as follows (as already stated above):

turn on: sudo service webcamd start
turn off: sudo service webcamd stop

My GCODE scripts are simply (afterPrinterConnected)

;Start Webcam
OCTO910

and (beforePrinterDisconnected)

;Stop Webcam
OCTO911

Just to be on the safe side I also entered OCTO911 to more scripts:
afterPrintDone, afterPrintPaused, afterPrintCancelled

Nothing is working.
What am I missing or doing wrong here?