mirror of
https://gitlab.sectorq.eu/jaydee/mqtt_srv.git
synced 2025-12-14 18:44: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)
|
writeLog(myCmd)
|
||||||
subprocess.Popen(myCmd.split())
|
subprocess.Popen(myCmd.split())
|
||||||
if myObj["cmd"] == "assist":
|
if myObj["cmd"] == "assist":
|
||||||
if myObj['target'] == "start":
|
if curos == "Windows":
|
||||||
myCmd =f'powershell "& ""c:\\Program Files\\jaydee\\vol_control.ps1""" 0.2'
|
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:
|
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)
|
writeLog(myCmd)
|
||||||
output = subprocess.Popen(myCmd, shell=True)
|
output = subprocess.Popen(myCmd, shell=True)
|
||||||
writeLog(output)
|
writeLog(output)
|
||||||
|
|||||||
Reference in New Issue
Block a user