{% extends "base.html" %} {% block title %} Tapo-Steckdosen-Steuerung | MYP Platform {% endblock %} {% block page_heading %}

Tapo-Steckdosen-Steuerung

Mercedes-Benz TBA Marienfelde - 6 Arbeitsplätze für 3D-Drucker

{% endblock %} {% block page_actions %}
Status aktualisieren {% if current_user.is_authenticated and current_user.has_permission('ADMIN') %}
Manuelle Steuerung {% endif %}
{% endblock %} {% block content %}

Arbeitsplätze Gesamt

{{ total_outlets or 6 }}

Online

{{ online_outlets or 0 }}

Aktive

{{ outlets.values() | selectattr('status', 'equalto', 'on') | list | length }}

Mercedes-Benz TBA Marienfelde - 3D-Drucker Arbeitsplätze

Feste Installation mit 6 konfigurierten Arbeitsplätzen

{% if outlets %} {% for ip, outlet in outlets.items() %}

{{ outlet.printer_name }}

IP: {{ ip }}

{% if outlet.model %}

{{ outlet.model }}

{% endif %}
{% if outlet.configured_in_db %} {% else %} {% endif %} #{{ outlet.position or loop.index }}
Status: {% if outlet.reachable %} {% if outlet.status == 'on' %} EIN {% elif outlet.status == 'off' %} AUS {% else %} UNBEKANNT {% endif %} {% else %} OFFLINE {% endif %}
Standort: {{ outlet.location }}
{% if outlet.configured_in_db and outlet.printer_id %}
Drucker-ID: #{{ outlet.printer_id }}
{% endif %}
{% if outlet.error %}
{{ outlet.error }}
{% endif %} {% if current_user.has_permission('ADMIN') %}
{% if not outlet.configured_in_db %} Setup {% endif %}
{% endif %}
{% endfor %} {% else %} {% for i in range(1, 7) %}

3D-Drucker {{ i }}

192.168.1.20{{ i }}

#{{ i }}
Status: NICHT KONFIGURIERT
Standort: Arbeitsplatz {{ i }}
Arbeitsplatz {{ i }} noch nicht eingerichtet
{% endfor %} {% endif %}
{% if request.args.get('auto_refresh') %} {% endif %} {% endblock %}