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.

28 lines
708 B

2 years ago
2 years ago
  1. package main
  2. import (
  3. lucifer3 "git.aiterp.net/lucifer3/server"
  4. "git.aiterp.net/lucifer3/server/services"
  5. "git.aiterp.net/lucifer3/server/services/hue"
  6. "git.aiterp.net/lucifer3/server/services/mill"
  7. "git.aiterp.net/lucifer3/server/services/nanoleaf"
  8. "git.aiterp.net/lucifer3/server/services/tradfri"
  9. "time"
  10. )
  11. func main() {
  12. bus := lucifer3.EventBus{}
  13. resolver := services.NewResolver()
  14. sceneMap := services.NewSceneMap(resolver)
  15. bus.JoinPrivileged(resolver)
  16. bus.JoinPrivileged(sceneMap)
  17. bus.Join(services.NewEffectEnforcer(resolver, sceneMap))
  18. bus.Join(nanoleaf.NewService())
  19. bus.Join(hue.NewService())
  20. bus.Join(tradfri.NewService())
  21. bus.Join(mill.NewService())
  22. time.Sleep(time.Hour)
  23. }