A quick and dirty Web client as a radio remote controller for raspberry pi.
- php
- omxplayer
- alsamix
- Adding the line
www-data ALL=(ALL) NOPASSWD: /usr/bin/amixer
in file/etc/sudoers
.
The IHM is done with HTML, JS and AJAX. It sends POST to mute, unmute, set the volume, start or stop a radio. These actions triggered a specific shell_exec
command using either amixer
or omxplayer
(and a kill
for the stop-action).