Webcam activ only when printing?

Hello.

How can I set my USB Webcam (Logitech C920) to be only activ when I am printing? I dont want it to be permanently switched on.

Greetings

The webcam is always on.

Unless you did some extraordinary things to your system.
But we can't tell because just deleted the template that asked for further information right away. The only thing we know is, that you have a Logitec C920.


Camera model

WRITE HERE

What is the problem?

WRITE HERE

What did you already try to solve it?

WRITE HERE

Have you tried running in safe mode?

WRITE HERE

Did running in safe mode solve the problem?

WRITE HERE

Systeminfo Bundle

You can download this in OctoPrint's System Information dialog ... no bundle, no support!)

WRITE HERE

Additional information about your setup

OctoPrint version, OctoPi version, printer, firmware, browser, operating system, ... as much data as possible

WRITE HERE


Please attach the requested information to your next post.

Hello Ewald,
sorry i thought that would be enough but sure I fill out the requested Information:

Camera model

Logitech C920

What is the problem?

It is not really a problem but I would prefer the Camera to only be switched on during a pritn an switch off after. Its like the Webcam on my business Laptop. It switches on when i do like a teams call and switches off after.

What did you already try to solve it?

I took a look at the webcam settings but didnt find anything that would help me.

Have you tried running in safe mode?

No i didnt. I think that might not help here because its not a programm failure or anything.

Did running in safe mode solve the problem?

Didnt use save mode

Systeminfo Bundle

You can download this in OctoPrint's System Information dialog ... no bundle, no support!)

octoprint-systeminfo-20231130105346.zip (51.9 KB)

Additional information about your setup

OctoPrint version, OctoPi version, printer, firmware, browser, operating system, ... as much data as possible

Octoprint in Version 1.9.3 running on raspberry pi 4b

I hope that help.

Greetings
Sebastian

I mean you can start and stop the camera streamer by hand any time you like.

But there is no build in option for that.

You could also use one of the servo plugins to control a small servo that holds something in front of the lens to make it blind.

1 Like

I found a solution myself:

Either you can enter the following text in config.yaml
system:
actions:

  • action: camon
    command: sudo service webcamd start
    confirm: Die Kamera wird gestartet
    name: Kamera an
  • action: camoff
    command: sudo service webcamd stop
    confirm: Die Kamera wird gestoppt
    name: Kamera aus

This leads to two new points in the systemmenu in the top bar.

Or you can make an entry in the eventmanager:

Printstart -> Command: sudo service webcamd start
Printdone -> Command: sudo service webcamd stop

Greetings
Sebastian

2 Likes

A nice
I didn't think of that for some reason

Nice solution