mirror of
https://gitlab.sectorq.eu/jaydee/mqtt_srv.git
synced 2025-12-14 10:34:53 +01:00
lala
This commit is contained in:
@@ -676,9 +676,9 @@ def on_message(client, userdata, msg):
|
||||
myCmd =f'powershell "& ""c:\\Program Files\\jaydee\\vol_control.ps1""" 1'
|
||||
else:
|
||||
if myObj['target'] == "start":
|
||||
myCmd =f'amixer set Master 100%'
|
||||
myCmd =f'amixer set Master mute'
|
||||
else:
|
||||
myCmd =f'amixer set Master 20%'
|
||||
myCmd =f'amixer set Master unmute'
|
||||
status, output = subprocess.getstatusoutput(myCmd)
|
||||
writeLog(myCmd)
|
||||
output = subprocess.Popen(myCmd, shell=True)
|
||||
|
||||
Reference in New Issue
Block a user