Suggestion: Add the ability to turn the camera on and off at octoprint.
Simply override the unrealized
turn_off methods of the
Camera base class in the
For example, the following actions can be added to the OctoPrint configuration (following this note):
- name: Turn camera on
command: sudo service webcamd start
confirm: You are about to start the bundled webcam server.
- name: Turn camera off
command: sudo service webcamd stop
confirm: You are about to stop the bundled webcam server.
And then you can call them using the OctoPrint API:
POST /api/system/commands/custom/custom/camoff HTTP/1.1