Setup RPi Zero W as a kiosk
- write
Raspbian Lite
image to a SD card - enable ssh (manage through imaging tool)
touch /boot/ssh
- setup WiFi (manage through imaging tool)
type -p curl >/dev/null || (sudo apt update && sudo apt install curl -y) | |
curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo dd of=/etc/apt/keyrings/githubcli-archive-keyring.gpg \ | |
&& sudo chmod go+r /etc/apt/keyrings/githubcli-archive-keyring.gpg \ | |
&& echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null \ | |
&& sudo apt update \ | |
&& sudo apt install gh -y |
type -p curl >/dev/null || (sudo apt update && sudo apt install curl -y) | |
curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo dd of=/etc/apt/keyrings/githubcli-archive-keyring.gpg \ | |
&& sudo chmod go+r /etc/apt/keyrings/githubcli-archive-keyring.gpg \ | |
&& echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null \ | |
&& sudo apt update \ | |
&& sudo apt install gh -y | |
git config --global user.email "github@joshuagraff.com" | |
git config --global user.name "GraffJosh" |
quoted from: https://forums.raspberrypi.com/viewtopic.php?t=359204
I'm using the camera 2 module, but my workaround (for chromium, it does not work with firefox) should work for the module 3 too. Might need to change resolution and pixelformat if module 3 can't output YUY2, but I cannot confirm this until I get the latest camera myself. Basically I use gstreamer to pipe raw camera output to virtual camera device on v4l2loopback, it introduces a small overhead of course and chromium doesn't have access to camera controls which you need to manipulate via the pipeline, but otherwise this works really well for me. I have tested this method with fresh install on Raspberry Pi 4, with camera module 2 and Raspberry Pi OS 64-bit 10 Oct. release:
Steps for my workaround:
install gstreamer and necessary plugins:
sudo apt-get install -y gstreamer1.0-tools gstreamer1.0-plugins gstreamer1.0-libcamera
https://github.com/bluenviron/mediamtx?tab=readme-ov-file#raspberry-pi-cameras | |
https://github.com/bluenviron/mediamtx?tab=readme-ov-file#linux | |
homeassistant generic camera | |
rtsp://cameraName.local:8554/cam |