From b4c5a06e0eb0f2cdbfc7249ba94011851ce32a6a Mon Sep 17 00:00:00 2001 From: admin Date: Wed, 11 Feb 2026 11:52:35 +0000 Subject: [PATCH] server_microphone.py aktualisiert --- server_microphone.py | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/server_microphone.py b/server_microphone.py index 5577125..f3649d9 100644 --- a/server_microphone.py +++ b/server_microphone.py @@ -63,6 +63,34 @@ async def run_test(): pixels.off() avm_sid.lights_off() run_stop_only_once_flag = False + if "wand" 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.table_on() + run_stop_only_once_flag = False + if "wand" 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.table_off() + run_stop_only_once_flag = False + if "ecke" 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.corner_on() + run_stop_only_once_flag = False + if "ecke" 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.corner_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()