Configure Software Packages

Create a directory for the pianobar configuration:

Download: file
cd
mkdir -p .config/pianobar

Then link to the configuration file included with the radio software:

Download: file
cd .config/pianobar
ln -s ../../Python-WiFi-Radio/config .

(Note: there’s a space before the final period above. Copy and paste this exact line if possible.)

You MUST use this specific config file in conjunction with our WiFi radio software. Don’t change any settings other than the ones prescribed below.

Edit the pianobar configuration file with your Pandora account name and password:

Download: file
nano config

The login credentials are near the top of the file:

Download: file
user = YOUR_EMAIL_ADDRESS
password = YOUR_PASSWORD

Replace these with the email address and password that you use for accessing your Pandora accountnot the account on the Raspberry Pi system! Save the changes to the file and exit from the editor.

Finally, enter the following command to make sure audio is routed to the headphone jack rather than the HDMI port (you can skip this step if using a USB audio device):

Download: file
sudo amixer cset numid=3 1

And with that all said and done, you should now be able to run pianobar from the command line:

Download: file
pianobar

If that runs as expected, connect headphones or speakers. The initial volume level will be very low. Type right parenthesis several times to increase the volume:

))))))))

If that all works, press “q” to exit pianobar, then shut down the system in preparation for installing the final hardware:

Download: file
sudo shutdown -h now

If you were remotely logged in via SSH, your connection will be closed and you won’t see a “halt” message. Allow about 20 seconds before disconnecting power.

This guide was first published on Apr 12, 2013. It was last updated on Apr 12, 2013. This page (Configure Software Packages) was last updated on Nov 10, 2019.