Mercurial > code > home > repos > light9
comparison bin/dmxserver @ 876:e263c4bd73f9
pass dmx choice into dmxserver
Ignore-this: 182e13858be1aa68fc956e345dbbf8ed
author | Drew Perttula <drewp@bigasterisk.com> |
---|---|
date | Fri, 07 Jun 2013 07:13:24 +0000 |
parents | a301a0039c66 |
children | 527b592b482a |
comparison
equal
deleted
inserted
replaced
875:2b2ad8e7cb9f | 876:e263c4bd73f9 |
---|---|
50 | 50 |
51 # desired seconds between sendlevels() calls | 51 # desired seconds between sendlevels() calls |
52 self.calldelay=1/options.updates_per_sec | 52 self.calldelay=1/options.updates_per_sec |
53 | 53 |
54 print "starting parport connection" | 54 print "starting parport connection" |
55 self.parportdmx=UsbDMX() #ParportDMX() | 55 self.parportdmx = UsbDMX(port=options.dmx_device) |
56 if os.environ.get('DMXDUMMY',0): | 56 if os.environ.get('DMXDUMMY',0): |
57 self.parportdmx.godummy() | 57 self.parportdmx.godummy() |
58 else: | 58 else: |
59 self.parportdmx.golive() | 59 self.parportdmx.golive() |
60 | 60 |
202 parser.add_option("-f","--fast-updates",action='store_true', | 202 parser.add_option("-f","--fast-updates",action='store_true', |
203 help=('display all dmx output to stdout instead ' | 203 help=('display all dmx output to stdout instead ' |
204 'of the usual reduced output')) | 204 'of the usual reduced output')) |
205 parser.add_option("-r","--updates-per-sec",type='float',default=20, | 205 parser.add_option("-r","--updates-per-sec",type='float',default=20, |
206 help=('dmx output frequency')) | 206 help=('dmx output frequency')) |
207 parser.add_option("-d","--dmx-device", default='/dev/dmx0', | |
208 help='dmx device name') | |
207 parser.add_option("-n", "--dummy", action="store_true", | 209 parser.add_option("-n", "--dummy", action="store_true", |
208 help="dummy mode, same as DMXDUMMY=1 env variable") | 210 help="dummy mode, same as DMXDUMMY=1 env variable") |
209 (options,songfiles)=parser.parse_args() | 211 (options,songfiles)=parser.parse_args() |
210 | 212 |
211 print options | 213 print options |