mirror of
https://gitlab.sectorq.eu/jaydee/mqtt_srv.git
synced 2025-12-14 10:34:53 +01:00
build
This commit is contained in:
@@ -690,7 +690,8 @@ def on_message(client, userdata, msg):
|
||||
myCmd =f'powershell "& ""c:\\Program Files\\jaydee\\vol_control.ps1""" 1'
|
||||
else:
|
||||
writeLog("Linux Vol Control")
|
||||
if myObj['target'] == "start":
|
||||
if myObj['target'] == "start":
|
||||
os.environ["MQTT_SRV_CUR_VOLEUME"] = subprocess.Popen("amixer sget Master | awk -F\"[][]\" '/Left:/ { print $2 }'", shell=True)
|
||||
myCmd =f'sudo XDG_RUNTIME_DIR=/run/user/1000 -u jd amixer set Master 20%'
|
||||
else:
|
||||
myCmd =f'sudo XDG_RUNTIME_DIR=/run/user/1000 -u jd amixer set Master 100%'
|
||||
|
||||
Reference in New Issue
Block a user