Simple guide to building an online radio player using Raspberry Pi with Android/iOS device as remote control.
My brother shifted home but left behind a set of stereo speakers with subwoofer. To not leave in the dust, I took it and hooked it to my Raspberry Pi 2. My Pi is already connected to my TV but instead of keeping the screen on when all I need is just to listen, having a set of speakers is better; i.e. lower power consumption, not introducing extra lighting to the room, etc.
You need:
You may refer to a guide I have written, Installing Kodi.
If you have both HDMI and analogue audio ports connected like my setup, you need to tweak Kodi to output to both at the same time. Otherwise, it will play to HDMI exclusively.
The steps are:
System > Settings > System > Audio output
.Audio output device
to HDMI and Analogue
.On the same screen, I changed Number of channels
to 2.1
since I have a pair of speakers and a subwoofer. Change this to whichever that fits yours.
Firstly, you need to add a repository that has TuneIn addon into Kodi. An example of such is SuperRepo. Please follow their guide.
Then, install TuneIn radio addon:
Music > Add-ons > Get more...
.TuneIn Radio
and install it.Now test playing an online radio channel. Not every channel work since some stations may have imposed geo-blocking.
From Kodi main screen, navigate to System > Settings > Services > Web server
. Enable Allow control of Kodi via HTTP
. Verify that your Raspberry Pi Kodi can be accessed from another machine on local area network by browsing http://<Pi hostname>:8080/
which should look like below:
Then you should be able to remote control Kodi using their official mobile app:
Have fun listening!