def __init__(self): self.ws = None # make the websocket connection + send auth BackboneCollection.__init__(self) self.flowDS = {} self.freq = 10 #in seconds self.init_datastores() #this function calculates the flowrate every so often to update gevent.spawn(self._recalc_loop)
def __init__(self, lox_ctrl): '''initialize the lights as per the list in lights_dict''' global light_mapping self.generate_lights(light_mapping) self.ws = None # make the websocket connection + send auth BackboneCollection.__init__(self) lox_ctrl.register_listner(self.on_message) self.lox_sock = lox_ctrl
def __init__(self): self.ws = None # make the websocket connection + send auth self.freq = 3 #in seconds BackboneCollection.__init__(self) gevent.spawn(self._data_fetch)
def __init__(self, loxone, temp): self.ws = None # make the websocket connection + send auth BackboneCollection.__init__(self) self.sock = loxone loxone.register_listner(self.on_message) temp.register_listner(self.on_temp_change)
def __init__(self): self.ws = None # make the websocket connection + send auth BackboneCollection.__init__(self) self.listners = []