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.

29 lines
765 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/effectenforcer"
  6. "git.aiterp.net/lucifer3/server/services/hue"
  7. "git.aiterp.net/lucifer3/server/services/mill"
  8. "git.aiterp.net/lucifer3/server/services/nanoleaf"
  9. "git.aiterp.net/lucifer3/server/services/tradfri"
  10. "time"
  11. )
  12. func main() {
  13. bus := lucifer3.EventBus{}
  14. resolver := services.NewResolver()
  15. sceneMap := services.NewSceneMap(resolver)
  16. bus.JoinPrivileged(resolver)
  17. bus.JoinPrivileged(sceneMap)
  18. bus.Join(effectenforcer.NewService(resolver, sceneMap))
  19. bus.Join(nanoleaf.NewService())
  20. bus.Join(hue.NewService())
  21. bus.Join(tradfri.NewService())
  22. bus.Join(mill.NewService())
  23. time.Sleep(time.Hour)
  24. }