Uses libcamera / Picamera2 to connect to Raspberry Pi Camera Module 3 for web cam streaming with OctoPrint
- Follow instructions on OctoPrint Community Forum up until "Optional: Webcam"
- Put
ct-webcam.servicein/lib/systemd/system/ - Put
mjpeg_server.pyin/home/pi/scripts/ - Assign proper file permissions and install the service:
sudo chmod 644 /lib/systemd/system/ct-webcam.service
chmod +x /home/pi/scripts/mjpeg_server.py
sudo systemctl daemon-reload
sudo systemctl enable ct-webcam.service
sudo systemctl start ct-webcam.service
- Update OctoPi settings
- Use
http://octoprint.local/webcam/stream.mjpgfor the "Stream URL" (orhttp://octoprint.local:8080/stream.mjpgif Haproxy is not used) - Use
http://octoprint.local/webcam/snapshot.jpgfor the "Snapshot URL" (orhttp://octoprint.local:8080/snapshot.jpgif Haproxy is not used)