re-organize repo and add dockerfile.

This commit is contained in:
Michael Lehmann
2025-02-18 23:21:57 +01:00
parent 977475806c
commit 4042ea2147
16 changed files with 43 additions and 1 deletions

17
app/data.go Normal file
View File

@@ -0,0 +1,17 @@
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
AllOn bool
}