make universe configurable
This commit is contained in:
parent
69914c6545
commit
61f4d5dde3
1 changed files with 4 additions and 6 deletions
10
foobaz.py
10
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 = [
|
||||
|
|
Loading…
Reference in a new issue