- Add FastAPI webhook receiver (webhook_receiver_rev.py) for Jimi push data: OBD diagnostics, DTC fault codes, alarms, GPS, heartbeats, trip reports - Add schema migration (03_webhook_schema_migration.sql) for webhook tables: fault_codes, heartbeats, expanded obd_readings/trips/position_history/alarms - Consolidate duplicated _safe/_shutdown into shared safe_task/setup_shutdown in ts_shared_rev.py (DRY refactor) - Add auto-commit to get_conn() context manager (prevents forgotten commits) - Fix poll_trips to capture runTimeSecond and maxSpeed from API - Add poll_parking via jimi.open.platform.report.parking - Remove broken poll_obd (OBD is push-only, no polling endpoint exists) - Fix alarms schema: add lat/lng/acc_status columns + dedup constraint - Fix obd_readings schema: add dedup constraint - Fix trigger DO block: replace nonexistent has_column with information_schema - Narrow api_post exception handling to RequestException/ValueError - Add webhook_receiver service to docker-compose.yaml - Add fastapi/uvicorn/python-multipart to pyproject.toml - Add clean_ts timestamp validator to ts_shared_rev.py - Add Tracksolid Pro API documentation (tracksolidApiDocumentation.md) - Populate .gitignore with Python/OS/secrets patterns Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
30 lines
No EOL
1,016 B
TOML
30 lines
No EOL
1,016 B
TOML
[project]
|
|
name = "fireside-tracksolid-ingest"
|
|
version = "1.0.0"
|
|
description = "Fireside Communications — Tracksolid Pro Telemetry Ingestion"
|
|
readme = "README.md"
|
|
requires-python = ">=3.12"
|
|
authors = [
|
|
{ name = "Fireside DevOps", email = "devops@firesideafrica.cloud" }
|
|
]
|
|
# Define your dependencies here
|
|
dependencies = [
|
|
"psycopg2-binary>=2.9.9", # Database driver (binary version is easier for Docker)
|
|
"requests>=2.32.3", # API requests
|
|
"schedule>=1.2.2", # Polling loops/scheduler
|
|
"urllib3>=2.2.2", # HTTP connection pooling/retries
|
|
"fastapi>=0.115.0", # Webhook receiver framework
|
|
"uvicorn[standard]>=0.30.0", # ASGI server for FastAPI
|
|
"python-multipart>=0.0.9", # Required for FastAPI Form() parsing
|
|
]
|
|
|
|
[build-system]
|
|
requires = ["hatchling"]
|
|
build-backend = "hatchling.build"
|
|
|
|
[tool.uv]
|
|
# Tells uv to manage a virtual environment automatically
|
|
managed = true
|
|
|
|
[tool.uv.sources]
|
|
# Optional: If you ever have custom local modules or git-based private libs |