Initial dashboard

This commit is contained in:
Magnus Åhall 2026-08-20 07:05:54 +02:00
parent 1c697a028b
commit 1af3f59b1a
10 changed files with 380 additions and 3 deletions

20
dashboard.go Normal file
View file

@ -0,0 +1,20 @@
package main
type WidgetType int
const (
WidgetLabel WidgetType = iota
WidgetOnOff
)
type Widget struct {
Type WidgetType
X int
Y int
DatapointID int
Attributes map[string]string
}
type Dashboard struct {
Widgets []Widget
}