Files
carpibord/obd2_client/config.json.example

61 lines
1.2 KiB
JSON

{
"_comment": "Carpibord OBD2 Client Configuration",
"can": {
"interface": "can0",
"bitrate": 500000,
"virtual": false
},
"obd2": {
"request_id": "0x7DF",
"response_id": "0x7E8",
"timeout": 0.2
},
"scan": {
"retries": 5,
"retry_delay": 1.5,
"initial_delay": 1.0
},
"polling": {
"interval_fast": 0.1,
"interval_slow": 1.0,
"fast_pids": ["0x0C", "0x0D", "0x11", "0x04"],
"slow_pids": ["0x05", "0x5C", "0x0F", "0x2F", "0x10"]
},
"storage": {
"_comment": "Offline-first SQLite storage",
"enabled": true,
"db_path": null,
"wal_mode": true,
"retention_days": 30,
"batch_size": 50,
"flush_interval": 1.0
},
"postgresql": {
"_comment": "Remote PostgreSQL sync (offline-first)",
"enabled": false,
"host": "your-postgres-server.com",
"port": 5432,
"database": "carpibord",
"user": "carpibord",
"password": "your-secure-password",
"sync_interval": 30.0,
"batch_size": 500,
"max_retries": 3,
"retry_delay": 5.0
},
"flipper": {
"_comment": "Flipper Zero UART display",
"enabled": true,
"port": "/dev/serial0",
"baudrate": 115200,
"show_ups": true
}
}