Skip to content
/ piradio Public

Raspberry Pi as internet radio. Manage station playback by mpd via the command line or a web interface.

License

Notifications You must be signed in to change notification settings

ednl/piradio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

92 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

piradio

Piradio screenshot

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".

About

Raspberry Pi as internet radio. Manage station playback by mpd via the command line or a web interface.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published