Add color configuration and extra signals to vehicle frames

This commit is contained in:
2026-07-23 13:26:37 +02:00
parent be7cf9cb6a
commit 0eac7a571f
3 changed files with 35 additions and 7 deletions
+1 -1
View File
@@ -437,7 +437,7 @@ def render_vehicles(vehicle):
for sig in frame_def.signals:
unit_str = f" ({sig.unit})" if sig.unit else ""
title = f"{frame_def.can_id} - {sig.name}{unit_str}"
fig = vehicle_module.plot_signal(decoded, sig.name, title=title)
fig = vehicle_module.plot_signal(decoded, sig.name, title=title, color=frame_def.color)
card = dbc.Card([
dbc.CardBody([