diff --git a/server_microphone.py b/server_microphone.py index ca28d15..493ad81 100644 --- a/server_microphone.py +++ b/server_microphone.py @@ -67,6 +67,18 @@ async def run_test(): pixels.off() #os.system('~/tagesschau/start_news.sh') subprocess.Popen(["sh", "/home/pi/tagesschau/start_news.sh"]) + if "nova" in finalResult and "hex" in finalResult and "result" in finalResult: + pixels.wakeup() + time.sleep(1) + pixels.off() + #os.system('~/tagesschau/start_news.sh') + subprocess.Popen(["sh", "/home/pi/radio/start_nova.sh"]) + if "funk" in finalResult and "hex" in finalResult and "result" in finalResult: + pixels.wakeup() + time.sleep(1) + pixels.off() + #os.system('~/tagesschau/start_news.sh') + subprocess.Popen(["sh", "/home/pi/radio/start_dlf.sh"]) if "ruhe" in finalResult and "hex" in finalResult and run_stop_only_once_flag: pixels.wakeup() time.sleep(1)