This project uses the GNU General Public License version 3, see the included LICENSE file.
Raspberry Pi internet radio. Radio station playback using the mpd media server, controlled via the command line, a web interface or Pimoroni "Display-o-Tron 3000" HAT. Main work is in the "piradio" bash script.
- sudo apt-get install mpd mpc amixer bc at
- For web interface: sudo apt-get install apache2 libapache2-mod-php
Control with DotHAT using this Python script: https://github.com/ednl/python/blob/master/radiocontrols.py
- Add "radio.txt" file to /home/pi
- Add "station" and "snooze" scripts to /usr/local/bin
- Optional: add "radiocontrols.py" script to /usr/local/bin
- Edit /etc/rc.local, add: "radiocontrols.py &"
Web interface: copy .php and .png files to /var/www/html. Set permissions: sudo visudo, add: "www-data ALL=(ALL) NOPASSWD: /usr/bin/at, /usr/bin/amixer, /sbin/shutdown".