SmartestHome/pantry-vision/pantry-vision.env.example

49 lines
2.5 KiB
Plaintext

# pantry-vision configuration template.
#
# Copy this to the container host as (for example)
# /opt/smart-home/pantry-vision/pantry-vision.env, fill in real values, and chmod 600
# it. Same never-commit handling as admin-canvas.env / digest-engine.env.
# ---------------------------------------------------------------------------
# Auth — required. pantry-vision fails closed (rejects every request) while this is
# empty. Unlike admin-canvas's token (which only ever needs to be known by Home
# Assistant), this one also has to be baked into the kitchen-display kiosk's own
# build config (hosts/kitchen-display/scripts/build-kitchen-display-iso.sh), since
# the kiosk's frontend calls this API directly, not through HA. Generate one with:
# openssl rand -hex 32
# ---------------------------------------------------------------------------
PANTRY_VISION_TOKEN=
# ---------------------------------------------------------------------------
# Vision LLM (Ollama, the same LLM host as digest-engine/Assist)
# ---------------------------------------------------------------------------
OLLAMA_HOST=http://llm-host:11434
# MUST be a vision-capable model, and MUST already be pulled on the LLM host
# (`ollama pull llava`, or whatever you pick) — plain text models like the
# qwen2.5:14b-instruct used elsewhere in this project cannot see images at all.
# Not verified against a real pull/run — see README.md.
OLLAMA_VISION_MODEL=llava
OLLAMA_TIMEOUT=120
# ---------------------------------------------------------------------------
# Grocy — already running as the always-on `grocy` container from
# hosts/container-host/scripts/setup-container-host.sh, reachable on the compose
# network at this internal name/port regardless of ENABLE_PANTRY_VISION.
# ---------------------------------------------------------------------------
GROCY_URL=http://grocy:80
# Settings -> Manage API keys, inside Grocy's own UI. Required for /confirm (writes);
# /inventory and /recipes (reads) use the same key.
GROCY_API_KEY=
# VERIFY against your own Grocy instance (Settings -> Locations / Quantity units) —
# these are fresh-install defaults ("Default" location, "Piece" unit), not guaranteed
# to match a Grocy that's already been customised.
GROCY_DEFAULT_LOCATION_ID=1
GROCY_DEFAULT_QU_ID=2
# ---------------------------------------------------------------------------
# Run behaviour
# ---------------------------------------------------------------------------
PANTRY_VISION_PORT=8095
PANTRY_VISION_MAX_IMAGE_MB=15
LOG_LEVEL=INFO