> ## Content Index
> Fetch the complete content index at: https://www.stirup.si/llms.txt
> Use this file to discover other available public pages before exploring further.

# OpenPetCam System Requirements and Setup Process
- URL: https://www.stirup.si/openpetcam-system-requirements-and-setup-process-2ca3052d/
- Published: 2026-11-04T03:07:43.000Z
- Updated: 2026-11-04T03:07:43.000Z
- Description: The OpenPetCam system requires a Thingino-flashed pan/tilt camera, an Ubuntu 24.04 server with a public IP, and uses AWS Lightsail for hosting, with setup involving cloning the repository and running a configuration script.
- Author: Satish Das
- Tags: Community, News, Stirup Research

## System Requirements and Setup Process

The OpenPetCam system requires a Thingino-flashed pan/tilt camera, such as the Cinnado D1, connected to a home Wi-Fi network, and an Ubuntu 24.04 server with a public IP address. According to the project's documentation, an AWS Lightsail nano instance at $5/month is sufficient for hosting the server. The setup process involves cloning the OpenPetCam repository from GitHub, checking out the latest release, and running the setup script. This script guides users through configuring the server's IP and SSH key, installing necessary components, and providing instructions for configuring the camera's WireGuard settings. The system architecture includes MediaMTX for video handling, petcam-watch for detection and interaction, and petcam-app for the web interface. The server usage is reported to be minimal, running at about 5% of one CPU core on a 512 MB instance.

## Camera and Server Communication Architecture

The OpenPetCam system uses a secure, self-hosted architecture to enable remote monitoring of pets. The camera connects to a home Wi-Fi network and communicates with a user-controlled server via WireGuard, ensuring no open ports are required at the home end. The server runs several components, including MediaMTX for video handling and WebRTC streaming, petcam-watch for detection and interaction, and petcam-app for the web interface. Updates are managed by petcam-update, which downloads new versions, verifies them with SHA-256 checks, and installs them using the same deployment script. If an update fails, the system reverts to the previous version and avoids retrying the failed release. This ensures stability and reliability. The system is designed to be lightweight, running at about 5% of one CPU core on a 512 MB server. Users who wish to run custom changes can do so by deploying from non-release tags, which are never automatically overwritten.

## Customization and Training for Pet Detection

OpenPetCam allows users to customize and train its pet detection system through a series of command-line tools. To begin, users can create a virtual environment and install necessary dependencies using commands like `python3 -m venv .venv && .venv/bin/pip install onnxruntime numpy pillow`. The `tools/bootstrap_pet.py` script facilitates data collection, labeling, and training, with the option to deploy the model after reviewing the training report. The system initially uses a default verifier that asks, 'is this any dog breed?' but can be replaced with a trained model once sufficient labels are collected across at least three days. This ensures the model is tested on held-out data before deployment. Additionally, the labeller is informed about the pet and its lookalikes, with labels cached to avoid redundant work during re-runs. The deployment script, `./deploy.sh`, prevents reverting to the default verifier once a trained model is in place.

## Security and Privacy Features

The OpenPetCam project emphasizes robust security and privacy protections for users. According to the project's documentation, no sensitive data such as frames, clips, times, names, or addresses from your home are transmitted externally. A public-repo guard and your pet's name are rechecked before any content is pushed to external repositories. Security configurations, including the pet name, server address, time zone, and SSH settings, are stored in `config/site.env` on your local machine and are not committed to version control. Sensitive information like the web app password (stored as a PBKDF2 hash), session key, and camera web login are kept on the server in `/etc/petcam/app.env` with restricted permissions. Additional security measures, such as the pre-commit hook `tools/check_public.sh`, prevent accidental commits of sensitive data like server IPs, host names, or private keys. These steps ensure that user data remains private and secure throughout the deployment process.

## Repository Structure and Development Practices

The OpenPetCam repository is organized to support a modular and scalable development process. The `server/` directory contains all server-side logic, along with scripts like `install.sh` and `update.py` for deployment and maintenance. Configuration is managed through `config/site.env.example`, which users customize for their setup. The `tools/` directory includes utilities such as `bootstrap_pet.py`, `status.sh`, and `superagent.py`, enabling local operations like health reports and agent execution. The `agent/` directory houses the logic for the agent’s behavior, including goals, steering, and policies. Testing is comprehensive, with `tests/server/` containing simulations and live checks for functionality like detection and search. Documentation in the `docs/` directory covers architecture, performance, and research. Development is guided by strict testing practices, including held-out replays, shadow runs, and health checks with rollback, as noted in the project’s documentation.

## Sources and reporting notes

- [Hacker News Show](https://github.com/crimeacs/OpenPetCam?ref=stirup.si)

Based on published source material. No independent hands-on testing is claimed.