This is a simple internet radio alarm for the Raspberry Pi. It is basically a tiny REST interface using Waitress and Falcon playing radio using mplayer.
sudo apt install python git mplayer python-falcon python-pip
cd ~
git clone https://github.com/bb4L/rpi-radio-alarm.git
Afterwards run inside the project
pip install -r requirements.txt
If it isn't already make the launcher.sh
file executable by:
chmod 755 launcher.sh
Create a directory for logs
mkdir logs
For autostart add the file to crontab by typing:
sudo crontab -e
Then, enter the line:
@reboot sh /home/pi/rpi-radio-alarm/launcher.sh >/home/pi/rpi-radio-alarm/logs/cronlog 2>&1
This is published under the 3-Clause BSD License.