Pimoroni Pirate Radio
2017-Mar-26, Sunday 10:44 pm![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
Hardware
Order the Raspberry Pi Zero W Pirate Radio (get it?) kit.
Assemble. Making sure you put the headers on the correct way around *cough*.
Software
Download the NOOBS installer. Extract archive. Copy contents to microSD card of 8GB+.
Put microSD card in Pi, supply power to boot. (You will need a monitor (micro HDMI), OTG micro-USB adapter to plug in keyboard and mouse.)
When boots into installer connect to wifi. (Have the details handy, you'll need them again later.)
From the network install list select Raspbian Jessie Lite.
Lite boots into console only (you can do away with the mouse now). Default login deatils are; pi/raspberry. You'll need to edit a config file to connect back to wifi;
And add;
Once online, install all your favourites (*cough* vim *cough*). Now is also a good time to set up the Pi as you want it. For instance, change the hostname;
You'll also need to update the hosts file;
And update the line that says;
You can test the speaker with;
Spotipy
Okay, so far so good. But, it's supposed to be a radio yeah? Do you have Spotify Premium? Then you can hook it up, with a convenient one-line installer;
It will install a whole load of things (details here), asking for your input (including Spotify login details), and then reboot.
From another device you can access the web interface at http://192.168.0.2:6680/iris/ (run
(But, it seems the installer doesn't actually remember your Spotify details properly, so open
(Also, your session will timeout regularly, just log back in, no worries.)
VLC
But, I was not content with just Spotify. I wanted actual internet radio. So I installed the vlc-radio as well.
Again, just one line installer;
You can access the web interface at http://192.168.0.2:8080 (default login details; blank username/raspberry).
If you want to queue up your own internet radio stations save them as playlist.m3u, and scp over to /home/pi/.config/vlc/. Then reboot.
(SSH server is off by default, you can turn it on through
Other than warning you that the default volume is very high, that's it. Enjoy!
Order the Raspberry Pi Zero W Pirate Radio (get it?) kit.
Assemble. Making sure you put the headers on the correct way around *cough*.
Software
Download the NOOBS installer. Extract archive. Copy contents to microSD card of 8GB+.
Put microSD card in Pi, supply power to boot. (You will need a monitor (micro HDMI), OTG micro-USB adapter to plug in keyboard and mouse.)
When boots into installer connect to wifi. (Have the details handy, you'll need them again later.)
From the network install list select Raspbian Jessie Lite.
Lite boots into console only (you can do away with the mouse now). Default login deatils are; pi/raspberry. You'll need to edit a config file to connect back to wifi;
sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
And add;
network={
ssid="YOURSSID"
psk="YOURPASSWORD"
}
Once online, install all your favourites (*cough* vim *cough*). Now is also a good time to set up the Pi as you want it. For instance, change the hostname;
sudo hostnamectl set-hostname new_host_name
You'll also need to update the hosts file;
sudo vim /etc/hosts
And update the line that says;
127.0.0.1 raspberrypi
You can test the speaker with;
aplay /usr/share/sounds/alsa/Front_Center.wav
Spotipy
Okay, so far so good. But, it's supposed to be a radio yeah? Do you have Spotify Premium? Then you can hook it up, with a convenient one-line installer;
curl https://get.pimoroni.com/spotipy | bash
It will install a whole load of things (details here), asking for your input (including Spotify login details), and then reboot.
From another device you can access the web interface at http://192.168.0.2:6680/iris/ (run
ifconfig
on the Pi and take the ip address from the wlan0 interface). You'll need to go to the Settings tab and Authorize your Spotify account. Ta-da, that's it, rock out.(But, it seems the installer doesn't actually remember your Spotify details properly, so open
/etc/mopidy/mopidy.conf
, down the bottom check that the [spotify] section contains your username and password. It had forgotten my username and mangled my password, so definitely check.)(Also, your session will timeout regularly, just log back in, no worries.)
VLC
But, I was not content with just Spotify. I wanted actual internet radio. So I installed the vlc-radio as well.
Again, just one line installer;
curl https://get.pimoroni.com/vlcradio | bash
You can access the web interface at http://192.168.0.2:8080 (default login details; blank username/raspberry).
If you want to queue up your own internet radio stations save them as playlist.m3u, and scp over to /home/pi/.config/vlc/. Then reboot.
(SSH server is off by default, you can turn it on through
sudo raspi-config
, more details here.)Other than warning you that the default volume is very high, that's it. Enjoy!