Skip to content

Commit c74d7f4

Browse files
committed
Use DBC_DISPLAY_NAME and don't clear frozenRef
Preserve frozenRef when clearing traces and add a configurable DBC display name.
1 parent b436610 commit c74d7f4

4 files changed

Lines changed: 3 additions & 2 deletions

File tree

pecan/src/pages/Trace.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,6 @@ function Trace() {
458458

459459
const handleClear = useCallback(() => {
460460
clearTrace();
461-
frozenRef.current = [];
462461
}, [clearTrace]);
463462

464463
// Handle Easter Egg Trigger

universal-telemetry-software/deploy/.env.macbook

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
REMOTE_IP=10.71.1.10
55
TIMESCALE_TABLE=WFR26test
66
DBC_HOST_PATH=../../secret-dbc/WFR25.dbc
7+
DBC_DISPLAY_NAME=WFR25.dbc
78
GRAFANA_ADMIN_PASSWORD=admin
89

910
# Cloud Sync dashboard — http://localhost:8092

universal-telemetry-software/deploy/docker-compose.macbook-base.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ services:
4141
- POSTGRES_DSN=postgresql://wfr:wfr_password@timescaledb:5432/wfr
4242
- TIMESCALE_TABLE=${TIMESCALE_TABLE:-WFR26test}_base
4343
- DBC_FILE_PATH=/app/active.dbc
44+
- DBC_DISPLAY_NAME=${DBC_DISPLAY_NAME:-example.dbc}
4445
volumes:
4546
- ${DBC_HOST_PATH:-./example.dbc}:/app/active.dbc:ro
4647
- raw_can_data:/app/raw_can_logs

universal-telemetry-software/src/data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -636,7 +636,7 @@ async def stats_publisher():
636636
"ecu_synced": self._ecu_synced,
637637
"ecu_sync_source": self._sync_source,
638638
"timescale": timescale_status,
639-
"dbc_file": os.getenv("DBC_FILE_PATH", "unknown"),
639+
"dbc_file": os.getenv("DBC_DISPLAY_NAME") or os.path.basename(os.getenv("DBC_FILE_PATH", "unknown")),
640640
"car_time_synced": self._car_time_synced,
641641
"base_clock_bad": self._base_clock_bad,
642642
"last_udp_time": self.last_udp_time,

0 commit comments

Comments
 (0)