Skip to content

Dashboard

farzad edited this page Oct 7, 2026 · 2 revisions

Dashboard

A read-only live view at http://localhost:6278 (redirects to /dashboard) while peykan demo or peykan server is running: signal values grouped by message, and a feed of recent frames, updated about twice a second.

Peykan live dashboard showing grouped ECU signal values and a recent-frames feed

What it shows

  • Live Signals: every signal grouped by message: the DBC messages (ABS_STATUS, AIRBAG_STATUS, BODY_STATUS, ENGINE_STATUS) and J1939 PGNs (J1939:EEC1, J1939:ET1, ...), with value and unit. Enumerated signals show their names (FAULT_PRESENT, HIGH_SPEED), not numbers.
  • Recent Frames: the latest frames by message name and arbitration ID.
  • Header: a live indicator (green while the update stream is connected), frame count, signal count, uptime, and a link to the GitHub repository.

With a fault active you'll see it here: e.g. crash sets CRASH_DETECTED to 1, opens the driver door and stops the wheels.

How it works

  • GET /dashboard serves one self-contained HTML page (server/templates/dashboard.html): no build step, no external assets.
  • GET /dashboard/stream is a Server-Sent Events stream pushing LiveState.snapshot() every 0.5 s. It's the same listener that backs the passive MCP tools, so the dashboard and the tools always agree.
  • Light and dark themes follow the system setting.

Read-only

The page can't send anything on the bus.

When it's empty

The dashboard shows "Waiting for CAN traffic" until frames arrive. With the virtual bus, the simulator must run in the same process as the server: use peykan demo, not peykan server plus a separate peykan simulate. With peykan demo --log file it shows the replayed recording. See Troubleshooting.

Clone this wiki locally