What is the problem?
Webcam switches randomly from /dev/video0 to /dev/video1
What did you already try to solve it?
reboot Pi several times, tried to edit scripts
Logs (/var/log/webcamd.log, syslog, dmesg, ... no logs, no support)
I am new to Rasberyy, so I dont know how to collect logs
Additional information about your setup (OctoPrint version, OctoPi version, ...)
OctoPrint 1.4.0
Hello forum members,
I am very new to Raspberry and Linux, for that reason, I can not offer logs files as I dont know how to collect the ones which are needed for my problem.
I have installed Octoprint on my Raspberry 3 and connected a Logitech C270 camera to it. Everything worked perfect, but since I upgraded my Octoprint Version to 1.4.0, I can not get the camera working. It randomly switches from /dev/video0 to /dev/video1 and my webcamDaemon script always needs to be the camera on /dev/video0.
Tried to set parameters in octopi.txt like "-d /dev/video1", but also without success.
I would be very happy, if someone with more experience could help me with that problem.
gerade noch mal die Cam von USB getrennt, Pi rebootet und gewartet.
Danach in einen anderen USB-Port als vorher gesteckt und nun läuft der Stream auch.
Die Cam ist unter /dev/video0 erreichbar.
Trotzdem habe ich jetzt die RaspiCam bestellt und werde auf diese umschwenken.
sorry for my german reply.....I have no idea, what I was thinking that time!
That text means, that I have rebooted my Raspberry and suddenly my camera was again available on /dev/video0 and worked then.
Unfortunately, I have the same problem again.
I was thinking about creating symlinks, but I dont know, in which scripts, I have to replace /dev/video0 with the symlink name to get my camera and mjpeg-streamer to work.
puh on octopi i have no glue.
Only used octopi just a few times.
but if i remember correctly /etc/rc.d/webcamd or something like that / should be written on the octoprint documentation
On my own rig, the Smoothieboard and the PyBoard change places all the time in the device tree. Creating udev rules (as discussed earlier) is the best way to tackle this "musical chairs" problem.
Don't try to create a symlink (alias) for a device which might be actually issued, video0 is something Raspbian would like to control. Instead, use hans or luke or something unique like logitech.
You have mispelled ATTRS above by making it singular, so obviously this won't work.
Once booted, do an ls -lt /dev and look for it near the top as /dev/logitech. Any configuration files would then need to point to this rather than whatever it was before.