{% extends "home.html" %} {% block circlecharts %} {% for ups in data %}
{{ups}}
{% for chart in data[ups] %} {% set label = data[ups][chart]['label']%} {% set value = data[ups][chart]['value']%} {% set valueLabel = data[ups][chart]['valueLabel'] %} {% if "Load" in label or "Runtime" in label %} {% set classes = "flex lg:hidden single-chart justify-items-stretch w-90 mx-4 py-3 rounded overflow-hidden shadow-lg bg-slate-200 dark:bg-slate-700 w-72 h-72"%} {% else %} {% set classes = "single-chart justify-items-stretch w-90 mx-4 py-3 rounded overflow-hidden shadow-lg bg-slate-200 dark:bg-slate-700 w-72 h-72"%} {% endif %}
{{value}} {{valueLabel}} {{label}}
{% endfor %} {% endfor %}
{% for row in upsData %} {% for data in upsData[row] %} {% if data != "id" and data != "input_nominal" %} {% endif %} {% endfor %} {% endfor %}
Date Charge Runtime AC Input AC Output Battery Load Status
{{upsData[row][data]}}
{% endblock %}