Benutzer-Werkzeuge

Webseiten-Werkzeuge


zero_webcam

Dies ist eine alte Version des Dokuments!


Pi-Zero als USB-Cam

Achtung: Habe es nur mit 2020-02-05-raspbian-buster auf zero-w hinbekommen. Aber kein sudo apt-get update machen! Sonst kam unter Windows nur ein ganz kurzes Bild und dann war alles wieder weg.

Hiermit probiere ich es mal: https://www.jeffgeerling.com/blog/2020/raspberry-pi-makes-great-usb-webcam-100 https://github.com/geerlingguy/uvc-gadget

Davon hat der andere kopiert und zusammengefasst: http://www.davidhunt.ie/raspberry-pi-zero-with-pi-camera-as-usb-webcam/

Was man so alles mit der Camera machen kann: https://www.raspberrypi.com/documentation/accessories/camera.html

sudo apt install -y python3-dev python3-pip libyaml-dev libffi-dev git 
sudo pip3 install --no-binary pyyaml ansible
git clone https://github.com/geerlingguy/pi-webcam.git
cd pi-webcam
cp inventory-local.example inventory
ansible-playbook main.yml

Da der Fehler „ ModuleNotFoundError: No module named 'yaml'“ kam, musste ich noch

sudo python3 -m pip install pyyaml

PlaystationEye als Kamera

Ich nutze die Mikrofone der PlaystaionEye mit Snips. Nachdem ich jetzt die Pi-Camera im Zero verbaut habe, würde ich gerne Miene Wohnung mit der Kamera der PlaystationEye überwachen.

Motion installiert mithilfe der Webseite: https://gist.github.com/sidward35/132f2e0e85e505e92712a552cc716324

Leider kann ich danach nicht gleichzeitig mit Snips auf das Mikrofon und mit motion auf die Kamera zugreifen. Vielleicht geht es, wenn ich motioneye - leider nur python2 -installiere?

Ich versuche es mit der Anleitung von: https://wiki.instar.com/de/Erweitert/IOBroker_auf_Raspberry_Pi/motionEye/#installation-of-motioneye

sudo apt-get install python-pip python-dev libssl-dev libcurl4-openssl-dev libjpeg-dev libz-dev
sudo pip2 install motioneye
sudo mkdir -p /etc/motioneye
sudo cp /usr/local/share/motioneye/extra/motioneye.conf.sample /etc/motioneye/motion.conf
sudo mkdir -p /var/lib/motioneye
# später dann, wenn es automatisch laufen soll:
sudo cp /usr/local/share/motioneye/extra/motioneye.systemd-unit-local /etc/systemd/system/motioneye.service
sudo systemctl daemon-reload
sudo systemctl enable motioneye
sudo systemctl start motioneye

Fehler bei der Installation „MemoryError“ !? Suche in Google ergab:

sudo pip --no-cache-dir install motioneye

Starten und stoppen von der Kommandozeile:

sudo meyectl startserver -d -c /etc/motioneye/motion.conf # -d debug, -b steht für background. 'stopserver'
http://192.168.178.20:8765 (admin ohne pwd)
Add camera... Local V4L2 Camera / USB Camera B4.09.24.1
zero_webcam.1647981267.txt.gz · Zuletzt geändert: 2022/03/22 20:34 von varnholt