DMXQueue: improve logging
This commit is contained in:
parent
3ac562f0b7
commit
9054c91832
1 changed files with 6 additions and 6 deletions
12
dmx_queue.py
12
dmx_queue.py
|
@ -27,10 +27,6 @@ class DMXQueue:
|
||||||
fps=40,
|
fps=40,
|
||||||
)
|
)
|
||||||
|
|
||||||
def start(self):
|
|
||||||
self.sacn.start()
|
|
||||||
self.sacn.activate_output(self.config.universe)
|
|
||||||
|
|
||||||
self.log.info("")
|
self.log.info("")
|
||||||
self.log.info(f" Base Brightness: {self.config.rainbow_brightness}")
|
self.log.info(f" Base Brightness: {self.config.rainbow_brightness}")
|
||||||
self.log.info(f" Alert Brightness: {self.config.alert_brightness}")
|
self.log.info(f" Alert Brightness: {self.config.alert_brightness}")
|
||||||
|
@ -38,6 +34,10 @@ class DMXQueue:
|
||||||
self.log.info(f" LIGHT: {light}")
|
self.log.info(f" LIGHT: {light}")
|
||||||
self.log.info("")
|
self.log.info("")
|
||||||
|
|
||||||
|
|
||||||
|
def start(self):
|
||||||
|
self.sacn.start()
|
||||||
|
self.sacn.activate_output(self.config.universe)
|
||||||
self.sacn[self.config.universe].multicast = self.config.multicast
|
self.sacn[self.config.universe].multicast = self.config.multicast
|
||||||
if not self.config.multicast:
|
if not self.config.multicast:
|
||||||
self.sacn[self.config.universe].destination = self.config.target
|
self.sacn[self.config.universe].destination = self.config.target
|
||||||
|
@ -73,7 +73,7 @@ class DMXQueue:
|
||||||
self._bulk(*light.dump())
|
self._bulk(*light.dump())
|
||||||
|
|
||||||
def _worker(self):
|
def _worker(self):
|
||||||
self.log.info("Worker startup")
|
self.log.info("Worker is starting ...")
|
||||||
rotation = 0
|
rotation = 0
|
||||||
while self.worker_should_be_running:
|
while self.worker_should_be_running:
|
||||||
try:
|
try:
|
||||||
|
@ -176,4 +176,4 @@ class DMXQueue:
|
||||||
sleep(0.03)
|
sleep(0.03)
|
||||||
else:
|
else:
|
||||||
sleep(0.2)
|
sleep(0.2)
|
||||||
self.log.info("Worker shutdown")
|
self.log.info("Worker is shutting down ...")
|
||||||
|
|
Loading…
Add table
Reference in a new issue