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:
13
mqtt_srv.py
13
mqtt_srv.py
@@ -669,10 +669,17 @@ def on_message(client, userdata, msg):
|
||||
writeLog(myCmd)
|
||||
subprocess.Popen(myCmd.split())
|
||||
if myObj["cmd"] == "assist":
|
||||
if myObj['target'] == "start":
|
||||
myCmd =f'powershell "& ""c:\\Program Files\\jaydee\\vol_control.ps1""" 0.2'
|
||||
if curos == "Windows":
|
||||
if myObj['target'] == "start":
|
||||
myCmd =f'powershell "& ""c:\\Program Files\\jaydee\\vol_control.ps1""" 0.2'
|
||||
else:
|
||||
myCmd =f'powershell "& ""c:\\Program Files\\jaydee\\vol_control.ps1""" 1'
|
||||
else:
|
||||
myCmd =f'powershell "& ""c:\\Program Files\\jaydee\\vol_control.ps1""" 1'
|
||||
if myObj['target'] == "start":
|
||||
myCmd =f'amixer set Master 100%'
|
||||
else:
|
||||
myCmd =f'amixer set Master 20%'
|
||||
|
||||
writeLog(myCmd)
|
||||
output = subprocess.Popen(myCmd, shell=True)
|
||||
writeLog(output)
|
||||
|
||||
Reference in New Issue
Block a user