srs-api/.env.example
Aswin Biju 3640b2d785 feat(whatsapp): read slip photos and add them to the order
Shops can now send handwritten slips as WhatsApp photos. srs-api reads them
through OpenRouter in the background. The model only proposes text: the parser
decides what is an entry, and nothing is saved without the user's Save.
2026-11-04 13:46:50 +05:30

30 lines
919 B
Plaintext

PORT=8080
HOST=127.0.0.1
DB_PATH=./data/srs.db
# Shared secret between the Hermes plugin and srs-api (header: x-srs-secret). Min 16 chars.
# Generate one with: node -e "console.log(require('crypto').randomBytes(32).toString('hex'))"
SRS_SECRET=change-me-to-a-long-random-string
JWT_SECRET=change-me-to-another-long-random-string
# Hermes WhatsApp bridge (local only)
BRIDGE_URL=http://127.0.0.1:3000
DEFAULT_COUNTRY_CODE=91
ORDER_CUTOFF=15:00
ORDER_ASK_UNTIL=15:30
ORDER_REMIND_MINUTES=10
ORDER_EXPIRE_MINUTES=30
# Seconds without a new message before the bot replies to an order being collected (max 50)
ORDER_UPDATE_QUIET_SECONDS=3
# Result PDF fetching (IST): check from START until a draw is stored, give up at END, retry every N minutes
RESULTS_WINDOW_START=16:00
RESULTS_WINDOW_END=19:00
RESULTS_RETRY_MINUTES=10
OPENROUTER_API_KEY=
VISION_MODEL=nvidia/nemotron-3.5-super-vl:free
VISION_TIMEOUT_SECONDS=60