From 87d82d8f7382cc3f46fd7781fafc9c02c544e558 Mon Sep 17 00:00:00 2001 From: jaydee Date: Sun, 7 Dec 2025 22:49:08 +0100 Subject: [PATCH] build --- mqtt_srv.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/mqtt_srv.py b/mqtt_srv.py index 4182b58..6fa4693 100755 --- a/mqtt_srv.py +++ b/mqtt_srv.py @@ -704,10 +704,8 @@ def on_message(client, userdata, msg): capture_output=True, text=True ) - - writeLog(result.stdout.strip()) - writeLog(f"Status of volume {output}") - writeLog("HAHAHAAA") + os.environ["MQTT_SRV_CUR_VOLUME"] = result.stdout.strip() + writeLog(f"Status of volume {os.environ["MQTT_SRV_CUR_VOLUME"]}") myCmd = f'sudo XDG_RUNTIME_DIR=/run/user/1000 -u jd amixer set Master 20%'