Skip to content

Latest commit

 

History

History
50 lines (36 loc) · 986 Bytes

README.md

File metadata and controls

50 lines (36 loc) · 986 Bytes

RPi Radio Alarm

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.

Installation

Dependencies

sudo apt install python git mplayer python-falcon python-pip

Get it

cd ~
git clone https://github.com/bb4L/rpi-radio-alarm.git

Afterwards run inside the project

pip install -r requirements.txt

Autostart

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

License

This is published under the 3-Clause BSD License.