voeg een else toe voor als de contitions niet kloppen
This commit is contained in:
5
dht11.py
5
dht11.py
@@ -58,6 +58,11 @@ def check_data():
|
|||||||
fan_timer_start = 0
|
fan_timer_start = 0
|
||||||
sensor_data['fan'] = False
|
sensor_data['fan'] = False
|
||||||
GPIO.output(FAN_PIN, GPIO.LOW)
|
GPIO.output(FAN_PIN, GPIO.LOW)
|
||||||
|
else:
|
||||||
|
fan_timer_actief = False
|
||||||
|
fan_timer_start = 0
|
||||||
|
sensor_data['fan'] = False
|
||||||
|
GPIO.output(FAN_PIN, GPIO.LOW)
|
||||||
|
|
||||||
class handler_class(http.server.BaseHTTPRequestHandler):
|
class handler_class(http.server.BaseHTTPRequestHandler):
|
||||||
def do_GET (self):
|
def do_GET (self):
|
||||||
|
|||||||
Reference in New Issue
Block a user