{% extends "base.html" %} {% block title %}RS232-Geräte — Takoma{% endblock %} {% block content %}

🔌 RS232-Geräte

{% if pyserial_ok %} pyserial AKTIV {% else %} pyserial FEHLT {% endif %}

Messmittel, Waagen, Werkzeugvoreinstellgeräte, Barcode-Scanner via serielle Schnittstelle anbinden. USB-Serial-Adapter (FTDI / Prolific / CH340) anstecken → unten als Port wählen.

{% if not pyserial_ok %}
pyserial nicht installiert. Installation: pip install pyserial
{% endif %}

Verfügbare Serial-Ports am Host

{% if available_ports %} {% for p in available_ports %} {% endfor %}
Port Beschreibung Hersteller VID:PID
{{ p.port }} {{ p.description }} {{ p.manufacturer }} {{ p.product }} {{ p.vid_pid }}
{% else %}

Keine seriellen Ports gefunden. Stelle einen USB-Serial-Adapter an oder prüfe die Treiber.

{% endif %}

Konfigurierte Geräte ({{ devices|length }})

{% if devices %} {% for d in devices %} {% endfor %}
Status Name Port Profil Letzter Wert Aktionen
{% if d.active %} {% else %} {% endif %} {{ d.name }} {{ d.port }} {{ d.profile_id }} {% if d.last_value %} {{ d.last_value }} {{ d.last_unit }} {{ d.last_seen[:19].replace('T',' ') if d.last_seen else '—' }} {% else %} {% endif %}
{% else %}

Keine Geräte konfiguriert. Klick „Neues Gerät" um anzufangen.

{% endif %}

Unterstützte Geräte-Profile ({{ profiles|length }})

Profile anzeigen {% for p in profiles %} {% endfor %}
Profil-ID Name Bereich Config
{{ p.id }} {{ p.name }} {{ p.domain }} {{ p.baudrate }} {{ p.config }}
{% endblock %}