Skip to content
Open
8 changes: 8 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,14 @@ BAMBUDDY_PRINTERS_ENDPOINT=/api/v1/printers/
BAMBUDDY_PRINTER_STATUS_ENDPOINT_TEMPLATE=/api/v1/printers/{printer_id}/status

PRINTERPRINTER_POLL_INTERVAL_SECONDS=5
PRINTERPRINTER_LABEL_WAIT_SECONDS=60
PRINTERPRINTER_LABEL_WAIT_POLL_SECONDS=5
PRINTERPRINTER_PENDING_LABEL_MAX_AGE_SECONDS=900
PRINTERPRINTER_ENV_FILE_PATH=.env
PRINTERPRINTER_SERVICE_NAME=printerprinter
PRINTERPRINTER_INSTALL_DIR=/opt/printerprinter
PRINTERPRINTER_UPDATE_BRANCH=main
PRINTERPRINTER_VENV_PATH=/opt/printerprinter/venv
# Bambuddy numeric IDs (not IP/serial). Leave blank to include all.
PRINTERPRINTER_MONITORED_PRINTER_IDS=11,13,16
# Optional selectors: Bambuddy ID, printer name, serial number, or IP address.
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ __pycache__/
.mypy_cache/
*.egg-info/
.DS_Store
.claude/
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,13 @@ Latest label preview (DK1202 / 62x100):
- `POST /admin/poll-once`
- `GET /admin/printers`
- `GET /admin/events`
- `GET /admin/ui`
- `GET /admin`
- `GET /admin/config`
- `POST /admin/config`
- `POST /admin/actions/restart`
- `POST /admin/actions/update`
- `GET /admin/label-preview/{event_id}.png`
- `POST /admin/print-event/{event_id}`

## Configuration
Expand All @@ -49,6 +56,14 @@ Copy `.env.example` to `.env` and update values.
- `PRINTERPRINTER_LOG_LEVEL` (default `INFO`)
- `PRINTERPRINTER_DB_PATH` (default `./data/printerprinter.sqlite3`)
- `PRINTERPRINTER_POLL_INTERVAL_SECONDS` (default `5`)
- `PRINTERPRINTER_LABEL_WAIT_SECONDS` (default `60`; wait window for missing duration/filament before deferring print)
- `PRINTERPRINTER_LABEL_WAIT_POLL_SECONDS` (default `5`; refresh interval during wait window)
- `PRINTERPRINTER_PENDING_LABEL_MAX_AGE_SECONDS` (default `900`; only auto-print deferred events younger than this)
- `PRINTERPRINTER_ENV_FILE_PATH` (default `.env`; config file used by admin UI save flow)
- `PRINTERPRINTER_SERVICE_NAME` (default `printerprinter`; systemd service name for restart/update actions)
- `PRINTERPRINTER_INSTALL_DIR` (default `/opt/printerprinter`; repository path used by update action)
- `PRINTERPRINTER_UPDATE_BRANCH` (default `main`; branch used by update action)
- `PRINTERPRINTER_VENV_PATH` (default `/opt/printerprinter/venv`; virtualenv used for update install)
- `PRINTERPRINTER_MONITORED_PRINTER_IDS` (comma-separated Bambuddy numeric IDs, empty means all)
- `PRINTERPRINTER_MONITORED_PRINTER_IDENTIFIERS` (comma-separated IDs, names, serials, or IPs to auto-resolve)

Expand Down
Loading