Test anzeige
Build und Push Docker Image / build-and-push (push) Successful in 10s

This commit is contained in:
2026-10-08 08:27:58 +02:00
parent bf61910304
commit 5efd2f43c5
6 changed files with 63 additions and 45 deletions
-3
View File
@@ -1,3 +0,0 @@
.env
__pycache__/
*.pyc
+4 -3
View File
@@ -157,15 +157,16 @@ location /app/wdm-performance/ {
### Anzeige-Dashboard (`/m<N>_show`) ### Anzeige-Dashboard (`/m<N>_show`)
Reine Anzeigeseite ohne Bedienelemente, gedacht für einen Monitor an der Reine Anzeigeseite ohne Bedienelemente, gedacht für einen Monitor an der
Maschine (skaliert mit der Bildschirmgröße, dunkles Design, `M<N>` unten Maschine (alle Größen skalieren mit der Bildschirmbreite, daher auch für große
rechts). Sie zeigt: TVs bis 4K geeignet; dunkles Design, `M<N>` unten rechts). Sie zeigt:
- **Aktueller Auftrag** (Auftragsnummer, darunter Artikel) und **Nächster - **Aktueller Auftrag** (Auftragsnummer, darunter Artikel) und **Nächster
Auftrag** (erster offene/pausierte Auftrag in der Reihenfolge der Auftrag** (erster offene/pausierte Auftrag in der Reihenfolge der
Auftragsauswahl), Uhr mit Datum und das Firmenlogo Auftragsauswahl), Uhr mit Datum und das Firmenlogo
- **Stückzahl (gesamt)** = Soll-Menge, **(produziert)** = zuletzt gebuchte - **Stückzahl (gesamt)** = Soll-Menge, **(produziert)** = zuletzt gebuchte
Menge, **(offen)** = gesamt − produziert (bei Überbuchung 0), **Soll pro Menge, **(offen)** = gesamt − produziert (bei Überbuchung 0), **Soll pro
Stunde**, **Stück/h (Buchung)** = Stück/h der letzten Buchung und Stunde**, **Stück/h (Buchung)** = Stück/h der letzten Buchung und
**Abweichung** = Stück/h (Buchung) − Soll pro Stunde **Abweichung** = Stück/h (Buchung) − Soll pro Stunde (grün ab 0, rot bei
negativer Abweichung)
- **Protokoll** aller Buchungen des aktuellen Auftrags, die neueste Buchung - **Protokoll** aller Buchungen des aktuellen Auftrags, die neueste Buchung
steht immer oben (maximal die letzten 50) steht immer oben (maximal die letzten 50)
+1 -1
View File
@@ -1 +1 @@
1.0.25 1.0.0
+2
View File
@@ -700,6 +700,8 @@ def machine_show(maschine_id):
"ist_h": fmt_num(ist_h), "ist_h": fmt_num(ist_h),
# Abweichung der zuletzt gebuchten Rate vom Soll pro Stunde. # Abweichung der zuletzt gebuchten Rate vom Soll pro Stunde.
"abweichung": fmt_num(round(ist_h - soll_h, 2)), "abweichung": fmt_num(round(ist_h - soll_h, 2)),
# Grün ab 0 (Soll erreicht oder übertroffen), Rot bei Unterschreitung.
"abweichung_positiv": round(ist_h - soll_h, 2) >= 0,
} }
cur.execute( cur.execute(
'SELECT id, timestamp, status, produziert, h_avg, p_grund FROM "MDE" ' 'SELECT id, timestamp, status, produziert, h_avg, p_grund FROM "MDE" '
+55 -37
View File
@@ -522,124 +522,142 @@ table.data-table td.col-actions { white-space: nowrap; }
} }
/* ------------------------------------------------------------------ /* ------------------------------------------------------------------
Anzeige-Dashboard (/m<N>_show) - reine Anzeige, skaliert mit der Anzeige-Dashboard (/m<N>_show) - reine Anzeige für einen großen TV.
Bildschirmbreite (Monitor in der Halle) Alle Größen sind in em und hängen an EINER Basisschrift, die mit der
Bildschirmbreite mitwächst (Full HD ~16px, 4K ~32px). So bleibt das
Layout auf jeder Auflösung gleich luftig.
------------------------------------------------------------------ */ ------------------------------------------------------------------ */
.dash-body { overflow: hidden; } .dash-body { overflow: hidden; }
.dash { .dash {
font-size: max(9px, 0.85vw);
height: 100vh; height: 100vh;
padding: clamp(10px, 1.2vw, 24px); padding: 1.8em 2em;
display: grid; display: grid;
grid-template-rows: auto auto minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr);
gap: clamp(10px, 1.4vw, 28px); gap: 1.8em;
} }
.dash-top { .dash-top {
display: grid; display: grid;
grid-template-columns: 1fr 1fr 1fr 1fr; grid-template-columns: 1fr 1fr 1fr 1fr;
gap: clamp(10px, 1.2vw, 24px); gap: 1.6em;
align-items: center;
} }
.dash-kpis { .dash-kpis {
display: grid; display: grid;
grid-template-columns: repeat(6, 1fr); grid-template-columns: repeat(6, 1fr);
gap: clamp(8px, 1vw, 20px); gap: 1.6em;
} }
.dash-tile { min-width: 0; padding: 4px 6px; } .dash-tile {
min-width: 0;
background: var(--panel);
border-radius: 0.7em;
padding: 1.1em 1.3em 1.2em;
}
.dash-title { .dash-title {
color: var(--text-dim); color: var(--text-dim);
font-size: clamp(0.8rem, 1.05vw, 1.3rem); font-size: 1.1em;
font-weight: 600; font-weight: 600;
letter-spacing: 0.02em;
white-space: nowrap; white-space: nowrap;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
} }
.dash-order { .dash-order {
min-height: 1.2em; min-height: 1.15em;
margin-top: 0.4vw; margin-top: 0.5em;
text-align: center; text-align: center;
font-size: clamp(1.6rem, 3.2vw, 4.2rem); font-size: 3.2em;
font-weight: 700; font-weight: 700;
line-height: 1.15; line-height: 1.15;
overflow-wrap: anywhere; overflow-wrap: anywhere;
} }
.dash-article { .dash-article {
min-height: 1.3em; min-height: 1.3em;
margin-top: 0.3em;
text-align: center; text-align: center;
color: var(--text-dim); color: var(--text-dim);
font-size: clamp(0.9rem, 1.3vw, 1.7rem); font-size: 1.5em;
} }
.dash-clock { text-align: center; } .dash-clock {
.dash-clock-date { font-size: clamp(1rem, 1.5vw, 2rem); } text-align: center;
display: flex;
flex-direction: column;
justify-content: center;
}
.dash-clock-date { font-size: 1.7em; }
.dash-clock-time { .dash-clock-time {
font-size: clamp(2.4rem, 5.2vw, 7rem); margin-top: 0.1em;
font-size: 5em;
font-weight: 500; font-weight: 500;
line-height: 1.05; line-height: 1.05;
font-variant-numeric: tabular-nums; font-variant-numeric: tabular-nums;
} }
.dash-logo {
display: flex;
align-items: center;
justify-content: center;
}
.dash-logo img { .dash-logo img {
display: block; display: block;
width: auto; width: auto;
height: clamp(60px, 9vw, 150px); height: 7.5em;
max-width: 100%; max-width: 100%;
margin: 0 auto;
} }
.dash-value { .dash-value {
min-height: 1.1em; min-height: 1.1em;
margin-top: 0.6vw; margin-top: 0.45em;
text-align: center; text-align: center;
font-size: clamp(2.2rem, 4.6vw, 6.4rem); font-size: 4.6em;
font-weight: 600; font-weight: 600;
line-height: 1.1; line-height: 1.1;
font-variant-numeric: tabular-nums; font-variant-numeric: tabular-nums;
} }
.dash-value.green { color: #73bf69; } .dash-value.green, .dash-value .green { color: #73bf69; }
.dash-value.red { color: #f2495c; } .dash-value.red, .dash-value .red { color: #f2495c; }
.dash-key { .dash-key {
background: #5794f2; background: #5794f2;
border-radius: 6px;
color: #fff; color: #fff;
} }
.dash-key .dash-title { color: rgba(255, 255, 255, 0.85); } .dash-key .dash-title { color: rgba(255, 255, 255, 0.88); }
/* Ohne aktiven Auftrag (leerer Wert) keine blaue Fläche */
.dash-key:has(.dash-value:empty) { background: var(--panel); }
.dash-key:has(.dash-value:empty) .dash-title { color: var(--text-dim); }
.dash-log { .dash-log {
min-height: 0; min-height: 0;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
border: 1px solid var(--border); background: var(--panel);
border-radius: 8px; border-radius: 0.7em;
padding: clamp(8px, 0.9vw, 16px); padding: 1.2em 1.4em;
} }
.dash-log-scroll { flex: 1; min-height: 0; overflow: auto; margin-top: 8px; } .dash-log-scroll { flex: 1; min-height: 0; overflow: auto; margin-top: 0.7em; }
.dash-table { .dash-table {
width: 100%; width: 100%;
border-collapse: collapse; border-collapse: collapse;
font-size: clamp(0.95rem, 1.35vw, 1.8rem); font-size: 1.45em;
font-variant-numeric: tabular-nums; font-variant-numeric: tabular-nums;
} }
.dash-table th { .dash-table th {
position: sticky; position: sticky;
top: 0; top: 0;
background: var(--bg); background: var(--panel);
color: var(--text-dim); color: var(--text-dim);
text-align: left; text-align: left;
font-weight: 600; font-weight: 600;
padding: 0.5em 0.7em; padding: 0.6em 1em;
border-bottom: 1px solid var(--border); border-bottom: 2px solid var(--border);
} }
.dash-table td { padding: 0.5em 0.7em; border-bottom: 1px solid var(--border); } .dash-table td { padding: 0.75em 1em; border-bottom: 1px solid var(--border); }
.dash-table .num { text-align: right; } .dash-table .num { text-align: right; }
.dash-table tbody tr:first-child td { font-weight: 600; } .dash-table tbody tr:first-child td { font-weight: 700; }
/* Ohne aktiven Auftrag (leerer Wert) keine blaue Fläche */
.dash-key:has(.dash-value:empty) { background: transparent; }
.dash-key:has(.dash-value:empty) .dash-title { color: var(--text-dim); }
+1 -1
View File
@@ -54,7 +54,7 @@
</div> </div>
<div class="dash-tile"> <div class="dash-tile">
<div class="dash-title">Abweichung</div> <div class="dash-title">Abweichung</div>
<div class="dash-value red" data-live="k-abw">{% if k %}{{ k.abweichung }}{% endif %}</div> <div class="dash-value" data-live="k-abw">{% if k %}<span class="{{ 'green' if k.abweichung_positiv else 'red' }}">{{ k.abweichung }}</span>{% endif %}</div>
</div> </div>
</section> </section>