mirror of
https://gitlab.sectorq.eu/jaydee/mqtt_srv.git
synced 2025-12-14 02:34:52 +01:00
build
This commit is contained in:
@@ -692,7 +692,7 @@ def on_message(client, userdata, msg):
|
||||
writeLog("Linux Vol Control")
|
||||
if myObj['target'] == "start":
|
||||
writeLog("Getting sound status")
|
||||
os.environ["MQTT_SRV_CUR_VOLUME"] = subprocess.Popen("amixer sget Master | awk -F\"[][]\" '/Left:/ { print $2 }'", shell=True)
|
||||
os.environ["MQTT_SRV_CUR_VOLUME"] = subprocess.Popen("sudo XDG_RUNTIME_DIR=/run/user/1000 -u jd amixer sget Master | awk -F\"[][]\" '/Left:/ { print $2 }'", shell=True)
|
||||
writeLog(os.environ["MQTT_SRV_CUR_VOLUME"])
|
||||
myCmd =f'sudo XDG_RUNTIME_DIR=/run/user/1000 -u jd amixer set Master 20%'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user