Thank you for your donation!


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


Use Radio-Stations as Fun-Sound-Board
#1
Question 
Hello all,

does anybody has an idea or trick to call .sh scripts in the backend from frontend webinterface?
My idea was to store a radio station with a command that calls a shell script on the Raspberry.
Is something even possible with the moode audio webinterface?

With my other test system i have setup an nginx with php. In the root www i have placed a HTML File with a form and button. If i press a button on the html form my raspi runs a shell script. That works. Example play.php:

PHP Code:
<?php
shell_exec
('mpc play');
header('Location: /index.php');
?>

But is that possible over moodeaudio webinterface?

Thanks for your ideas
Patrick
Reply


Forum Jump: