08-17-2024, 03:19 PM
(08-12-2024, 10:49 AM)Tim Curtis Wrote: If you want to add something to the command string that starts librespot then modify the function startSpotify() in /inc/renderer.php.
worker.php gets started in the /etc/rc.local script. Its a daemon (server) that performs the moode startup sequence and then goes into a 3 second polling loop waiting for a job to be placed in its queue by one of the config screens and then does whatever the job requires. The polling loop is also where renderer active states are checked.
watchdog.sh is started by worker, php at the end of the startup sequence. Its a daemon that runs a 6 second polling loop that checks for and logs PHP, MPD and TRX crashes (rare) and also performs the "Wake display on play" action.
@Tim Curtis
i trying to connect moode spotify connect with spotify desktop pc. it is connected and working properly.
how ever if i connect it for long time, 5 hours and more. sometime it is disconnected (spotify desktop not showing moode spotify connect option) but moode web page show that it still connected to spotify. the big problem is spotify service is not running. and must be restart to works again.
is there any chance to run watchdog to restart the spotify service if this service not running?
ps: i check the log. but it is empty. so i really do not know why the service is not running suddenly. after restart the spotify service. it works again and can connect from desktop again
and for upnp there is some question about it.
i found that the config is in /etc/upmpdcli.conf, and looks like you have parser to change this config with this page www/upp-config.php
the question is.
1. i not found any device config for upnp. that you configure to connect. is there another config ?
2. there is tidal option there. why it is not implemented in moode? any reason?