Perenual's free tier does not serve care instructions. OpenPlantBook
provides watering, sunlight, and other care data at no cost.
- OAuth2 client_credentials token fetch with module-level cache
- Search via /api/v1/plant/search/, detail via /api/v1/plant/detail/{pid}/?include=care
- SpeciesSuggestion shape unchanged; no frontend or schema changes required
- Env vars: OPENPLANTBOOK_CLIENT_ID + OPENPLANTBOOK_CLIENT_SECRET (replaces PERENUAL_API_KEY)
46 lines
1.3 KiB
Bash
46 lines
1.3 KiB
Bash
# Public app URL (used for OIDC redirect URIs, share links, etc.)
|
|
NEXT_PUBLIC_APP_URL=https://fam.ginnoir.com
|
|
|
|
# Postgres
|
|
DATABASE_URL=postgres://famapp:famapp@localhost:5432/famapp
|
|
|
|
# Auth.js
|
|
AUTH_SECRET=replace-with-openssl-rand-base64-32
|
|
|
|
# Local development only. Enables a /login "Dev login" button that creates a
|
|
# database session for DEV_LOGIN_EMAIL without contacting Authentik.
|
|
ENABLE_DEV_LOGIN=false
|
|
DEV_LOGIN_EMAIL=dev@famapp.local
|
|
DEV_LOGIN_NAME=Dev User
|
|
DEV_HOUSEHOLD_NAME=Home
|
|
|
|
# OIDC (Authentik)
|
|
AUTH_OIDC_ISSUER=https://auth.ginnoir.com/application/o/famapp/
|
|
AUTH_OIDC_CLIENT_ID=replace-me
|
|
AUTH_OIDC_CLIENT_SECRET=replace-me
|
|
|
|
# Web Push (generate with: pnpm vapid:generate — copy all three lines to .env)
|
|
VAPID_PUBLIC_KEY=
|
|
VAPID_PRIVATE_KEY=
|
|
VAPID_SUBJECT=mailto:you@example.com
|
|
|
|
# ntfy (optional fallback channel; leave blank to disable)
|
|
NTFY_URL=
|
|
NTFY_TOPIC=
|
|
|
|
# Logging
|
|
LOG_LEVEL=info
|
|
|
|
# GitHub (required for pnpm release — creates a GitHub Release)
|
|
GITHUB_TOKEN=
|
|
|
|
# MinIO object storage (used for plant/container image uploads)
|
|
MINIO_ENDPOINT=http://localhost:9000
|
|
MINIO_ROOT_USER=famapp
|
|
MINIO_ROOT_PASSWORD=changeme
|
|
MINIO_BUCKET=garden
|
|
|
|
# OpenPlantBook plant species API (https://open.plantbook.io — free account required)
|
|
OPENPLANTBOOK_CLIENT_ID=
|
|
OPENPLANTBOOK_CLIENT_SECRET=
|