Skip to content

Instantly share code, notes, and snippets.

@yratof
Last active November 16, 2016 08:51
Show Gist options
  • Save yratof/60c99302dcec0a7878aa14103b9b624f to your computer and use it in GitHub Desktop.
Save yratof/60c99302dcec0a7878aa14103b9b624f to your computer and use it in GitHub Desktop.
Installing pyradio on a c.h.i.p
# Install everything needed
sudo apt-get install -y python-setuptools python-dev build-essential mplayer
# Install PIP
sudo easy_install pip
# PIP Pyradio
pip install pyradio
# If you get permission errors, try `sudo pip install pyradio`
# Run the radio
pyradio
# Edit the channels in the format: channel title, channel link
sudo nano /usr/local/lib/python2.7/dist-packages/pyradio/stations.csv
# BBC Radio 4 FM, http://bbcmedia.ic.llnwd.net/stream/bbcmedia_radio4fm_mf_p
# BBC Radio 4 Extra, http://bbcmedia.ic.llnwd.net/stream/bbcmedia_radio4extra_mf_p
# BBC World Service - UK Stream, http://bbcwssc.ic.llnwd.net/stream/bbcwssc_mp1_w$
# BBC World Service - News Stream, http://bbcwssc.ic.llnwd.net/stream/bbcwssc_mp1$
# BBC Radio 3, http://bbcmedia.ic.llnwd.net/stream/bbcmedia_radio3_mf_p
# WNYC FM, http://www.wnyc.org/stream/wnyc-fm939/mp3.pls
# WQXR FM, http://www.wnyc.org/stream/wqxr/mp3.pls
# Q2 Music, http://www.wnyc.org/stream/q2/mp3.pls
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment