def _send_sub(self): try: outputSettings = self.get_output_settings() except: traceback.print_exc() return sendToCollector('subclient', self.session, outputSettings)
def send(i): if i % 100 == 0: log.info('sendToCollector %s', i) d = sendToCollector("http://localhost:999999/", session, [[DEV["backlight1"], L9["color"], "#ffffff"], [DEV["backlight2"], L9["color"], "#ffffff"], [DEV["backlight3"], L9["color"], "#ffffff"], [DEV["backlight4"], L9["color"], "#ffffff"], [DEV["backlight5"], L9["color"], "#ffffff"], [DEV["down2"], L9["color"], "#ffffff"], [DEV["down3"], L9["color"], "#ffffff"], [DEV["down4"], L9["color"], "#ffffff"], [DEV["houseSide"], L9["level"], .8], [DEV["backlight5"], L9["uv"], 0.011]]) def ontime(dt, i=i): times[i] = dt d.addCallback(ontime)