View and control a Raspberry Pi Camera mounted on a Waveshare pan/tilt HAT!
- Make sure you have Python 3.9 installed, as TkZero needs 3.9.
- Follow the instruction on setting up a Raspberry Pi in the Remote-PiCam repo.
git clone
this repo andcd
into it.- Optional: Create a virtual environment with
python -m venv .venv
(python3
instead on Linux and macOS) and activate the virtual environment with".venv/Scripts/activate.bat"
(.venv/Scripts/activate.ps1
in Windows Powershell andsource .venv/bin/activate
on Linux and macOS) - Install dependencies with
pip install -r requirements.txt
. (pip3
on Linux and macOS) You can find the list of dependencies in the requirements.txt file.
Run main.py
to start the program. For instructions on how to use the program, view
the HELPME.md file.
When you first run the script, a settings.json
file should generate:
{
"camera": {
"name": "picam",
"port": 7896
},
"gui": {
"dark_mode": false,
"queue": {
"check": 50,
"size": 32
}
}
}
camera.name
and camera.port
should match in the PiCam settings, otherwise
the software won't discover it (name
is not correct) or it will stay
connecting forever and get stuck. (port
is not correct)
gui.dark_mode
sets whether to use dark mode or not. (Thanks
@rdbende for the
Sun Valley theme!)
gui.queue.check
is how many milliseconds in between every queue check for an
image. gui.queue.size
is the image buffer size, low values can cause
stuttering in bad network conditions, high values will use more memory and
cause noticeable delay.