homelab: eigener Live-Strom (keine Getrennt-Anzeige mehr), Hinweise des Homelab-Waechters auf der Seite, Verbindungsanzeige je Instanz

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Hitonabi
2026-09-24 19:10:02 +02:00
co-authored by Claude Opus 5.5
parent 83c33584e4
commit 160381d8b3
17 changed files with 148 additions and 19 deletions
+11 -1
View File
@@ -9,7 +9,8 @@ import { fehlerText, laeuftNoch } from "./anzeige"
import { melden } from "./meldungen"
import { stromVerbunden } from "./strom"
import type {
AktionsErgebnis, AufraeumKandidat, HomelabLauf, HomelabStand, Instanz, Job, Modell, Nutzung, PartnerStatus, Radar,
AktionsErgebnis, AufraeumKandidat, Hinweis, HomelabLauf, HomelabStand, Instanz, Job, Modell, Nutzung, PartnerStatus,
Radar,
Sicherung, Start, UpdateDetails, ZielAktion, ZielStand,
} from "./typen"
import { gbText } from "./zeit"
@@ -291,3 +292,12 @@ export const useZielAktion = () =>
erfolg: (a) => `${a.label}: gestartet. Das Ergebnis kommt als Meldung.`,
neuLaden: ["homelab", "homelab-laeufe", "ziele-box", "jobs", "start"],
})
/** Was der Wächter des Homelab-Teils gerade sieht (Ausführer schweigt, ein Gast antwortet nicht …). */
export const useHomelabHinweise = (aktiv: boolean) =>
useQuery({
queryKey: ["homelab-hinweise"],
queryFn: () => api<{ hinweise: Hinweis[]; aktiv: boolean }>("/api/homelab/hinweise"),
enabled: aktiv,
refetchInterval: takt(60_000),
})