Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Solved: Restart Renderer through HTTP commands
#1
I am still plagued with the issue of librespot quitting when my DAC input is changed from USB. I can't change the habits of my partner, so I am trying to find work-arounds until Librespot releases the next rev (which is supposed to have a fix) and Moode integrates the update.

Is it possible to restart a renderer through the HTTP commands, something like
Code:
http://moode/command/?cmd=restart-renderer --spotify
Reply
#2
You could try editing /var/www/command/index.php and adding a code block like below in the section 
// PHP and BASH scripts

Code:
       } else if (stripos($_GET['cmd'], 'restart-renderer.php') !== false) {
          $result = sysCmd('/var/www/util/' . $_GET['cmd']);
          echo $result[0];

Then

Code:
http://moode/command/?cmd=restart-renderer.php --spotify
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#3
Thanks Tim! This works perfectly.
Reply


Forum Jump: