SkillAgentSearch skills...

Piradio

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

Install / Use

/learn @ednl/Piradio
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

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

View on GitHub
GitHub Stars11
CategoryDevelopment
Updated5mo ago
Forks1

Languages

Shell

Security Score

87/100

Audited on Oct 8, 2025

No findings