package main import ( lucifer3 "git.aiterp.net/lucifer3/server" "git.aiterp.net/lucifer3/server/commands" "git.aiterp.net/lucifer3/server/services" "git.aiterp.net/lucifer3/server/services/hue" "git.aiterp.net/lucifer3/server/services/nanoleaf" "time" ) func main() { bus := lucifer3.EventBus{} resolver := services.NewResolver() sceneMap := services.NewSceneMap(resolver) bus.JoinPrivileged(resolver) bus.JoinPrivileged(sceneMap) bus.Join(services.NewEffectEnforcer(resolver, sceneMap)) bus.Join(nanoleaf.NewService()) bus.Join(hue.NewService()) bus.RunCommand(commands.ConnectDevice{ID: "hue:10.80.1.5", APIKey: "0-Ch5MKQtYnXrA3b8jvE4408mS3tHo9Vn57Zv8pt"}) time.Sleep(time.Hour) } func p[T any](v T) *T { return &v }