User avatar
Gerrelt
Posts: 294
Joined: Sat Nov 10, 2012 9:01 am

[Tutorial] Stand alone Squeezebox server and player for BBQ

Sat Oct 26, 2013 10:40 am

I've moved this tutorial to my website, for easy maintenance.

See: TUTORIAL: Stand alone Squeezebox server and player for BBQ

Greetings,
Gerrelt.
Last edited by Gerrelt on Wed Jan 13, 2016 12:29 pm, edited 3 times in total.
my Raspberry Pi page: http://raspberry.gerrelt.nl

texy
Forum Moderator
Forum Moderator
Posts: 5172
Joined: Sat Mar 03, 2012 10:59 am
Location: Berkshire, England

Re: [Tutorial] Stand alone Squeezebox server and player for

Thu Oct 31, 2013 1:24 pm

Thanks for that - I will be trying this later. What about iphone support - will I need to install squeezeplug on my iphone, or does squeezelite support airplay?

Texy
Various male/female 40- and 26-way GPIO header for sale here ( IDEAL FOR YOUR PiZero ):
https://www.raspberrypi.org/forums/viewtopic.php?f=93&t=147682#p971555

User avatar
Gerrelt
Posts: 294
Joined: Sat Nov 10, 2012 9:01 am

Re: [Tutorial] Stand alone Squeezebox server and player for

Thu Oct 31, 2013 6:34 pm

It doesn't support airplay.

But the standard logitech squeezebox controller is available for the iphone. That will probably work fine.

And there is iPeng, which I've heard people using it on the Iphone. See: http://penguinlovesmusic.de/
I think iPeng is probably the preferred app.
my Raspberry Pi page: http://raspberry.gerrelt.nl

texy
Forum Moderator
Forum Moderator
Posts: 5172
Joined: Sat Mar 03, 2012 10:59 am
Location: Berkshire, England

Re: [Tutorial] Stand alone Squeezebox server and player for

Thu Oct 31, 2013 7:58 pm

Hi,
I got it working, well sort off. I can connect to the server on the pi using my iphone and I can select, play and hear internet radio selected from my iphone as well.
However I cannot work out how to select my music on the iphone - the library is empty. There must be a way of selecting my existing music on my iphone.
Texy
Various male/female 40- and 26-way GPIO header for sale here ( IDEAL FOR YOUR PiZero ):
https://www.raspberrypi.org/forums/viewtopic.php?f=93&t=147682#p971555

User avatar
Gerrelt
Posts: 294
Joined: Sat Nov 10, 2012 9:01 am

Re: [Tutorial] Stand alone Squeezebox server and player for

Thu Oct 31, 2013 8:36 pm

You want to play the music that is on your iphone?

The way I used it is I played the music that's on the USB stick which is attached to the Rapberry Pi via the USB hub.

You can play music on your phone, but you will need to activate the "UPnP/DLNA Media interface" plugin on the settings part of the LMS webinterface.
And you'll need to install a DLNA app on your iPhone. But is that even available on apple devices? Isn't DLNA the competitor of Airplay?

But if you just have problems accessing the files on the USB stick, you probably have a permissions problem.

BTW: you work fast!
my Raspberry Pi page: http://raspberry.gerrelt.nl

texy
Forum Moderator
Forum Moderator
Posts: 5172
Joined: Sat Mar 03, 2012 10:59 am
Location: Berkshire, England

Re: [Tutorial] Stand alone Squeezebox server and player for

Thu Oct 31, 2013 8:52 pm

Hi,
yes, sorry I was being an idiot. The iphone only controls the server/player which is the Pi. What I,m looking for is effectively a bluetooth speaker.......without bluetooth, but over wifi with the pi acting as ad-hoc network.
I've got the pi acting as a bluetooth speaker - there are plenty of tuts out there using bluez, etc, but what I can't work out is how to get access to the ID3 info. I want to hook up one of my displays to the pi to album info, etc, not just a dumb bluetooth speaker.

Texy
Various male/female 40- and 26-way GPIO header for sale here ( IDEAL FOR YOUR PiZero ):
https://www.raspberrypi.org/forums/viewtopic.php?f=93&t=147682#p971555

3Pi
Posts: 11
Joined: Sun Jun 09, 2013 3:15 pm

Re: [Tutorial] Stand alone Squeezebox server and player for

Tue Dec 24, 2013 1:44 pm

Dear Mister Gerrelt,

What I cannot see in the video is how you connected your pi to the radio?
I can see a usb soundkaart in the USB hub but where is the wire from the AUX cable in the radio going then?
You cannot connect his one in the USB hub as well. Or did you also configured this one?

I would expect that you go directly from the analog output on the raspberry Pi to the aux in the radio since your client is also on this device.

User avatar
Gerrelt
Posts: 294
Joined: Sat Nov 10, 2012 9:01 am

Re: [Tutorial] Stand alone Squeezebox server and player for

Tue Dec 24, 2013 2:31 pm

I am using an audio cable with two 3.5 mm jacks on both ends.
One end is plugged into the USB soundcard that's plugged in the USB hub, the other end is plugged into the the aux-in from the radio.

Yes, I only use the radio as a an amplifier with speakers. A seperate amplifier and speakers would have been a nicer solution.
One of those TA2020A based min-amps (as sold on ebay) plus some speakers would have been perfect.
my Raspberry Pi page: http://raspberry.gerrelt.nl

3Pi
Posts: 11
Joined: Sun Jun 09, 2013 3:15 pm

Re: [Tutorial] Stand alone Squeezebox server and player for

Thu Dec 26, 2013 4:51 pm

Of course, and the hub is connected to the Raspberry Pi so automatically the soundcard is the output of the Pi.
Owkey, I completely understand the chain :-)

Thanks for the reply!

User avatar
Gerrelt
Posts: 294
Joined: Sat Nov 10, 2012 9:01 am

Re: [Tutorial] Stand alone Squeezebox server and player for

Thu Dec 26, 2013 5:55 pm

Yep, you got it!
my Raspberry Pi page: http://raspberry.gerrelt.nl

3Pi
Posts: 11
Joined: Sun Jun 09, 2013 3:15 pm

Re: [Tutorial] Stand alone Squeezebox server and player for

Sat Jan 04, 2014 10:48 am

Dear Mister Gerrelt,

Sorry for asking questions again. Especially one which is a little bit of topic. But I don't know where to ask it elsewhere
and with some luck, you also did some experiments with this.

I was willing to use this system in a house to build an "almost sonos system". Therefore, I am not only interested in sending
local music files to my speakers but also music coming from spotify or another application.
In the link "http://www.mysqueezebox.com/index/Home" a lot of applications can be added. Although, when I added them, I cannot see them in my logitech server environment under "toepassingen" where it should stand (you can see this in the attachment).

Can you help me with this problem? It seems that I installed them in "mysqueezebox" link but that I cannot use them in the webpage of the server. This shouldn't be like that I think.

Thanks a lot in advance!
Attachments
lms.png
lms.png (50.49 KiB) Viewed 60592 times

User avatar
Gerrelt
Posts: 294
Joined: Sat Nov 10, 2012 9:01 am

Re: [Tutorial] Stand alone Squeezebox server and player for

Sat Jan 04, 2014 1:21 pm

Hi 3pi,

I think you should try one of the two plug-in's that are available through the setting menu of the LMS management page.
Do this:

In the LMS webpage, press the "Settings" (or "Instellingen" as we dutchies say.. ;) ), in the bottom right corner, and go to the plug-in tab.
You will see this page:
Image

Check the box of one of the two spotify plug-ins ( I would go for the 3rd party one from Triode, he's also the developer of Squeezelite), and choose the "Apply" button in the bottom right corner.

I've read that it can take a while before the plug-in appears in the applications folder.. I haven't used it myself, yet...
my Raspberry Pi page: http://raspberry.gerrelt.nl

3Pi
Posts: 11
Joined: Sun Jun 09, 2013 3:15 pm

Re: [Tutorial] Stand alone Squeezebox server and player for

Sat Jan 04, 2014 10:24 pm

Thanks again for your explaining!

I was already trying this preferences( or indeed "settings" as we say:-)) and I did the thing with the checkbox'en.
I only didn't checked it with the "thirdparty plugins" because in the active plugins already "spotify" was available.

Now, after adding the thirdclient spotify plugins it appeared under my applications tab in the logitech Media Server web page.
Soo, thanks already for that!:-)

Still, what I don't understand so well is the fact that in the active plugins "spotify" and "deezer" are checked. But under the tab "applications they are not available"...It seems they are properly installed but not shown.
I didn't tried the "squeezer" application yet. I just hope it will be available there...

Thanks already for the help!

User avatar
Gerrelt
Posts: 294
Joined: Sat Nov 10, 2012 9:01 am

Re: [Tutorial] Stand alone Squeezebox server and player for

Sun Jan 05, 2014 9:31 am

Did you check the "accept license terms" checkbox in the settings of the third party Spotify plugin? And there you should also enter the username and password (of a premium account).
my Raspberry Pi page: http://raspberry.gerrelt.nl

3Pi
Posts: 11
Joined: Sun Jun 09, 2013 3:15 pm

Re: [Tutorial] Stand alone Squeezebox server and player for

Sun Jan 05, 2014 2:37 pm

Dear Gerrelt,

Yes yes, I already played with that! But thanks anyway for mentioning it anyways :-)

Where I still have problem with is the "squeezer" application. It seems I cannot make a connection with the squeezer application on my nexus 7 to my LMS server. Which account do I need for this? I tried to do it with the "mysqueezerbox" account but this is not working out...

Thanks in advance!

User avatar
Gerrelt
Posts: 294
Joined: Sat Nov 10, 2012 9:01 am

Re: [Tutorial] Stand alone Squeezebox server and player for

Mon Jan 06, 2014 6:32 pm

Hi 3pi,

You don't need an account to connect to the LMS server with Squeezer. You only need to set the LMS server IP address, AND be on the same network as the LMS server.

So, connect your phone to the WiFi network on which you raspberry is connected too. Then start squeezer and go to Properties (menu button) -> Settings -> Server Address.

And then press the "Start scan" button. Squeezer should now automatically find the IP address of your LMS server. Then press OK, you don't have to enter a username and password.
Now you should be able to use squeezer.

Sidenote: In my youtube video(s) I use an older version of Squeezer, recently they upgraded and they changed the look and feel and they chagned the interface a bit.

Greetings,
Gerrelt.
my Raspberry Pi page: http://raspberry.gerrelt.nl

3Pi
Posts: 11
Joined: Sun Jun 09, 2013 3:15 pm

Re: [Tutorial] Stand alone Squeezebox server and player for

Tue Jan 07, 2014 7:28 pm

Hey Gerrelt,

Very strange... With squeezer, it asks me a login and password.
I also tried another one out and this do works without login or password (not even had to configure my IP of the server:-))
Works great!

Thanks for the help!

chayes128
Posts: 5
Joined: Sun Jan 19, 2014 4:05 pm

Re: [Tutorial] Stand alone Squeezebox server and player for

Sun Jan 19, 2014 4:08 pm

so I have gone off and installed this ( i am not using wi-fi) this unit will be hooking up to a cable drop that connects to my main network. I have followed the steps minus the wi-fi set up ones, and when i get to the part where on my phone / tablet etc I fire up a browse and enter: http://myraspberrypi(IP):9000

When i do this i dont get anything displaying on the pages. as well to I have installed the remote app on my Iphone as well and it doesn't NOT see anything.

Any idea as too why?

Thanks,

User avatar
Gerrelt
Posts: 294
Joined: Sat Nov 10, 2012 9:01 am

Re: [Tutorial] Stand alone Squeezebox server and player for

Sun Jan 19, 2014 7:05 pm

Hi chayes128,

That could be caused by a lot of things.

Did you check that the Squeezbox server is running?

Execute this command on the Raspberry:

Code: Select all

ps -A | grep Squeezebox
I am not sure if the process is called "SqueezeboxServer" on the raspberry, I tested this command on my NAS. I am using the raspberries only as players now.

Can you SSH into the raspberry?

Greetings,
Gerrelt.
my Raspberry Pi page: http://raspberry.gerrelt.nl

chayes128
Posts: 5
Joined: Sun Jan 19, 2014 4:05 pm

Re: [Tutorial] Stand alone Squeezebox server and player for

Mon Jan 20, 2014 2:49 am

I ran " ps -A | grep Squeezebox" and no change. I am able to SSH into the pi with no issues

Also side question for you, in your comments you said its only a player now, are you pulling you music library from your nas? If so could you inform me of what code you had to change / add to get it to point too your nas?

User avatar
Gerrelt
Posts: 294
Joined: Sat Nov 10, 2012 9:01 am

Re: [Tutorial] Stand alone Squeezebox server and player for

Mon Jan 20, 2014 12:17 pm

chayes128 wrote:I ran " ps -A | grep Squeezebox" and no change. I am able to SSH into the pi with no issues
The "ps" command was only to check if the squeezebox server was running. Could you post the output here?
chayes128 wrote: Also side question for you, in your comments you said its only a player now, are you pulling you music library from your nas? If so could you inform me of what code you had to change / add to get it to point too your nas?
Yes, I am running the squeezebox server on my nas, it was a standard package which could be installed through the management webpage of the nas.

You only have to change the IP address of the server in the squeezelite script.
Open the script:

Code: Select all

sudo nano /etc/init.d/squeezelite
And search for this line:

Code: Select all

#SB_SERVER_IP="192.168.0.100"
Remove the hash ("#"), and change the ip address into the ip address of your nas.
Exit and save the script and restart squeezelite:

Code: Select all

sudo /etc/init.d/squeezelite stop
sudo /etc/init.d/squeezelite start
my Raspberry Pi page: http://raspberry.gerrelt.nl

chayes128
Posts: 5
Joined: Sun Jan 19, 2014 4:05 pm

Re: [Tutorial] Stand alone Squeezebox server and player for

Mon Jan 20, 2014 9:10 pm

Gerrelt wrote:
chayes128 wrote:I ran " ps -A | grep Squeezebox" and no change. I am able to SSH into the pi with no issues
The "ps" command was only to check if the squeezebox server was running. Could you post the output here?

pi@raspberrypi ~ $ ps -A | grep Squeezebox
pi@raspberrypi ~ $ sudo ps -A | grep Squeezebox
pi@raspberrypi ~ $

Nothing happens at all.

Once i changed the IP address in the raspberry pi to point too my NAS when i open a new web page should i be doing:
http://nasip:9000 or http://raspberryIP:9000?

Thanks,

User avatar
Gerrelt
Posts: 294
Joined: Sat Nov 10, 2012 9:01 am

Re: [Tutorial] Stand alone Squeezebox server and player for

Mon Jan 20, 2014 9:43 pm

OK, your squeezebox server is not running on the raspberry.

Did you activate the Squeezebox server on your nas?
It could be http://yournasip:9000 or http://yournasip:9001 . Sometimes the port is switched to 9001 because of conflicts with other media servers.
my Raspberry Pi page: http://raspberry.gerrelt.nl

chayes128
Posts: 5
Joined: Sun Jan 19, 2014 4:05 pm

Re: [Tutorial] Stand alone Squeezebox server and player for

Mon Jan 20, 2014 9:54 pm

Gerrelt wrote:OK, your squeezebox server is not running on the raspberry.
Okay then, what would i need to do to get this active?

Did you activate the Squeezebox server on your nas?
It could be http://yournasip:9000 or http://yournasip:9001 . Sometimes the port is switched to 9001 because of conflicts with other media servers.
I have installed it onto my nas, when i open the application on the it will bring me too http://nasip:9002

where i can add music etc which is great but the nas will not be in the same area as the raspberry once it is at it's final location.

Edit:
now when I run " ps -A |grep squeeze" I get this now:

pi@raspberrypi ~ $ ps -A |grep squeeze
2096 ? 00:00:00 squeezeboxserve
pi@raspberrypi ~ $

now went back too my browser and attempted : http://raspberryip:9000-004(range) refreshing the page each time and still nothing
So if i go to the application i have installed on my NAS under the drop down menu on the right hand side next to the Logitech logo a name of raspberrypi is showing ( i didnt change the house name) but when i attempt to play something from the nas wont play through the headphone plug on the pi

User avatar
Gerrelt
Posts: 294
Joined: Sat Nov 10, 2012 9:01 am

Re: [Tutorial] Stand alone Squeezebox server and player for

Tue Jan 21, 2014 12:20 pm

chayes128 wrote:
Gerrelt wrote:OK, your squeezebox server is not running on the raspberry.
Okay then, what would i need to do to get this active?
From step 8 of the "allthingspi" tutorial:

Code: Select all

sudo service logitechmediaserver start 
That should start the squeezebox server.
chayes128 wrote:
Gerrelt wrote: Did you activate the Squeezebox server on your nas?
It could be http://yournasip:9000 or http://yournasip:9001 . Sometimes the port is switched to 9001 because of conflicts with other media servers.
I have installed it onto my nas, when i open the application on the it will bring me too http://nasip:9002

where i can add music etc which is great but the nas will not be in the same area as the raspberry once it is at it's final location.

Edit:
now when I run " ps -A |grep squeeze" I get this now:

pi@raspberrypi ~ $ ps -A |grep squeeze
2096 ? 00:00:00 squeezeboxserve
pi@raspberrypi ~ $

now went back too my browser and attempted : http://raspberryip:9000-004(range) refreshing the page each time and still nothing
So, it is running on your Raspberry, but you cannot access it. Maybe you should check if you did all the steps from allthingspi.
But I would recommend just using the Squeezebox server on your NAS. That would also make it a lot easier to access all the music stored on the NAS.
chayes128 wrote: So if i go to the application i have installed on my NAS under the drop down menu on the right hand side next to the Logitech logo a name of raspberrypi is showing ( i didnt change the house name) but when i attempt to play something from the nas wont play through the headphone plug on the pi
Wat is the output of this command?:

Code: Select all

squeezelite-armv6hf -l
And what did you set in the squeezelite script for SL_SOUNDCARD ?
my Raspberry Pi page: http://raspberry.gerrelt.nl

Return to “Media centres”