Posts: 8
Threads: 1
Joined: Feb 2019
Reputation:
0
04-22-2020, 01:18 PM
(This post was last modified: 04-22-2020, 01:51 PM by angus1071.)
I build a small chest with with Raspberry, amplifer with speakers and LEDs. If I use a remote control or a GPIO-button to start PLAY or any other command so I can start a python-script additionally - so my LEDs blink or are enlightened in a special way to the command.
But if I use just the website this is not possible to add any additional command. Where or in which file could I enable or add the commands?
Posts: 13,487
Threads: 305
Joined: Mar 2018
Reputation:
545
Do you just want to trap play/pause/next/previous?
Posts: 13,487
Threads: 305
Joined: Mar 2018
Reputation:
545
For play/pause/next/previous/stop
/var/www/command/index.php
For volume
/var/www/command/moode.php
Note that the UI only sends the new volume level to the back-end. It does not also send the UI event the changed the volume for example +/- or tap the volume slider.
Posts: 8
Threads: 1
Joined: Feb 2019
Reputation:
0
got the command, but I don't know how to integrate......
echo(exec('python /home/pi/stop.py 2>&1'));
echo(exec('python /home/pi/play.py 2>&1'));