Ajout section Codex (conso 7j + statut limite) via dashboard Hermes

This commit is contained in:
jerem
2026-06-15 15:27:13 +02:00
parent 3191720776
commit 319ff3f552
5 changed files with 137 additions and 2 deletions

View File

@@ -157,6 +157,16 @@
{% endif %}
</div>
{% if codex.ok %}
<div class="section">
<div class="title">Codex</div>
<div class="nas-list">
<div class="ha-item"><span class="k">Conso 7 j</span><span class="v">{{ codex.api_calls }} appels · {{ codex.tokens_human }} tok{% if codex.cost %} · {{ '%.2f'|format(codex.cost) }}€{% endif %}</span></div>
<div class="ha-item"><span class="k">Statut</span><span class="v">{% if codex.limited %}<span class="bad">⚠ limite · reset {{ codex.resets_in_human }}</span>{% else %}OK{% endif %}</span></div>
</div>
</div>
{% endif %}
{% if ha_states %}
<div class="section">
<div class="title">Maison</div>