add Pulsar Chromaflood 200 to fixtures

This commit is contained in:
Franzi 2024-05-30 12:45:11 +01:00
parent 1628acd6c3
commit b4e6851e32
Signed by: kunsi
GPG key ID: 12E3D2136B818350
3 changed files with 20 additions and 1 deletions

View file

@ -22,7 +22,7 @@ def load_and_validate_config(path):
with open(path, 'r') as cf:
config = toml_load(cf.read())
except Exception as e:
LOG.error(f'{path} is no valid toml configuration file')
LOG.exception(f'{path} is no valid toml configuration file')
exit(1)
if not config.get('mqtt', {}).get('host'):

View file

@ -0,0 +1,16 @@
from colorsys import hsv_to_rgb
from .common import BaseDMXLight
class PulsarChromaflood200(BaseDMXLight):
name = "Pulsar Chromaflood 200 (10-Channel Mode)"
def _dump(self):
return self.address, [
self.red,
self.green,
self.blue,
0,0,0, # chase 1
0,0,0, # chase 2
self.intensity
]

View file

@ -9,6 +9,7 @@ from time import sleep
from conf import load_and_validate_config
from dmx_queue import DMXQueue
from lights.ignition_wal_l710 import IgnitionWALL710
from lights.pulsar_chromaflood_200 import PulsarChromaflood200
from lights.sheds_30w_cob_rgb import Sheds30WCOBRGB
from lights.stairville_par_56 import StairvillePar56
from lights.varytec_hero_wash_zoom_712 import VarytecHeroWashZoom712
@ -40,6 +41,8 @@ def main():
lights = []
for addr in config.lights.get('ignition_wal_l710', []):
lights.append(IgnitionWALL710(addr))
for addr in config.lights.get('pulsar_chromaflood_200', []):
lights.append(PulsarChromaflood200(addr))
for addr in config.lights.get('sheds_30w_cob_rgb', []):
lights.append(Sheds30WCOBRGB(addr))
for addr in config.lights.get('stairville_par_56', []):