This commit is contained in:
Michael Lehmann
2025-02-18 22:06:50 +01:00
parent 088a15975c
commit f34cf6da8b
12 changed files with 408 additions and 9 deletions

16
data.go Normal file
View File

@@ -0,0 +1,16 @@
package main
// BulbStatus fasst den Status zusammen, der im Template dargestellt wird.
type BulbStatus struct {
IP string
Port string
Name string
IsOn bool
Message string // Optional: Zusätzliche Infos, z. B. Fehleranzeige
}
// GroupStatus repräsentiert eine Gruppe von Bulbs für die Anzeige.
type GroupStatus struct {
Name string
Bulbs []BulbStatus
}