main was one commit behind and the commit it lacked added the root README --
the file whose whole purpose is to orient someone who lands on the default
branch. Leaving it only on develop defeats the point of having written it.
No conflicts. The merge base is f9d0b09 and main had added nothing of its own
since then, so this only catches it up; the resulting tree is byte-identical to
develop's, checked before committing.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
poorBird
A radar-triggered bird camera. An ESP32-S3 watches a feeder with a 24 GHz radar module, photographs whatever moves, and uploads it to a small server on the same LAN that stores the images and shows them in a gallery you can label.
Radar rather than a PIR motion sensor: it sees through a plastic housing, does not care about warm air or moving branches, and reports distance and signal energy, which is enough to tell "a bird landed" from "the hedge moved".
ESP32-S3 + LD2410 radar FastAPI + PostgreSQL 17 React gallery
------------------------ ----------------------- -------------
detects, photographs, ----> stores, thumbnails, <---- browse, filter,
buffers, uploads authorises label
plain HTTP :8080 loopback :8090 over TLS
Where things stand
Honestly, because a status table that flatters is worse than none:
| Part | State |
|---|---|
| Firmware | Written, compiles, never run on hardware. |
| Device↔server contract | Specified in full and implemented on the server. Never yet exercised by real firmware. |
| Server | Phases 1–2 and the Phase 3 server half. 308 tests against real PostgreSQL 17. Not yet on the real host. |
| WebUI | Login and a working cursor-paged gallery. Devices and System are honest empty states waiting on Phase 4. |
| Backups | None. Phase 5. Do not let captures you care about accumulate yet. |
Nothing here has been released, and main means "the project", not "a
release".
Start here
| If you want to | Read |
|---|---|
| use it, in plain language | docs/README.USER.md · Deutsch |
| install it on a Linux box | server/deploy/INSTALL.md |
| work on the server | server/README.md |
| work on the UI | web/README.md |
| work on the firmware | firmware/README.md |
| know what is broken or unfinished | docs/OPEN-TOPICS.AI.md |
| know why it is built this way | SPEC.md |
| know what is next | TODO.md |
Two documents outrank the rest. firmware/API.md is the
device contract: the camera cannot be patched from a laptop once it is mounted
outdoors, so where the server and that document disagree, the document wins.
SPEC.md holds the decisions and the reasons, which is what keeps
a later change from quietly undoing an earlier one.
Layout
firmware/ ESP32-S3 sketch (PlatformIO) + API.md, the device contract
server/ FastAPI, PostgreSQL, the job queue, the CLI, systemd + Caddy
web/ React gallery, built on your machine and shipped as static files
docs/ user guides, open topics, and per-branch code reviews
SPEC.md the design and the reasoning behind it
TODO.md phase-by-phase plan and the open questions
Constraints that are not up for negotiation
These are decided in SPEC.md, and they explain choices that would otherwise
look old-fashioned:
- No containers. Native packages and systemd units on an x86 thin client.
- PostgreSQL, not SQLite. The job queue needs
FOR UPDATE SKIP LOCKED. - No Redis. The queue is a table; one fewer service to run and back up.
- Caddy, not nginx. It gets a real certificate for a LAN-only hostname over DNS-01, so there is no browser warning and no port forwarding.
- The camera speaks plain HTTP. TLS on an ESP32 means a CA baked into firmware and a mounted camera that stops uploading when the chain rotates.
- Images are never served straight off disk. The app authorises the request and Caddy sends the bytes. An unguessable URL is not access control.
- Logs go to stdout. journald catches them; the app manages no log files.
Quick start on a dev machine
# server
cd server && python -m venv .venv && .venv/bin/pip install -e ".[dev]"
.venv/bin/poorbird check # says what is misconfigured, and why
.venv/bin/poorbird migrate
.venv/bin/poorbird user add me --role admin
.venv/bin/poorbird seed --captures 500 # something to look at
.venv/bin/poorbird serve
# UI, in another terminal
cd web && npm install && npm run dev # http://localhost:5173
On Windows the venv puts those executables in .venv\Scripts\ rather than
.venv/bin/; server/README.md covers that setup, uv and
Podman included.
There is no sign-up page and no default account, on purpose — a shipped default credential is a backdoor. Accounts are created with the CLI.
Two settings need flipping for local development, and both say why in
server/deploy/poorbird.env.example:
POORBIRD_SESSION_COOKIE_SECURE=false (a Secure cookie is dropped over
plain HTTP, so login silently never sticks) and
POORBIRD_SERVE_IMAGES_DIRECTLY=true (there is no Caddy to hand the files to).