Configure Software Packages

Create a directory for the pianobar configuration:

cd
mkdir -p .config/pianobar

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

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:

nano config

The login credentials are near the top of the 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):

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:

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:

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.

Last updated on 2015-12-01 at 12.39.40 AM Published on 2013-04-12 at 12.02.45 PM