diff --git a/foobaz.py b/foobaz.py index 35722dc..76ea67a 100644 --- a/foobaz.py +++ b/foobaz.py @@ -46,15 +46,13 @@ def main(args): global dmx parser = argparse.ArgumentParser(prog='foobazdmx', description='Make the lights flicker.') - parser.add_argument('-a', '--artnet', type=str, required=True, help="Art-Net server") + parser.add_argument('-a', '--artnet', type=str, required=True, default="127.0.0.1", help="Art-Net server") parser.add_argument('-r', '--room', type=str, required=True, help="light setup for room: shop or big") + parser.add_argument('-u', '--universe', type=int, required=False, default=1, help="Universe to send to") args = parser.parse_args(args) - artnet = args.artnet - - print(f"Starting DMX via Art-Net to {artnet}", file=sys.stderr) - # dmx = DMX("10.31.242.35") - dmx = DMX(artnet, maxchan=128) + print(f"Starting DMX via Art-Net to {args.artnet}", file=sys.stderr) + dmx = DMX(args.artnet, maxchan=128, universe=args.univers) if args.room == "shop": dmx._rgbs = [