{% extends "base.html" %} {% block title %}Pi Dashboard — {{ settings.APP_NAME }}{% endblock %} {% block content %}

Pi Dashboard

← Admin

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.

Sessions

{% if sessions %}
{% for s in sessions %} {% endfor %}
SessionDirectoryMachineStatusModel Last toolLast seenCost
{{ 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) }}
{% else %}

No pi dashboard files found in {{ pi_dir }}. Run the sync script on the pi host to populate it.

{% endif %}
{% endblock %}