Squeezebox Server (former SqueezeCenter)

Questions and comments specific to a particular plugin should go here.
krambriw
Plugin Developer
Posts: 2570
Joined: Sat Jun 30, 2007 2:51 pm
Location: Stockholm, Sweden
Contact:

Squeezebox Server (former SqueezeCenter)

Post by krambriw » Fri Dec 18, 2009 9:23 am

Latest version always here:
SqueezeboxServer_2011.05.16.zip
(34.23 KiB) Downloaded 589 times
Previous version:
SqueezeboxServer_0.4.0.zip
(33.47 KiB) Downloaded 376 times
Hi,

Here is a new plugin for controlling SqueezeBox devices via Squeezebox Server

First thanks to JingleManSweep <jinglemansweep [at] gmail [dot] com> for providing the Python Wrapper

Of course you first need at least one SqueezeBox player and installed Squeezebox Server (or the old SqueezeCenter)

I have in my case made a very nice combination using

- Spotify plugin
- SqueezeboxServer (this plugin)
- Conceptronic RF Remote plugin

See sample pictures below

I have shared the buttons on the remote between the plugins so some controls Spotify and others the Squeezebox. It works really good as I stream music from Spotify to all my SqueezeBoxes :D , having control with one remote "that sends through walls"

Best regards, Walter

Image3.jpg
Last edited by krambriw on Mon May 16, 2011 8:51 am, edited 5 times in total.

krambriw
Plugin Developer
Posts: 2570
Joined: Sat Jun 30, 2007 2:51 pm
Location: Stockholm, Sweden
Contact:

Re: Plugin for Squeezebox Server (former SqueezeCenter)

Post by krambriw » Mon Dec 21, 2009 10:28 am

EventGhost 0.4.0 update

I have updated the plugin with the mandatory GUID entry

Jostein
Experienced User
Posts: 108
Joined: Sun Feb 15, 2009 12:59 pm

Re: Squeezebox Server (former SqueezeCenter)

Post by Jostein » Fri Mar 18, 2011 5:16 pm

Hi.

Would it be possible to remote control via the mysqueezebox.com? After they introdused spotify support i dont use squeezeserver anymore. Have tried to insert mysqueezebox.com and User pass at the default port but no luck.

Best regards Jostein

krambriw
Plugin Developer
Posts: 2570
Joined: Sat Jun 30, 2007 2:51 pm
Location: Stockholm, Sweden
Contact:

Re: Squeezebox Server (former SqueezeCenter)

Post by krambriw » Sun Mar 20, 2011 11:07 am

Hello Jostein,

It's all about finding an API to mysqueezebox.com and I have not seen any....

So far I do only know about the following ones, all targeting SBS:

- CLI (command line interface) that I use for the plugin
- http requests
- xPL
- xPA

And then you need a SB Touch or Radio to test

I only have SB Boom's and the official Spotify app do not work in those :(


Best regards, Walter

atz6975
Posts: 21
Joined: Mon Dec 01, 2008 6:36 am

Re: Squeezebox Server (former SqueezeCenter)

Post by atz6975 » Sat May 07, 2011 9:38 pm

Hi thanks for the plugin,
how do you set this up? I have 4 boxes hooked to my server.
Thanks
eg 0.3.7.1076
Vista, x32, SP1

krambriw
Plugin Developer
Posts: 2570
Joined: Sat Jun 30, 2007 2:51 pm
Location: Stockholm, Sweden
Contact:

Re: Squeezebox Server (former SqueezeCenter)

Post by krambriw » Sun May 15, 2011 8:17 pm

Hi,

I see two options. Either you configure your sq boxes to play synchronized and use this plugin to control all (same music everywhere). In this case, you can enter the name of any of your sq boxes in the name field

Or you add the plugin a multiple number of times, one for each sq box you like to control (this is possible with the updated version available for download above). Enter in this case the name of each sq box for respective plugin

It is possible to control volume, next track, power on, play, stop, pause etc using the actions

In this updated version I have also added actions for the presets 1-6

Best regards, Walter

atz6975
Posts: 21
Joined: Mon Dec 01, 2008 6:36 am

Re: Squeezebox Server (former SqueezeCenter)

Post by atz6975 » Tue May 17, 2011 12:45 pm

Thank you, I'll give it a try and post back.
eg 0.3.7.1076
Vista, x32, SP1

hippieschuh
Posts: 5
Joined: Sun Sep 18, 2011 9:36 am

Re: Squeezebox Server (former SqueezeCenter)

Post by hippieschuh » Thu Oct 06, 2011 10:37 am

Hello,

many thanks for the plugin! I love it!
There is just one thing, is there a way to disable the log entrys?

2011-10-06 12:26:40 SqueezeboxServer object created
2011-10-06 12:26:50 Logged in: True
2011-10-06 12:26:50 Version: 7.6.1
2011-10-06 12:26:50 SqueezeboxServer object created
2011-10-06 12:27:00 Logged in: True
2011-10-06 12:27:00 Version: 7.6.1
2011-10-06 12:27:00 SqueezeboxServer object created
2011-10-06 12:27:10 Logged in: True
2011-10-06 12:27:10 Version: 7.6.1
2011-10-06 12:27:10 SqueezeboxServer object created
2011-10-06 12:27:20 Logged in: True
2011-10-06 12:27:20 Version: 7.6.1
2011-10-06 12:27:20 SqueezeboxServer object created
2011-10-06 12:27:30 Logged in: True
2011-10-06 12:27:30 Version: 7.6.1
2011-10-06 12:27:30 SqueezeboxServer object created
2011-10-06 12:27:40 Logged in: True
2011-10-06 12:27:40 Version: 7.6.1
2011-10-06 12:27:40 SqueezeboxServer object created
2011-10-06 12:27:50 Logged in: True
2011-10-06 12:27:50 Version: 7.6.1
2011-10-06 12:27:50 SqueezeboxServer object created
2011-10-06 12:28:00 Logged in: True
2011-10-06 12:28:00 Version: 7.6.1
2011-10-06 12:28:00 SqueezeboxServer object created
2011-10-06 12:28:10 Logged in: True
2011-10-06 12:28:10 Version: 7.6.1
2011-10-06 12:28:10 SqueezeboxServer object created
2011-10-06 12:28:20 Logged in: True
2011-10-06 12:28:20 Version: 7.6.1
2011-10-06 12:28:20 SqueezeboxServer object created
2011-10-06 12:28:30 Logged in: True
2011-10-06 12:28:30 Version: 7.6.1
2011-10-06 12:28:30 SqueezeboxServer object created


I dont want to have so many log file entrys. Is there a way to disable that?

krambriw
Plugin Developer
Posts: 2570
Joined: Sat Jun 30, 2007 2:51 pm
Location: Stockholm, Sweden
Contact:

Re: Squeezebox Server (former SqueezeCenter)

Post by krambriw » Fri Oct 07, 2011 1:28 pm

Hi, thanks!

I think you have some problem in general because you should not be kicked out by every ten seconds

In the mean time, you can do a change,

1) open the __init__.py file with an editor
2) put a # as first character of line 183 to comment it out
3) put a # as first character of line 184 to comment it out
4) put a # as first character of line 196 to comment it out

Save the file, re-start eg

But the problem is that your eg is losing the connection

Network problems???

Bets regards, Walter

hippieschuh
Posts: 5
Joined: Sun Sep 18, 2011 9:36 am

Re: Squeezebox Server (former SqueezeCenter)

Post by hippieschuh » Wed Oct 12, 2011 8:52 am

Hello,

many thanks for the support, It works now without changeing anything! I guess it was because my squeezebox server did not had any player avaible/connected when I tested the EG Plugin!

krambriw
Plugin Developer
Posts: 2570
Joined: Sat Jun 30, 2007 2:51 pm
Location: Stockholm, Sweden
Contact:

Re: Squeezebox Server (former SqueezeCenter)

Post by krambriw » Wed Oct 12, 2011 2:07 pm

I'm happy to hear,

I have 3 squeezebox boom and one squeezebox radio so I have added the plugin 4 times (one for each device name) connecting them all to the same squeezebox server.

I then renamed each folder with the macros for each box with the name of the device. Then you have full control of each device. Works also very nice for me.

Best regards, Walter

hippieschuh
Posts: 5
Joined: Sun Sep 18, 2011 9:36 am

Re: Squeezebox Server (former SqueezeCenter)

Post by hippieschuh » Thu Oct 13, 2011 4:01 pm

Hello,

Im having problems with presets.

I hadded 3 channels to my favorites some time ago, they worked fine with preset 1, preset 2, preset 3

yesterday I changed favorite nr. 3 and added two others. But present 4 and 5 dont work in EG (nothing happens) and preset 3 is still the old favorite nr. 3

on both my players the favoties are the same but on mysqueezebox.com no favorites are shown.

how does your plugin get access to the favorites and where can I set them correctly?
Im using a squeezebox receiver and squeezeslave as players

It seams to me that your plugin only accesses the favorites, when adding the plugin?

krambriw
Plugin Developer
Posts: 2570
Joined: Sat Jun 30, 2007 2:51 pm
Location: Stockholm, Sweden
Contact:

Re: Squeezebox Server (former SqueezeCenter)

Post by krambriw » Thu Oct 13, 2011 5:01 pm

Thats correct, I simulate preset button presses using the command line interface for squeezebox server.

I remember that earlier (version of squeezebox server) there was already a possibility in favorite settings to assign a preset button to a favorite. This seems to have been removed, I do not find it anymore.

The only way that I have made it work is not so good if you have many players:

1) Define your favorites for the presets

2) Start playing the first one

3) Press and hold the preset button you want to assign to this favorite (you get a confirmation when this is done)

4) Repeat for the remaining buttons

Now when you try from EG, the correct favorite should be played when you trigger a preset

Best regards, Walter

hippieschuh
Posts: 5
Joined: Sun Sep 18, 2011 9:36 am

Re: Squeezebox Server (former SqueezeCenter)

Post by hippieschuh » Fri Oct 14, 2011 1:32 pm

Hello,

Well, my problem is that I dont have any Squeezebox Hardware expect the receiver, so I cannot set my presets.

I tryed it with your plugin but it doesnt seam to work. There are two funktions in your plugin "Preset 1" and " Simulate button: preset_1.single" but both are doing the same thing for me (playing presets). Can you tell me if there is a way to define presets with your plugin or do you know any other way?

krambriw
Plugin Developer
Posts: 2570
Joined: Sat Jun 30, 2007 2:51 pm
Location: Stockholm, Sweden
Contact:

Re: Squeezebox Server (former SqueezeCenter)

Post by krambriw » Fri Oct 14, 2011 2:15 pm

There is maybe a possibility. Below are the available commands for "Button functions" in the CLI I'm using. The functions "preset_x.hold" might be the thing. As I understand, it will assign favorites to your presets. You could try using the "Simulate button" macro for this purpose.

Best regards, Walter

Code: Select all

##################################################################################
# Button names to function mappings
##################################################################################
# The format here is buttonname = function, grouped by [modename]

[common]
# Button functions that are common to all modes (unless overridden)
0						= numberScroll_0
1						= numberScroll_1
2						= numberScroll_2
3						= numberScroll_3
4						= numberScroll_4
5						= numberScroll_5
6						= numberScroll_6
7						= numberScroll_7
8						= numberScroll_8
9						= numberScroll_9
0.hold					= playFavorite_0
1.hold					= playFavorite_1
2.hold					= playFavorite_2
3.hold					= playFavorite_3
4.hold					= playFavorite_4
5.hold					= playFavorite_5
6.hold					= playFavorite_6
7.hold					= playFavorite_7
8.hold					= playFavorite_8
9.hold					= playFavorite_9
arrow_down				= down
arrow_down.repeat		= down_repeat
knob_right              = down
knob_right.repeat       = down_repeat
arrow_left				= left
arrow_left.hold			= home
arrow_right				= right
knob_push				= right
arrow_up				= up
arrow_up.repeat			= up_repeat
knob_left				= up
knob_left.repeat		= up_repeat
rew.single				= jump_rew
rew.hold				= song_scanner
brightness_down			= brightness_down
brightness_up			= brightness_up
brightness.single		= brightness_toggle
brightness.hold			= dead
brightness				= dead
fwd.single				= jump_fwd
fwd.hold				= song_scanner
format					= titleFormat
muting					= muting
pause.single			= pause
pause.hold				= stop
play.single				= play
play.hold				= play
power					= power_toggle
power_front				= power_toggle
power_front.hold		= dead
power_front.repeat		= dead
power_off				= power_off
power_on				= power_on
add.single				= add
add.hold				= dead
sleep.single			= sleep
sleep.hold				= sleep
snooze.single			= snooze
snooze.hold				= sleep
stop					= stop
voldown					= volume
voldown.repeat			= volume
volup					= volume
volup.repeat			= volume
volup_front             = volume_front
volup_front.repeat      = volume_front
voldown_front           = volume_front
voldown_front.repeat    = volume_front      
pitchdown				= pitch_down
pitchdown.repeat		= pitch_down
pitchup					= pitch_up
pitchup.repeat			= pitch_up
bassdown				= bass_down
bassdown.repeat			= bass_down
bassup					= bass_up
bassup.repeat			= bass_up
trebledown				= treble_down
trebledown.repeat		= treble_down
trebleup				= treble_up
trebleup.repeat			= treble_up
volume					= volume
volumemode				= volumemode
home					= home
preset_1.single			= playFavorite_1
preset_2.single			= playFavorite_2
preset_3.single			= playFavorite_3
preset_4.single			= playFavorite_4
preset_5.single			= playFavorite_5
preset_6.single			= playFavorite_6
preset_1.hold			= favorites_add1
preset_2.hold			= favorites_add2
preset_3.hold			= favorites_add3
preset_4.hold			= favorites_add4
preset_5.hold			= favorites_add5
preset_6.hold			= favorites_add6

# playing display modes
now_playing				= playdisp_toggle
playdisp_none			= playdisp_0
playdisp_et				= playdisp_1
playdisp_rt				= playdisp_2
playdisp_pb				= playdisp_3
playdisp_pbet			= playdisp_4
playdisp_pbrt			= playdisp_5

# textsize modes
size					= textsize_toggle
textsize_small			= textsize_small
textsize_medium			= textsize_medium
textsize_large			= textsize_large

# shuffle modes
shuffle.single			= shuffle_toggle
shuffle.hold			= randomPlay
shuffle_off				= shuffle_off
shuffle_on				= shuffle_on

# repeat modes
repeat					= repeat_toggle
repeat_off				= repeat_0
repeat_one				= repeat_1
repeat_all				= repeat_2

# special buttons
browse					= browse
search					= search
favorites.single		= favorites
favorites.hold			= favorites_add
visual					= visual_toggle

# menu shortcuts
menu_playlist			= menu_playlist
menu_browse_genre		= menu_browse_genre
menu_browse_artist		= menu_browse_artist
menu_browse_album		= menu_browse_album
menu_browse_music		= menu_browse_music
menu_search_artist		= menu_search_artist
menu_search_album		= menu_search_album
menu_search_song		= menu_search_song
menu_browse_playlists	= menu_browse_playlists
menu_plugins			= menu_plugins
menu_home				= menu_home
menu_settings			= menu_settings
menu_pop				= menu_pop
menu_now_playing		= menu_now_playing
menu_synchronize		= menu_synchronize

[home]
arrow_left.hold			= dead

[playlist]
add.hold				= zap

[off]
# When the player is powered off, most buttons are dead
play.single				= modefunction_off->play
add.*					= dead
arrow_right.*			= dead
knob_push.*			= dead
arrow_left.*			= dead
arrow_down.*			= dead
arrow_up.*				= dead
knob_left.*				= dead
knob_right.*			= dead
format					= dead
fwd.*					= dead
menu_browse_album		= dead
menu_browse_artist		= dead
menu_browse_genre		= dead
menu_browse_music		= dead
menu_browse_playlists	= dead
menu_home				= dead
menu_playlist			= dead
menu_plugins			= dead
menu_pop				= dead
menu_search_album		= dead
menu_search_artist		= dead
menu_search_song		= dead
menu_settings			= dead
menu_now_playing		= dead
muting					= dead
now_playing				= dead
pause.*					= dead
playdisp_et				= dead
playdisp_toggle			= dead
playdisp_none			= dead
playdisp_pb				= dead
playdisp_pbet			= dead
playdisp_pbrt			= dead
playdisp_rt				= dead
repeat					= dead
repeat_toggle			= dead
repeat_all				= dead
repeat_off				= dead
repeat_one				= dead
rew.*					= dead
shuffle					= dead
shuffle_toggle			= dead
shuffle.*				= dead
shuffle_off				= dead
shuffle_on				= dead
search					= dead
browse.*				= dead
favorites.*				= dead
sleep.single			= snooze
sleep.hold				= dead
snooze.single			= snooze
snooze.hold				= dead
stop					= dead
voldown.*				= dead
volup.*					= dead
volup_front.*			= dead
voldown_front.*			= dead
0						= dead
1						= dead
2						= dead
3						= dead
4						= dead
5						= dead
6						= dead
7						= dead
8						= dead
9						= dead
pitchdown.*				= dead
pitchup.*				= dead
bassdown.*				= dead
bassup.*				= dead
trebledown.*			= dead
trebleup.*				= dead
volumemode.*			= dead
visual.*				= dead
home.*					= dead

[block]
# When the player is blocked during a long operations, most buttons are dead
# those not listed are safe for use in blocked mode
add.*					= dead
arrow_down.*			= dead
arrow_left				= dead
arrow_right				= dead
knob_push				= dead
arrow_up.*				= dead
knob_left.*				= dead
knob_right.*			= dead
format					= dead
fwd.*					= dead
menu_browse_album		= dead
menu_browse_artist		= dead
menu_browse_genre		= dead
menu_browse_music		= dead
menu_browse_playlists	= dead
menu_home				= dead
menu_playlist			= dead
menu_plugins			= dead
menu_pop				= dead
menu_search_album		= dead
menu_search_artist		= dead
menu_search_song		= dead
menu_settings			= dead
now_playing				= dead
power					= dead
power_front.*			= dead
power_off				= dead
power_on				= dead
rew.*					= dead
shuffle					= dead
shuffle_off				= dead
shuffle_on				= dead
sleep					= dead
stop					= dead
home.*					= dead

[browsedb]
play					= dead
play.single				= play_0
play.hold				= create_mix
add						= dead
add.single				= play_1
add.hold				= play_2

[browsetree]
play					= dead
play.single				= play_0
play.hold				= create_mix
add						= dead
add.single				= play_1
add.hold				= play_2

[trackinfo]
play					= dead
play.single				= play_0
play.hold				= create_mix
add						= dead
add.single				= play_1
add.hold				= play_2

[browsemenu]
play					= right
add						= right

[plugins]
play					= right
add						= right

[settings]
play					= right
add						= right

[screensaver]
0						= done
1						= done
2						= done
3						= done
4						= done
5						= done
6						= done
7						= done
8						= done
9						= done
arrow_down				= done_passbackplaylist
arrow_left				= done_passbackplaylist
arrow_right				= done_passbackplaylist
knob_push				= done_passbackplaylist
arrow_up				= done_passbackplaylist
play.single             = done
play.hold               = done
add.single              = done
add.hold                = zap
pause					= done_passback
stop					= done_passback
knob					= done
knob_left				= volume
knob_right				= volume

[idlesaver]
0						= done
1						= done
2						= done
3						= done
4						= done
5						= done
6						= done
7						= done
8						= done
9						= done
arrow_down				= done_passbackplaylist
arrow_left				= done_passbackplaylist
arrow_right				= done_passbackplaylist
knob_push				= done_passbackplaylist
arrow_up				= done_passbackplaylist
play.single				= done
play.hold				= done
add.single				= done
add.hold				= done
pause					= done_passback
stop					= done_passback
fwd						= done_passback
rew						= done_passback
knob					= done
knob_left				= done_passback
knob_right				= done_passback

[INPUT.Time]
0						= numberLetter_0
1						= numberLetter_1
2						= numberLetter_2
3						= numberLetter_3
4						= numberLetter_4
5						= numberLetter_5
6						= numberLetter_6
7						= numberLetter_7
8						= numberLetter_8
9						= numberLetter_9
arrow_left					= left
arrow_right					= right
knob_push					= right
search						= exit_search
play.*						= dead
play						= exit_play
add.*						= dead
add						= exit_add
knob_left					= down
knob_left.repeat			= down
knob_right					= up
knob_right.repeat			= up

[INPUT.Text]
0						= numberLetter_0
0.hold						= letter_0
1						= numberLetter_1
1.hold						= letter_1
2						= numberLetter_2
2.hold						= letter_2
3						= numberLetter_3
3.hold						= letter_3
4						= numberLetter_4
4.hold						= letter_4
5						= numberLetter_5
5.hold						= letter_5
6						= numberLetter_6
6.hold						= letter_6
7						= numberLetter_7
7.hold						= letter_7
8						= numberLetter_8
8.hold						= letter_8
9						= numberLetter_9
9.hold						= letter_9
arrow_left					= backspace
arrow_right					= nextChar
knob_push					= nextChar
search						= exit_search
play.*						= dead
play						= exit_play
add.*						= dead
add						= letter_space

[INPUT.List]
arrow_up					= up
arrow_up.repeat				= up_repeat
arrow_down					= down
arrow_down.repeat			= down_repeat
knob_left					= up
knob_left.repeat			= up_repeat
knob_right              	= down
knob_right.repeat       	= down_repeat
arrow_left					= exit_left
arrow_right					= exit_right
knob_push					= exit_right
play.*						= passback
add.*						= passback
search.*					= passback
stop.*						= passback
pause.*						= passback

[INPUT.Choice]
arrow_left					= exit_left
arrow_right					= exit_right
knob_push					= exit_right
play.*						= dead
play						= play
add.*						= dead
add.single					= add_single
add.hold					= add_hold
search.*					= passback
stop.*						= passback
pause.*						= passback

[INPUT.Bar]
knob_left					= down
knob_left.repeat			= down
knob_right					= up
knob_right.repeat			= up
arrow_left					= exit_left
arrow_right					= exit_right
knob_push					= exit_right
play.*						= passback
add.*						= passback
search.*					= passback
stop.*						= passback
pause.*						= passback
fwd.*						= passback
rew.*						= passback

[INPUT.Volume]
knob_left					= down
knob_left.repeat			= down
knob_right					= up
knob_right.repeat			= up
arrow_up					= up
arrow_down					= down
arrow_up.repeat				= up
arrow_down.repeat			= down
volup						= up
volup.repeat				= up
voldown						= down
voldown.repeat				= down
volup_front					= up
volup_front.repeat			= up
voldown_front				= down
voldown_front.repeat		= down
arrow_left					= exit_left
arrow_right					= exit
knob_push					= exit
play.*						= exit_passback
add.*						= exit_passback
search.*					= exit_passback
stop.*						= exit_passback
pause.*						= exit_passback
fwd.*						= exit_passback
rew.*						= exit_passback


Post Reply