Mercurial > code > home > repos > light9
comparison bin/dmxserver @ 352:9d1f323fb3d3
new bin/lightsim tied to dmxserver
author | Drew Perttula <drewp@bigasterisk.com> |
---|---|
date | Sun, 10 Jun 2007 17:25:23 +0000 |
parents | 44189a37a876 |
children | 941cfe1e1691 |
comparison
equal
deleted
inserted
replaced
351:a6662d61ebcd | 352:9d1f323fb3d3 |
---|---|
173 | 173 |
174 self.lastseen[cid]=time.time() | 174 self.lastseen[cid]=time.time() |
175 self.clientfreq[cid].update() | 175 self.clientfreq[cid].update() |
176 return "ok" | 176 return "ok" |
177 | 177 |
178 def xmlrpc_currentlevels(self): | |
179 """get a list of levels we're currently sending out. All | |
180 channels beyond the list you get back, they're at zero.""" | |
181 return self.combinedlevels | |
182 | |
178 parser=OptionParser() | 183 parser=OptionParser() |
179 parser.add_option("-f","--fast-updates",action='store_true', | 184 parser.add_option("-f","--fast-updates",action='store_true', |
180 help=('display all dmx output to stdout instead ' | 185 help=('display all dmx output to stdout instead ' |
181 'of the usual reduced output')) | 186 'of the usual reduced output')) |
182 parser.add_option("-r","--updates-per-sec",type='float',default=20, | 187 parser.add_option("-r","--updates-per-sec",type='float',default=20, |