From 2609f729412abffa9dd21fe71b40e5bf4245c46d Mon Sep 17 00:00:00 2001 From: angoosh Date: Mon, 13 Jan 2025 21:48:07 +0100 Subject: [PATCH] added server component --- Audio/audio_automation_server.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Audio/audio_automation_server.py b/Audio/audio_automation_server.py index 80ac23f..7b93a15 100644 --- a/Audio/audio_automation_server.py +++ b/Audio/audio_automation_server.py @@ -71,6 +71,10 @@ def checkPC(): if powerState['swhpamp'] == "ON": publ.single("cmnd/swhpamp/POWER", "off", hostname=broker, port=port, auth={'username':username,'password':password}) except Exception as e: print(e) + try: + if powerState['swmicamp'] == "ON": + publ.single("cmnd/swmicamp/POWER", "off", hostname=broker, port=port, auth={'username':username,'password':password}) + except Exception as e: print(e) if __name__ == "__main__": sub=threading.Thread(target=subscribe_state)