====== Camera Module 3 on RPi5 ====== * [[https://www.raspberrypi.com/documentation/computers/camera_software.html#introducing-the-raspberry-pi-cameras|Introducing the Raspberry Pi cameras]] * [[https://www.raspberrypi.com/documentation/accessories/camera.html|About the Camera Modules]] Hier wird haarklein erklärt, worauf zu achten ist. [[https://forums.raspberrypi.com/viewtopic.php?t=362707|What to do if your camera is not detected]] Mein Fehlversuch und Lösung. Unbedingt darauf achten, das richtige Kabel zu verwenden! * [[https://forums.raspberrypi.com/viewtopic.php?p=2201897#p2201897|Raspberry Pi Camera Module 3 not available on RPi 5/bookworm]] * Display-Kabel statt [[https://www.berrybase.de/raspberry-pi-camera-cable-standard-mini-500mm|Raspberry Pi Camera Cable, Standard - Mini]] verwendet! ===== Verfügbarkeit der Camera prüfen ===== rpicam-hello --list-cameras libcamera-hello ===== Streaming ===== Ein hartes Brot bis dahin! Tagelange Suche und immer wieder Fehlschläge. Mit **"Picamera2 WebUI Lite"** hat es dann endlich funktioniert, und zwar auf Anhieb! * [[https://www.tomshardware.com/raspberry-pi/how-to-control-your-raspberry-pi-camera-using-a-web-ui|How to Control your Raspberry Pi Camera using a web UI]]. Das funktioniert * [[https://github.com/monkeymademe/picamera2-WebUI-Lite|Picamera2 WebUI Lite (github)]] * [[https://raspberrytips.com/how-to-live-stream-pi-camera/|How To Live Stream The Raspberry Pi Camera (2 Easy Ways)]]. Noch nicht ausprobiert. ==== Einrichtung ==== sudo apt update && sudo apt upgrade -y === Anwendung von github herunterladen === wget https://github.com/monkeymademe/picamera2-WebUI-Lite/archive/refs/heads/main.zip === Entpacken === unzip main.zip === Anwendung starten === cd picamera2-WebUI-Lite-main/ python app.py ==== Bei jedem Systemstart Anwendung starten ==== === Script anlegen === nano picamera2.sh cd /home/cs/picamera2-WebUI-Lite-main python app.py === Mit systemd beim Booten starten === sudo nano /lib/systemd/system/picam.service [Unit] Description=Start picam After=multi-user.target [Service] ExecStart=/usr/bin/bash /home/cs/picamera2-WebUI-Lite-main/picamera2.sh 2>&1 [Install] WantedBy=multi-user.target sudo chmod 644 /lib/systemd/system/picam.service sudo systemctl daemon-reload sudo systemctl enable picam.service sudo systemctl start picam.service ==== Anwendung aufrufen ==== [[http://192.168.178.213]]:**8080**/ ==== Einbindung des Video-Streams in Octoprint ==== In Octoprint unter Einstellungen -> Classic Webcam -> Stream-URL "[[http://192.168.178.213:8080/video_feed]]" eintragen ==== Einbindung Snapshot & Zeitraffer in Octoprint ==== [[https://github.com/monkeymademe/picamera2-WebUI-Lite/issues/31#issuecomment-2002164553| Implement snapshot #31 (github)]]