{% extends "base.html" %} {% block title %}Pi Dashboard — {{ settings.APP_NAME }}{% endblock %} {% block content %}
Agent sessions synced from the pi host ({{ sessions|length }} known).
Directory (portal view): {{ pi_dir }} — mounted from /mnt/data/family-home-lab/pi-dashboard on .13, synced from ~/.pi/agent/dashboard on the pi host.
| Session | Directory | Machine | Status | Model | Last tool | Last seen | Cost |
|---|---|---|---|---|---|---|---|
| {{ s.get("session") or s.get("connection_name") or "?" }} | {{ s.get("cwd", "—") or "—" }} |
{{ s.get("machine", "?") }} | {% set st = s.get("status", "") %} {% if st == "idle" %}idle {% elif st == "busy" or st == "working" %}busy {% else %}{{ st }}{% endif %} | {{ s.get("model", "?") }} | {{ s.get("last_tool", "—") }} | {% if s.get("last_seen_at") %} {{ s["last_seen_at"][:19].replace("T"," ") }} {% else %} — {% endif %} | ${{ "%.2f"|format(s.get("cost_estimate") or 0) }} |
No pi dashboard files found in {{ pi_dir }}. Run the sync script on the pi host to populate it.