Last Updated on May 27, 2020
PyRadio
PyRadio works well on the RPI4 and is a competent internet radio player. If you insist on a command-line program, it gets my recommendation. It supports radio-browser.info, so you don’t need to manually add streams. It’s a good way to browse for new radio stations.
Like other curses based software, you’ll want to learn the keyboard shortcuts. Pressing ? raises a useful help dialog. There are different controls for the main window, playlists window, and themes window. The help dialog covers each of them.
The software needs a media player installed on your system. As you can see from the image above, my selected player is mplayer, but it can also use mpv or VLC.
PyRadio reads the stations to use from a CSV file, where each line contains two columns, the first being the station name and the second being the stream URL.
There are 6 preconfigured themes and 3 system themes available. Press t shows the available themes.
Other features include:
- Select and play a random radio station.
- Mute the player.
- Save the volume level.
- Open, save and reload playlists.
- Specify a playlist to load (use the -s command line option).
- Delete the selected station.
Installation
There’s no Raspbian package. But compiling PyRadio is very straightforward. Issue the following commands:
$ cd pyradio
$ devel/build_install_pyradio
Next page: Page 5 – StreamTuner2
Pages in this article:
Page 1 – Introduction
Page 2 – Tauon Music Box
Page 3 – Radiotray-NG
Page 4 – PyRadio
Page 5 – StreamTuner2
Page 6 – Curseradio
Page 7 – Goodvibes
Page 8 – Sayonara Player
Page 9 – Cantata
Page 10 – Yarock
Page 11 – Summary
Complete list of articles in this series:
Raspberry Pi 4 Blog | |
---|---|
Week 36 | Manage your personal collections on the RPI4 |
Week 35 | Survey of terminal emulators |
Week 34 | Search the desktop with the latest version of Recoll |
Week 33 | Personal Information Managers on the RPI4 |
Week 32 | Keep a diary with the RPI4 |
Week 31 | Process complex mathematical functions, plot 2D and 3D graphs with calculators |
Week 30 | Internet radio on this tiny computer. A detailed survey of open source software |
Week 29 | Professionally manage your photo collection with digiKam |
Week 28 | Typeset beautifully with LyX |
Week 27 | Software that teaches young people how to learn basic computing skills and beyond |
Week 26 | Firefox revisited - Raspbian now offers a real alternative to Chromium |
Week 25 | Turn the Raspberry Pi 4 into a low power writing machine |
Week 24 | Keep the kids learning and having fun |
Week 23 | Lots of choices to view images |
Week 22 | Listening to podcasts on the RPI4 |
Week 21 | File management on the RPI4 |
Week 20 | Open Broadcaster Software (OBS Studio) on the RPI4 |
Week 19 | Keep up-to-date with these news aggregators |
Week 18 | Web Browsers Again: Firefox |
Week 17 | Retro gaming on the RPI4 |
Week 16 | Screen capturing with the RPI4 |
Week 15 | Emulate the Amiga, ZX Spectrum, and the Atari ST on the RPI4 |
Week 14 | Choose the right model of the RPI4 for your desktop needs |
Week 13 | Using the RPI4 as a screencaster |
Week 12 | Have fun reading comics on the RPI4 with YACReader, MComix, and more |
Week 11 | Turn the RPI4 into a complete home theater |
Week 10 | Watching locally stored video with VLC, OMXPlayer, and others |
Week 9 | PDF viewing on the RPI4 |
Week 8 | Access the RPI4 remotely running GUI apps |
Week 7 | e-book tools are put under the microscope |
Week 6 | The office suite is the archetypal business software. LibreOffice is tested |
Week 5 | Managing your email box with the RPI4 |
Week 4 | Web surfing on the RPI4 looking at Chromium, Vivaldi, Firefox, and Midori |
Week 3 | Video streaming with Chromium & omxplayerGUI as well as streamlink |
Week 2 | A survey of open source music players on the RPI4 including Tauon Music Box |
Week 1 | An introduction to the world of the RPI4 looking at musikcube and PiPackages |
I had to also perform the following before cmake would do its thing:
sudo apt install libqt5x11extras5-dev
sudo apt-get install qttools5-dev
sudo apt install libtag1-dev
I probably had these development packages already installed. One thing worth remembering is you don’t need to install packages one-by-one. For example with your commands, you can type:
$ sudo apt install libqt5x11extras5-dev qttools5-dev libtag1-dev
I also had to install the following packages to get this work:
sudo apt install qt5-default qttools5-dev qttools5-dev-tools qtmultimedia5-dev libqt5svg5-dev libqt5webkit5-dev