florianmainguy / pi_radio

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pi Radio

Internet Radio for Raspberry PI, with MPD / Adafruit LCD Plate / Python.
Based on this project from fizzPOP - Birmingham Hackspace

Modified to get BBC 6 Music straight on when raspberry pi turned on, and includes following radio station:

  • BBC 1
  • BBC 1 Extra
  • BBC 2
  • BBC 3
  • BBC 4
  • BBC 4 Extra
  • BBC 5 Live
  • BBC 5 Live Sports Extra
  • BBC 6 Music

Instructions

To start with setup Media Player (Mpd) with the following commands:
sudo apt-get install mpd mpc git
sudo service mpd start

Download the script and install it:
git clone https://github.com/florianmainguy/pi_radio.git

Install some other things:
sudo apt-get install python-smbus
sudo apt-get install python-serial python-imaging python-unidecode
sudo cp initradio.sh /etc/init.d/radio
sudo update-rc.d radio defaults service

We need to update the playlist address to do this:
sudo nano //etc/mpd.conf

playlist_directory "/var/lib/mpd/playlists”
To:
playlist_directory "/home/pi/radio/playlists”

Press Control O to save followed by Control X to exit.

sudo service radio start

About


Languages

Language:Python 98.1%Language:Shell 1.9%