Install Pianobar:
sudo apt install pianobar
Make Dir:
sudo mkdir -p /root/.config/pianobar
Make Config:
The Station Number Is Located In The URL Address Bar
sudo nano /root/.config/pianobar/config
Paste The Following And Edit Station, Password, User:
audio_quality = high
autostart_station = Station Number
password = password
user = email@email.com
Test Pianobar By Running The Following Command:
sudo pianobar
Cancel By Doing:
ctrl+c To Cancel
Setup Audio:
sudo cp /home/pi/lightshowpi/config/contrib/asound.conf /etc/asound.conf
cp ~/lightshowpi/config/defaults.cfg ~/lightshowpi/config/overrides.cfg
Edit The Following File:
nano ~/lightshowpi/config/overrides.cfg
Line: 239 #mode = playlist (Comment Line Out)
Line: 283 mode = stream-in (Uncomment Line)
Line: 286 #stream_command_string = sudo mpg123 --stdout http://193.34.51.115:80 (Comment Line Out)
Line: 289 stream_command_string = pianobar (Uncomment Line And Edit)
Line: 307 use_fifo = False (Change To True)
Line: 314 stream_song_delim = |> " (Uncomment If Needed)
Line: 315 #stream_song_delim = ICY-META: StreamTitle= (Comment Line Out)
Line: 325 input_channels = 1 (Change To 2)
Line: 330 input_sample_rate = 44100 (Change To 44100)
Test LightShowPi:
cd lightshowpi
sudo python /py/synchronized_lights.py