From a2d0cc09edfc2a522e3a20ee3894879df3e7256b Mon Sep 17 00:00:00 2001 From: oskar Date: Fri, 21 Feb 2025 21:23:29 +0100 Subject: [PATCH] Uncomment the os actions --- client/client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/client.py b/client/client.py index dda6eec..e2f708a 100644 --- a/client/client.py +++ b/client/client.py @@ -37,13 +37,13 @@ def on_message(client, userdata, message): elif message.payload.decode('UTF-8') == 'display_on': if monitor_state == 0: monitor_state = 1 - # os.system("/home/pi/display_on.sh") + os.system("/home/pi/display_on.sh") print("display on") elif message.payload.decode('UTF-8') == 'display_off': if monitor_state == 1: monitor_state = 0 - # os.system("/home/pi/display_off.sh") + os.system("/home/pi/display_off.sh") print("display off") def on_publish(client, userdata, mid, reason_codes, properties):