# HG changeset patch # User drewp@bigasterisk.com # Date 1496637403 0 # Node ID 64c1bcff604ebf94338cb29bf04c43ba9a30e57b # Parent d372508bec988956b5cf47eadda626a4884ea835 dummyoutput for collector Ignore-this: 76040039af77a9c73c655278584ea376 diff -r d372508bec98 -r 64c1bcff604e bin/collector --- a/bin/collector Sun Jun 04 22:51:14 2017 +0000 +++ b/bin/collector Mon Jun 05 04:36:43 2017 +0000 @@ -21,7 +21,7 @@ from run_local import log from lib.cycloneerr import PrettyErrorHandler -from light9.collector.output import EnttecDmx, Udmx +from light9.collector.output import EnttecDmx, Udmx, DummyOutput from light9.collector.collector import Collector from light9.namespaces import L9 from light9 import networking diff -r d372508bec98 -r 64c1bcff604e light9/collector/output.py --- a/light9/collector/output.py Sun Jun 04 22:51:14 2017 +0000 +++ b/light9/collector/output.py Mon Jun 05 04:36:43 2017 +0000 @@ -53,6 +53,21 @@ """short string to distinguish outputs""" raise NotImplementedError +class DummyOutput(Output): + def __init__(self, uri, *args): + self.uri = uri + self.numChannels = args[-1] + + def update(self, values): + pass + + def flush(self): + pass + + def shortId(self): + return repr(self) + + class DmxOutput(Output): def __init__(self, uri, numChannels): self.uri = uri