Getting started¶
Early MVP, tested in software only — simulated sensors, SQLite-backed REST API, deterministic rules, a monitoring dashboard and suggestion-only automation. No hardware has been bench-tested and nothing is actuated.
Full install guide (Docker + pip, all OS): INSTALL.md
Fastest start (Docker — any OS)¶
cp .env.example .env
./scripts/up.sh
./scripts/sim.sh # new terminal
curl http://localhost:8080/health
No make required. Developed on macOS; CI runs on Linux. Windows with Docker Desktop should work but is not tested.
The MQTT broker needs a login¶
The broker does not accept anonymous clients. ./scripts/up.sh (and ./scripts/setup.sh) put a random
MQTT_PASSWORD into your .env the first time; the user name is MQTT_USERNAME (default pomona). Core and
./scripts/sim.sh read them from .env; any other client you point at the broker (an ESP32, mosquitto_pub)
needs the same pair. The password is never printed. If you start Compose yourself and MQTT_PASSWORD is blank,
it stops and tells you to run ./scripts/setup.sh.
Port 1883 is plain MQTT (no TLS): keep it on your local network and never port-forward it. Docker publishes the
broker, Core and the dashboard on this computer only by default; set POMONA_BIND_ADDRESS=0.0.0.0 in .env to let
devices on your network connect (trusted network only, set API_KEY). See
SECURITY.md.
Alternative: pip dev¶
pip3 install -r requirements-dev.txt
./scripts/setup.sh # once: makes .env with a random MQTT_PASSWORD
./scripts/up.sh mqtt # the broker only
./scripts/run-local.sh
Endpoints¶
| Service | URL |
|---|---|
| Core API | http://localhost:8080 |
| Model router | http://localhost:8081 |
| MQTT | localhost:1883 |
What works / doesn't¶
| Works locally | Not yet |
|---|---|
| MQTT (login required) + simulator and fake greenhouse | Bench-tested ESP32 hardware (firmware compiles, not run on a board) |
| REST API + SQLite persistence | Any field data or field validation |
| Monitoring dashboard (http://localhost:3000) | Live LLM advisor by default (stub unless you enable Ollama) |
| Deterministic sensor checks, crop rules and safety checker | Actuator execution (by design: suggestions only) |
| Suggestion-only automation with manual approve/reject | Production hardening |
| Running on a Raspberry Pi (not tested) |
Contribute¶
Open source under Apache-2.0. See CONTRIBUTING.md.
Related repos¶
| Repo | Purpose |
|---|---|
pomona (this) |
Run platform |
pomona-agronomist-llm |
Train LLM (optional) |
| HF model | Weights (optional) |
Personal notes: private/ (gitignored).