{% extends 'base.html.twig' %} {% import 'components/datalogger_tabs.html.twig' as tabs %} {% block title %}Datalogger Detail - {{ datalogger.name }}{% endblock %} {% block content %}
{{ apiAvailable ? 'Online' : 'Offline' }}
{% if not apiAvailable %}
Warnung: Datalogger API ist nicht erreichbar. Einige Funktionen sind möglicherweise nicht verfügbar.
{% endif %} {{ tabs.renderTabs(datalogger, app.request.attributes.get('_route')) }}
{% if overviewLocation is defined and overviewLocation %}
Standort
{{ overviewLocation }}
{% endif %}
API Status
{{ apiAvailable ? 'Erreichbar' : 'Nicht erreichbar' }}
Verbindung
{{ apiAvailable ? 'Aktiv' : 'Inaktiv' }}
{% set topTotals = sectionTotals is defined and sectionTotals is not null ? sectionTotals : null %}
Durchschnittstemp.
{{ topTotals and topTotals.temperature is not null ? topTotals.temperature|number_format(2) ~ '°C' : '--' }}
Durchschnittsdruck
{{ topTotals and topTotals.pressure is not null ? topTotals.pressure|number_format(2) ~ ' bar(g)' : '--' }}
Aktuelle Gesamtmasse
{{ topTotals and topTotals.massKg is not null ? topTotals.massKg|number_format(2) ~ ' kg' : '--' }}
Füllstand
{{ topTotals and topTotals.fillLevelPercent is not null ? topTotals.fillLevelPercent|number_format(1) ~ '%' : '--' }}

Sektionen - Werte im Überblick

{% include 'dashboard/_sections_overview_content.html.twig' with {'sensorGroups': {'groups': sectionGroups|default([]), 'totals': sectionTotals|default(null)}} %}
{% endblock %} {% block javascripts %} {{ parent() }} {% endblock %}