add Pulsar Chromaflood 200 to fixtures
This commit is contained in:
parent
1628acd6c3
commit
b4e6851e32
3 changed files with 20 additions and 1 deletions
2
conf.py
2
conf.py
|
@ -22,7 +22,7 @@ def load_and_validate_config(path):
|
||||||
with open(path, 'r') as cf:
|
with open(path, 'r') as cf:
|
||||||
config = toml_load(cf.read())
|
config = toml_load(cf.read())
|
||||||
except Exception as e:
|
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)
|
exit(1)
|
||||||
|
|
||||||
if not config.get('mqtt', {}).get('host'):
|
if not config.get('mqtt', {}).get('host'):
|
||||||
|
|
16
lights/pulsar_chromaflood_200.py
Normal file
16
lights/pulsar_chromaflood_200.py
Normal 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
|
||||||
|
]
|
3
main.py
3
main.py
|
@ -9,6 +9,7 @@ from time import sleep
|
||||||
from conf import load_and_validate_config
|
from conf import load_and_validate_config
|
||||||
from dmx_queue import DMXQueue
|
from dmx_queue import DMXQueue
|
||||||
from lights.ignition_wal_l710 import IgnitionWALL710
|
from lights.ignition_wal_l710 import IgnitionWALL710
|
||||||
|
from lights.pulsar_chromaflood_200 import PulsarChromaflood200
|
||||||
from lights.sheds_30w_cob_rgb import Sheds30WCOBRGB
|
from lights.sheds_30w_cob_rgb import Sheds30WCOBRGB
|
||||||
from lights.stairville_par_56 import StairvillePar56
|
from lights.stairville_par_56 import StairvillePar56
|
||||||
from lights.varytec_hero_wash_zoom_712 import VarytecHeroWashZoom712
|
from lights.varytec_hero_wash_zoom_712 import VarytecHeroWashZoom712
|
||||||
|
@ -40,6 +41,8 @@ def main():
|
||||||
lights = []
|
lights = []
|
||||||
for addr in config.lights.get('ignition_wal_l710', []):
|
for addr in config.lights.get('ignition_wal_l710', []):
|
||||||
lights.append(IgnitionWALL710(addr))
|
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', []):
|
for addr in config.lights.get('sheds_30w_cob_rgb', []):
|
||||||
lights.append(Sheds30WCOBRGB(addr))
|
lights.append(Sheds30WCOBRGB(addr))
|
||||||
for addr in config.lights.get('stairville_par_56', []):
|
for addr in config.lights.get('stairville_par_56', []):
|
||||||
|
|
Loading…
Reference in a new issue