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:
@@ -683,7 +683,8 @@ def on_message(client, userdata, msg):
|
||||
else:
|
||||
myCmd =f'amixer set Master unmute'
|
||||
try:
|
||||
output = subprocess.run(["amixer", "sset", "Master", "mute"], check=True)
|
||||
percent = 20
|
||||
output = subprocess.run(["pactl", "set-sink-volume", "@DEFAULT_SINK@", f"{percent}%"], check=True)
|
||||
writeLog(output)
|
||||
except subprocess.CalledProcessError as e:
|
||||
writeLog(e)
|
||||
|
||||
Reference in New Issue
Block a user