Ejemplo n.º 1
0
    def moduleAct(self):
        if self.nowData['lux'] < self.wantData['lux']:
            actuating.led(self)

        if self.nowData['waterLv'] < self.wantData['waterLv']:
            actuating.buzzer(self)

        if self.nowData['ph'] < self.wantData['ph']:
            actuating.pump(self)
Ejemplo n.º 2
0
def moduleAct():

    if(nowdata['lux'] < wantdata['lux']):
        actuating.led()

    if(nowdata['waterLv'] < wantdata['waterLv']):
        actuating.buzzer()

    if(nowdata['ph'] < wantdata['ph']):
        actuating.valve()