|
|
|
@ -30,11 +30,11 @@ if __name__ == '__main__':
|
|
|
|
|
event["name"] = data['name']
|
|
|
|
|
if data['secretTools']:
|
|
|
|
|
GPIO.output(pin_config['tools_grn_LED'], GPIO.HIGH)
|
|
|
|
|
else
|
|
|
|
|
else:
|
|
|
|
|
GPIO.output(pin_config['tools_red_LED'], GPIO.HIGH)
|
|
|
|
|
if data['fridge']:
|
|
|
|
|
GPIO.output(pin_config['fridge_grn_LED'], GPIO.HIGH)
|
|
|
|
|
else
|
|
|
|
|
else:
|
|
|
|
|
GPIO.output(pin_config['fridge_red_LED'], GPIO.HIGH)
|
|
|
|
|
timeout = time.time() + 5 # 5 seconds timeout
|
|
|
|
|
while wait:
|
|
|
|
|