mirror of
https://gitlab.sectorq.eu/jaydee/mqtt_srv.git
synced 2025-12-14 18:44:53 +01:00
build
This commit is contained in:
12
mqtt_srv.py
12
mqtt_srv.py
@@ -379,6 +379,18 @@ def on_connect(client, userdata, flags, rc):
|
||||
if host.lower() == "router":
|
||||
check_router()
|
||||
|
||||
if host.lower() == "morefine":
|
||||
myCmd =f'sudo XDG_RUNTIME_DIR=/run/user/1000 -u jd amixer set Master 100%'
|
||||
# try:
|
||||
# #percent = 20
|
||||
# #output = subprocess.run(["pactl", "set-sink-volume", "@DEFAULT_SINK@", f"{percent}%"], check=True)
|
||||
# writeLog(output)
|
||||
# except subprocess.CalledProcessError as e:
|
||||
# writeLog(e)
|
||||
# writeLog("Failed to mute/unmute")
|
||||
writeLog(myCmd)
|
||||
output = subprocess.Popen(myCmd, shell=True)
|
||||
|
||||
if host.lower() == "nas":
|
||||
cmnd = "/share/ZFS532_DATA/.qpkg/QKVM/usr/bin/virsh list --all"
|
||||
writeLog(cmnd)
|
||||
|
||||
Reference in New Issue
Block a user