Self-contained ingestion module (mirrors fleettickets) for the WhatsApp fuel-record feed in the rustfs `fuel` bucket: - import_fuel.py — snapshot/changes/file modes, raw-jsonb upsert on id - migrations/01_fuel_schema.sql — fuel schema, plate/fuel-type/department normalizers, trigger-derived columns, reporting.v_fuel_fills + v_fuel_efficiency, grafana_ro grants - s3util.py / shared.py / run_migrations.py — rustfs client + DB helpers - docs/plan.html — implementation plan Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
11 lines
471 B
Text
11 lines
471 B
Text
# fleetfuel — copy to .env and fill in. NEVER commit the real .env.
|
|
|
|
# Shared database (the `fuel` schema lives in tracksolid_db; internal Docker host)
|
|
DATABASE_URL=postgresql://tracksolid_owner:<password>@timescale_db:5432/tracksolid_db
|
|
|
|
# rustfs / S3 — source fuel records (fuel_records/latest.json + fuel_records/changes/*.json)
|
|
RUSTFS_ENDPOINT=https://s3.rahamafresh.com
|
|
RUSTFS_ACCESS_KEY=<key>
|
|
RUSTFS_SECRET_KEY=<secret>
|
|
RUSTFS_REGION=us-east-1
|
|
FUEL_BUCKET=fuel
|