add support for Stairville PAR 36/56/64
This commit is contained in:
parent
84d73f489b
commit
d6792fba1c
2 changed files with 18 additions and 0 deletions
15
lights/stairville_par_56.py
Normal file
15
lights/stairville_par_56.py
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
from .common import BaseDMXLight
|
||||||
|
|
||||||
|
|
||||||
|
class StairvillePar56(BaseDMXLight):
|
||||||
|
name = "Stairville PAR 36/56/64"
|
||||||
|
|
||||||
|
def _dump(self):
|
||||||
|
offset = self.intensity / 255
|
||||||
|
return self.address, [
|
||||||
|
0, # RGB mode
|
||||||
|
int(self.red * offset),
|
||||||
|
int(self.green * offset),
|
||||||
|
int(self.blue * offset),
|
||||||
|
0, # speed
|
||||||
|
]
|
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.stairville_par_56 import StairvillePar56
|
||||||
from lights.varytec_hero_wash_zoom_712 import VarytecHeroWashZoom712
|
from lights.varytec_hero_wash_zoom_712 import VarytecHeroWashZoom712
|
||||||
from lights.wled import WLED
|
from lights.wled import WLED
|
||||||
from mqtt_queue import MQTTQueue
|
from mqtt_queue import MQTTQueue
|
||||||
|
@ -37,6 +38,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('stairville_par_56', []):
|
||||||
|
lights.append(StairvillePar56(addr))
|
||||||
for addr in config.lights.get('varytec_hero_wash_712_zoom', []):
|
for addr in config.lights.get('varytec_hero_wash_712_zoom', []):
|
||||||
lights.append(VarytecHeroWashZoom712(addr))
|
lights.append(VarytecHeroWashZoom712(addr))
|
||||||
for addr in config.lights.get('wled_multi_rgb', []):
|
for addr in config.lights.get('wled_multi_rgb', []):
|
||||||
|
|
Loading…
Reference in a new issue