Skip to content

DanielSuncost/BaseBuddy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BaseBuddy

AI-powered multi-camera surveillance with real-time object detection. Self-hosted, modular architecture with optional Docker deployment.

Version: 1.0.0
License: MIT

Screenshots

Camera Wall
Camera Wall — live multi-camera grid
Timelapse
Timelapse — browse frames & export MP4/GIF
Events
Events — detection timeline with scores
Plants
Plants — region setup & health trends
Traffic
Traffic — hourly volume & direction flow

Quick Start

1. Install dependencies

python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt          # core + ML stack
# Or UI-only / no detection:
# pip install -r requirements-core.txt

2. Configure

cp env.example .env
# Edit .env (CAM1, CAM2, PORT, …)
# Or: cp config.example.txt config.txt

3. Run

./setup.sh          # first time only
./run.sh            # production launcher
./run.sh background # detached
./stop.sh

Open http://localhost:5000 · Health check: http://localhost:5000/health

YOLO weights: Config → Model weights, or auto-download on first run.


Docker

cp env.example .env
docker compose up -d

Runtime data (recordings/, logs/, …) is mounted from the repo root. See docker-compose.yml.


Project structure

├── basebuddy/       Application source (app, core, modules, pages, templates, static)
├── docs/            Architecture, security, optional deps
├── scripts/         smoke_test.py
├── archive/         Legacy reference only (not used at runtime)
├── main.py          Entry shim
├── run.sh           Launcher
└── env.example      Configuration template

Details: docs/ARCHITECTURE.md · docs/SECURITY.md · docs/OPTIONAL_DEPS.md


Configuration

See env.example. Production exposure beyond localhost:

AUTH_ENABLE=true
ADMIN_PASSWORD=change-me
SECRET_KEY=long-random-string

Optional ML packages: docs/OPTIONAL_DEPS.md


Production deployment

  1. Copy and lock down config:
cp env.example .env
chmod 600 .env
# Edit cameras, then for LAN/WAN exposure:
# AUTH_ENABLE=true  ADMIN_PASSWORD=...  SECRET_KEY=...
  1. Install and verify:
./setup.sh
python scripts/smoke_test.py
./run.sh background
curl http://127.0.0.1:5000/health
  1. Stop:
./stop.sh

Docker (CPU default, GPU optional):

docker compose up -d
docker compose -f docker-compose.yml -f docker-compose.gpu.yml up -d --build   # NVIDIA GPU

See docs/SECURITY.md for production hardening (AUTH_ENABLE, secrets, CORS).


Development

python scripts/smoke_test.py   # import + app factory (no cameras)

CI runs the same smoke test on push.


Contributing

See CONTRIBUTING.md.

About

Self-hosted AI camera system with real-time detection, gallery, event-feed, plant monitoring and optional cloud-backup.

Resources

Contributing

Security policy

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages