Skip to content

12. Tidal and Qobuz integration through Bubbleupnpserver

guussie edited this page Nov 24, 2018 · 3 revisions

Tidal & Qobuz integration using Bubbleupnpserver

In order to get Toidal and Qobuz integration in Kazoo, you will have to install Bubbleupnpserver on a separate server (or on a Raspberry Pi based streamer). If you use a MinimServer based Raspberry Pi NAS, it is a good idea to install Bubbleupnpserver on this machine. Bubbleupnpserver needs Java and MinimServer also requires Java, so in case you combine the two, you will only need to install Java once.

Sources:

https://bubblesoftapps.com/bubbleupnpserver/ https://www.raspberrypi.org/forums/viewtopic.php?t=102021

Install bubbleupnpserver

Download bubbleupnpserver by clicking here.

Unzip the file. On the Raspberry Pi, make sure Samba is installed.

Create a directory

cd
sudo mkdir bubbleupnpserver

Copy the files from the extracted zip file into this directory.

sudo chmod +x launch.sh

Now run launch.sh:

./launch.sh

In a browser on your network, point to the bubbleupnpserver web page:

rapsberrypi.local:58050

You can now configure the streamers in your network and create openHome media renderers.

Important: make sure the Name of the streamer is the same as the Room. If not, it will not work!

Note that in the streamer configuration, AVTransport should be Enabled, otherwise you will not see your streamers in the renderer list.

If you like this, you can make everything permanent by running bubbleupnpserver as a daemon.

Create a new service:

sudo nano /lib/systemd/system/bubbleupnpserver.service

Enter the following text:

[Unit]
Description=BubbleUPnP Server
Requires=network-online.target
After=network-online.target

[Service]
Type=simple
Restart=on-failure
ExecStart=/home/pi/bubbleupnpserver/launch.sh ${OPTS}

[Install]
WantedBy=multi-user.target

Save the file and test it:

sudo systemctl start bubbleupnpserver.service

Once everything runs well, you can make everything permanent:

sudo systemctl enable bubbleupnpserver.service
sudo systemctl start bubbleupnpserver.service

You can check the status of the server:

sudo systemctl status bubbleupnpserver.service

You can take this one step further by creating a web server on port 80, then create a link to the bubbleupnpserver web page. An interesting web server is rpimonitor, because it gives you also other statistics and information about your NAS:

Source: rpimonitor

Install rpimonitor:

sudo apt-get install dirmngr
sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 2C0D3C0F
sudo wget http://goo.gl/vewCLL -O /etc/apt/sources.list.d/rpimonitor.list
sudo apt-get update
sudo apt-get install rpimonitor

Now you have access to the basic rpimonitor web page through:

http://raspberrypi.local:8888.

Update all packages:

sudo /etc/init.d/rpimonitor update
sudo apt-get update
sudo apt-get upgrade
sudo /etc/init.d/rpimonitor update

Edit the main configuration file:

sudo nano /etc/rpimonitor/daemon.conf

Change the line with the daemon port information to:

daemon.port=80

This will make sure that rpimonitor will open when you just type raspberrypi.local in your browser (change the name according to how you configured your NAS).

Edit the other configuration file:

sudo nano /etc/rpimonitor/data.conf

Place an askerisk in front of some lines as follows:

#web.addons.1.name=Addons
#web.addons.1.addons=about
#web.addons.1.name=Shellinabox
#web.addons.1.addons=shellinabox

#web.addons.2.name=Addons example
#web.addons.2.addons=example
#web.addons.2.showTitle=0

#web.addons.4.name=Custom addons
#web.addons.4.addons=custom
#web.addons.4.showTitle=0
#web.addons.4.url=/addons/custom/custominfo.html

Create an entry for the bubbleupnpserver

web.addons.1.name=Home Servers
web.addons.1.addons=bubbleupnpserver
#web.addons.1.showTitle=0

Create a web page for your home servers:

sudo nano /usr/share/rpimonitor/web/addons/bubbleupnpserver/bubbleupnpserver.html

Paste the following text:

<br>
<div class="panel panel-default">
  <div class="panel-heading">
    <h3 class="panel-title">Home servers</h3>
  </div>
  <div class="panel-body">
    <br>
    <ul>
      <li>Bubble upnp server: <a href="http://raspberrypi.local:58050">Bubble upnp Server</a></li>
      <li>Library: <a href="http://library.local">Library Streamer</a></li>
    </ul>
    <br>
  </div>
</div>
<br>

Above we have added a link to the configuration pages of a Raspberry Pi based streamer. You can add more as you wish.

Now you should see Home servers in the rpimonitor menu and this will give you easy access to all the important configuration web pages in your network.

You can study the rpimonitor web pages and create more functionality as you like.