Posts: 14,713
Threads: 339
Joined: Mar 2018
Reputation:
605
Is the issue that clicking or tapping on the Disconnect button does not return to the main Playback screen?
Posts: 14,713
Threads: 339
Joined: Mar 2018
Reputation:
605
It should be fixed in upcoming moOde 9.0.0
Posts: 3
Threads: 1
Joined: May 2025
Reputation:
0
Hello,
I tried to stop the receivers when stopping the sender with the following script:
import requests
url1 = 'http://moodeclient1.local/command/system.php?cmd=poweroff'
url2 = 'http://moodeclient2.local/command/system.php?cmd=poweroff'
try:
# Stop reciever moodeclient1
requests.post(url1)
print("Shutdown moodeclient1")
except:
# On error
print("moodeclient1 is offline.")
try:
# Stop reciever moodeclient2
requests.post(url1)
print("Shutdown moodeclient2")
except:
# On error
print("moodeclient2 is offline.")
And with service reciever_shutdown.service:
[Unit]
Description=Run scrip at shutdown
DefaultDependencies=no
Before=shutdown.target
[Service]
Type=oneshot
ExecStart=/usr/bin/python3 /opt/reciever_shutdown/reciever_shutdown.py
RemainAfterExit=true
[Install]
WantedBy=shutdown.target
But it does not work, I do not find how to configure the service so that it executes the script reciever_shutdown.py during a shuddown of the sender and before the network is stopped by the shutdown.
Maybe you should look with this method ...
Posts: 3
Threads: 1
Joined: May 2025
Reputation:
0
Hi !
I've foiund the good config por the service:
[Unit]
Description=Shutdown recievers
Requires=multi-user.target
After=multi-user.target
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/bin/python3 /opt/reciever_shutdown/reciever_start.py
[Install]
WantedBy=multi-user.target