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%'