Esempio n. 1
0
 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)
Esempio n. 2
0
    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
Esempio n. 3
0
 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)
Esempio n. 4
0
 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)
Esempio n. 5
0
 def __init__(self):
     self.ws = None # make the websocket connection + send auth
     BackboneCollection.__init__(self)
     self.listners = []