When I run the PiPhi script or any of the LCD examples, I get an “'lcd' is not defined” error message.
The PiPhi script must be run as root in order to access the LCD and keypad hardware:
sudo python PiPhi.py
If that doesn’t fix it, check for any solder bridges or cold joints on the LCD plate, and make sure the headers between the plate and Raspberry Pi are aligned.
Or the code may be having difficulty accessing the I2C bus. We can override this manually if the need arises. Edit PiPhi.py, looking for this line:
lcd = Adafruit_CharLCDPlate()
And simply add this parameter:
lcd = Adafruit_CharLCDPlate(busnum=1)
Run the code again and see if that helps.
sudo python PiPhi.py
If that doesn’t fix it, check for any solder bridges or cold joints on the LCD plate, and make sure the headers between the plate and Raspberry Pi are aligned.
Or the code may be having difficulty accessing the I2C bus. We can override this manually if the need arises. Edit PiPhi.py, looking for this line:
lcd = Adafruit_CharLCDPlate()
And simply add this parameter:
lcd = Adafruit_CharLCDPlate(busnum=1)
Run the code again and see if that helps.
The Raspberry Pi does not boot when the LCD/Keypad Pi Plate is attached.
Check for any solder bridges or cold joints on the LCD plate, and make sure the headers between the plate and Raspberry Pi are aligned.
A keyboard attached to the Raspberry Pi is not responding.
Some keyboards require more power than the Raspberry Pi USB port can provide. Add a powered USB hub, or try a different keyboard if you have a spare.
The system never connects to the wireless network.
Most likely a typo during the wireless setup procedure. Go through each step on the “Initial System Configuration” page and check spelling carefully, including your wireless network name (SSID) and password.
“Hidden” WiFi networks are particularly fussy, and even with the extra directions provided might not connect. We very strongly recommend using a broadcast network name. If using a hidden network…when creating the file wpa_supplicant.conf, did you remember to change the SSID and password to the values used by your network?
It might also be an incompatible USB wireless adapter. The one in the Adafruit shop is known to work with the Raspberry Pi.
“Hidden” WiFi networks are particularly fussy, and even with the extra directions provided might not connect. We very strongly recommend using a broadcast network name. If using a hidden network…when creating the file wpa_supplicant.conf, did you remember to change the SSID and password to the values used by your network?
It might also be an incompatible USB wireless adapter. The one in the Adafruit shop is known to work with the Raspberry Pi.
The PiPhi script just hangs at “Receiving station list…”
The pianobar application is most likely failing to connect to the Pandora server…probably due to an incorrect email address and/or password. Check the settings in the configuration file and make sure these match your Pandora credentials, not the account on your Raspberry Pi.
If in doubt, run pianobar directly from the command line first. Once that’s working, then move on to the PiPhi script.
If in doubt, run pianobar directly from the command line first. Once that’s working, then move on to the PiPhi script.
pianobar (or the PiPhi script) is running, but no sound is coming from the headphone jack.
Make sure audio is routed to the headphone jack rather than the HDMI port. From the command line:
sudo amixer cset numid=3 1
sudo amixer cset numid=3 1
When pianobar tries to connect, I get a “TLS handshake error” message.
Enter the following command (as a single line — copy and paste verbatim, if possible):
fingerprint=`openssl s_client -connect tuner.pandora.com:443 < /dev/null 2> /dev/null | openssl x509 -noout -fingerprint | tr -d ':' | cut -d'=' -f2` && echo tls_fingerprint = $fingerprint >> ~/.config/pianobar/config
Then try pianobar (or PiPhi) again.
(from Jacob Roeland's “pidora” tutorial)
fingerprint=`openssl s_client -connect tuner.pandora.com:443 < /dev/null 2> /dev/null | openssl x509 -noout -fingerprint | tr -d ':' | cut -d'=' -f2` && echo tls_fingerprint = $fingerprint >> ~/.config/pianobar/config
Then try pianobar (or PiPhi) again.
(from Jacob Roeland's “pidora” tutorial)
Text editor powered by tinymce.