示例#1
0
    def __init__(self, name, callback_function):
        HomeAutomationThread.__init__(self, name, callback_function)

        self.id = 1
        self.sensor = SENSOR_DHT_SENSOR_TYPE
        self.pin = SENSOR_DHT_SENSOR_PIN
        self.sensors = [self]
        self.humidity = 0.0
        self.temperature = 0.0

        global CurrentInstance
        CurrentInstance = self
示例#2
0
    def __init__(self, name, callback_function):
        HomeAutomationThread.__init__(self, name, callback_function)

        self.id = 1
        self.sensor = SENSOR_DHT_SENSOR_TYPE
        self.pin = SENSOR_DHT_SENSOR_PIN
        self.sensors = [self]
        self.humidity = 0.0
        self.temperature = 0.0

        global CurrentInstance
        CurrentInstance = self
示例#3
0
	def __init__(self, name, callback_function, rgbmatrix):
		HomeAutomationThread.__init__(self, name, callback_function)

		self.rgbmatrix = rgbmatrix