New Squeezebox plugin - Request For Comments

I created a new device using just the xml file you referenced
In the IP address under advanced I put 192.168.1.135:9002
and none of my squeezeboxes have been discovered
I have 5 of them

Macrho,

You do not use the advanced tab ip address to put in the ip address. When you create a new device with the D_SqueezeboxControl1.xml for device file and I_SqueezeboxControl1.xml for the implementation file and after doing a luup restart you’ll be greeted with a device called “SqueezeBox Controller”. You click the wrench of that device and in the advanced tab, scroll all the way down, where it says serverIP and serverPort, you enter the server ip address of the logitech media server and for the port number it should be 9090, this is not the port used for the logitech media server web interface. This is the telnet interface of the server and is usually 9090.

  • Garrett

p.s. I have attached new files with fixes and additional features.

Garrett -

I’m getting a Lua Startup Failure Lua Failure on the SqueezeBox Controller device
I uploaded the new files and restarted LUUP and then created a new device ( I deleted all my old devices )

When I look at the device (SqueezeBox Controller) in the devices tab I see under advanced:

device_file: D_SqueezeboxControl1.xml
impl_file: I_SqueezeboxControl1.xml

After all the info about the device, I see a Variables section and all I see is:

New Service:
New variable:
New value:

but nothing else, no serverIP or serverPort though on the Player Control page I see IP address (blank) and TCP Port (9090)

Looks like I’m being exceptionally thick on a Friday night!

-Mac

Interesting, the fields just populated
We’ll see if it finds any players :slight_smile:

3 players found so far, very cool! Finds their names as well
Thanks for the help, Garrett – cheers!

I finally got some time to play with the new plugin. SetFiletoPlay is working with playlists. Then I tried to go one further and discovered it also worked when passing it a URL to do TTS. Very nice, Garrett.

For reference, if you want the plugin to convert Text to Speech, go into the Advanced scene tab, select the player and SetFiletoPlay, and type this url into the field:
http://translate.google.com/translate_tts?tl=en&q=Insert+your+message+here
(yes, you have to use the + sign between the words)

Garrett - what else do you have on your to-do list for this plug-in? I now have all my lua coded commands available in the plugin, so I can drop all that code and use the plug-in 100%. But I’m sure there is other stuff that I haven’t even thought of using yet.

Glad to see the plugin is working out for you. At the moment I have nothing on the list to add to the plugin. Well to add in the very near future. I would like to get the syncing of players added to the code. Most of it is there, just needs tweaking and debugging. Do you have any other features that you might want to see in the plugin?

  • Garrett

Finally got some time to get the TTS url correct for google to speak swedish, and this probably applies to other languages with non-US characters so here is an example:

http://translate.google.com/translate_tts?&ie=UTF-8&tl=sv&q=Nu%20testar%20jag%20på%20svenska

Define UTF-8 and url encode the phrase did the trick. Super easy if you are a web person, not so easy for a systems manager as myself… :slight_smile:

Next step is to get the 15 min sleep function triggered from vera, would be neat to integrate it with my “good night” switch by the bed.

garrettwp is the link on page 4 the latest version of this plugin available?

This works great for me. Setfiletoplay with the tts url works.

I’d like to know the syntax to use other settings. like playing a specific album or playlist.

Appreciate the help.

could anyone help me please.
I have tested TTS and got it working.

Does anyone know how to turn repeat off using the plugin?

please couldyou describe how you got TTS working , thanks

Once you install the squeezeplayer add on you will have a squeezebox contoller device. It will also automatically add a device for each sqeezebox / player it finds on the network.

Create a new scene.
In the advanced tab select the squeezeplayer device (the actual player device and not the controller device)
Then choose SetFileToPlay - a text box will appear
Enter:
http://translate.google.com/translate_tts?tl=en&q=Put+your+text+here
(amend as necessary)

Save scene and run it. Your squeezebox should talk :slight_smile:

Hey guys got there in the end and got TTS working super cool!

Anyone got methods for getting it to go back to the last song played or in my case resume the playlist with the internet radio station?

Looking for cleanest smartest way to do it 8)

OMG im having the missing fields problem as noted above…

no place for serverip or port… and ive given it 20 hrs a million reloads and deleted the device and installed again.

I’ve spent a whole day setting up my Rpi with squeezeplug and now this is all that’s stopping me…

anyone have any ideas… I had the squeezebox app from the store installed but del it and associated devices before I created new device with the files above.

please help

okay… re-installed app from the UI. Put in serverip and port, then re-uploaded the above files and it works!!!

But there’s a killjoy…

Garrett I think I have unintentionally stalking you on the boards. I am building a set up similar to yours with Rasp Pi but I am using Squeezeplug (basically an OS with all kinds of media servers and players) and I installed SqueezeLite and SqueezeSlave. I am running LMS on a win 8 machine. When I log in to web control it has been listing two players… RPi and SqueezeSlave, so I logged out then back in, then only one player, SqueezeLite.

My UI device box did say RPI but now I’m only getting a ?

Long story short, which player should I be using? Should I ditch \Ssqueezeplug altogether even though it has gotten me further then openELEC and Raspbmc?

Okay… for anyone who cares… I had multiple servers set up. I guess in my peticular setup it was causing an issue so I uninstalled the server from my Rasp and let LMS running on the desktop handle everything. Works like a charm. Thanks to everyone who contributed this plugin!!!

On the SetFileToPlay parameter, it’s either a URL or a playlist?
I’m trying to play an MP3 file in a specified directory - not having any luck

It needs to point to the full path of the file that the squeezebox server shows. So if the file is located in your library at the following path:

/music/abba/01_Voulez_Vous.mp3

You’ll need to enter that into the FileToPlay field. You can find this information by selecting the “M” icon for the song you want to play in the squeezebox server interface. You can also use a playlist file .m3u. Again, you’ll need to use the full path of where the file is located.

  • Garrett

Thank you, that worked perfectly with the file location! - is there any way to point anywhere other than where the library is? I’m hoping to find a suitably long MP3 of dogs barking (anyone know of one) and would prefer not to have it in my library but if it must that’s ok :slight_smile: