Be more graceful if DMX isn't available
This commit is contained in:
12
gig.py
12
gig.py
@@ -392,12 +392,12 @@ def main():
|
||||
|
||||
audiencecontent = AudienceContent(gigconfig=config, eventrunner=eventrunner)
|
||||
|
||||
# try:
|
||||
wrapper = ClientWrapper()
|
||||
DMX_DATA_SIZE = DMX_UNIVERSE_SIZE
|
||||
dmx_object = dmx.DMX(args.universe, wrapper, DMX_DATA_SIZE)
|
||||
# except Exception:
|
||||
# pass
|
||||
try:
|
||||
wrapper = ClientWrapper()
|
||||
DMX_DATA_SIZE = DMX_UNIVERSE_SIZE
|
||||
dmx_object = dmx.DMX(args.universe, wrapper, DMX_DATA_SIZE)
|
||||
except Exception:
|
||||
dmx_object = None
|
||||
|
||||
fixtureoutput = dmx.FixtureOutput(fixtures=[config['fixtures'][x] for x in config['fixtures']], dmx=dmx_object)
|
||||
pyglet.clock.schedule_interval(fixtureoutput.tick, 1/30.0)
|
||||
|
||||
Reference in New Issue
Block a user