bb4L / rpi-radio-alarm

This is a simple internet radio alarm for the Raspberry Pi

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

This is a simple internet radio alarm for the Raspberry Pi

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Python 99.3%Language:Shell 0.7%