You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
631 B
26 lines
631 B
package main
|
|
|
|
import (
|
|
lucifer3 "git.aiterp.net/lucifer3/server"
|
|
"git.aiterp.net/lucifer3/server/services"
|
|
"git.aiterp.net/lucifer3/server/services/hue"
|
|
"git.aiterp.net/lucifer3/server/services/nanoleaf"
|
|
"git.aiterp.net/lucifer3/server/services/tradfri"
|
|
"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.Join(tradfri.NewService())
|
|
|
|
time.Sleep(time.Hour)
|
|
}
|