Mercurial > code > home > repos > homeauto
diff service/piNode/devices.py @ 1428:56e07d3f0930
frontdoor configs; move device class timing to greplin stats
Ignore-this: f32495ae0d3b4c6f50fe1ba46c57abcd
darcs-hash:c8b6f8460b858868837dc9c98f844528531fe98c
author | drewp <drewp@bigasterisk.com> |
---|---|
date | Thu, 08 Aug 2019 16:50:14 -0700 |
parents | 6bd36e5e109f |
children | 487cb5277ae3 |
line wrap: on
line diff
--- a/service/piNode/devices.py Thu Aug 08 16:48:40 2019 -0700 +++ b/service/piNode/devices.py Thu Aug 08 16:50:14 2019 -0700 @@ -59,6 +59,11 @@ def __init__(self, graph, uri, pi, pinNumber): self.graph, self.uri, self.pi = graph, uri, pi self.pinNumber = pinNumber + scales.init(self, self.__class__.__name__) + self.stats = scales.collection(self.__class__.__name__, + scales.PmfStat('poll'), + scales.PmfStat('output'), + ) self.hostStateInit() def hostStateInit(self): @@ -542,8 +547,8 @@ def updateOutput(self): if 0: for _, _, sg in self.anim.groups.values(): - print sg.uri, sg.current - print list(self.anim.currentColors()) + print (sg.uri, sg.current) + print (list(self.anim.currentColors())) return with pixelStats.currentColors.time():