diff --git a/server_microphone.py b/server_microphone.py index 938e8fc..5577125 100644 --- a/server_microphone.py +++ b/server_microphone.py @@ -63,6 +63,20 @@ async def run_test(): pixels.off() avm_sid.lights_off() run_stop_only_once_flag = False + if "kaffee" in finalResult and "an" in finalResult and activation_word in finalResult and run_stop_only_once_flag: + print("SCHALTER EIN!") + pixels.think() + time.sleep(1) + pixels.off() + avm_sid.coffee_on() + run_stop_only_once_flag = False + if "kaffee" in finalResult and "aus" in finalResult and activation_word in finalResult and run_stop_only_once_flag: + print("SCHALTER AUS!") + pixels.think() + time.sleep(1) + pixels.off() + avm_sid.coffee_off() + run_stop_only_once_flag = False if "blinken" in finalResult and activation_word in finalResult and run_stop_only_once_flag: print("Blinken!") pixels.think()