Jump to content

Networking Module - Logitech Squeezebox


Recommended Posts

Posted

I want to interface my ISY to my Home Music System (SqueezeBox) which sits on my NAS. I would like to make it so when I double tap a switch in a room that the music for that room comes on. I know the URL for my squeezebox to make the music turn on for that room. In this case: http://192.168.0.x/Handheld/plugins/Fav ... x=0&sess=1

 

So if I put the URL above into a browser window the music turns on in the room (not on the PC, the PC just triggers the NAS to stream music to that room). I was hoping I could use the Netowkring Module to interface to the ISY. I wrote an ISY program that calls a Network Resource I created reflecting the above URL. But thats where I get stuck. When the program (or Network Resource) is run the Network Resource I added errors out. I don't understand Get, post, connect, etc and how I should configure this in the network resource to make this work if it is possible at all? I tried it with Get but got an error.

Posted
I wrote an ISY program that calls a Network Resource I created reflecting the above URL. But thats where I get stuck. When the program (or Network Resource) is run the Network Resource I added errors out.

I have been playing around with sending a url, and found a possible error in the ISY which might explain this. I configured a simple GET url (to test.php on the server), and it is received ok on the server.

 

When I added an argument following a '?' (as you did), the server returns a 404 error. In my case, the ISY turns the '?' into an escaped '%3F' sequence. My apache server does not turn this back into a '?' and therefore thinks it's part of the file instead of an argument sequence.

 

I've never seen '?' escaped like this. If apache doesn't recognize it, then it must be wrong. :-) Perhaps the ISY should not escape this character.

 

--Mark

Posted

I got a pre release of 2.7.4 and it works great. Now when I walk into my kitchen and double tap the SWL my music system as well as the light comes on. If I just want the light on I just do a single tap. The ISY networking module is great and really opens up the amount of devices the ISY can interface to. It is a must have module.

 

Michel,

 

It appears that username:password@IPAddress is not supported. Is this something that will be supported going forward as many applications require this.

Posted

Hi jwagner010,

 

Thanks so very much for the update. I am not sure what you mean by username:password@IPAddress. If you are referring to HTTP Authorization, it's indeed already supported as one of the HTTP/HTTPS headers (choose Authorization). Otherwise, you can do almost everything either by putting it on the URL or POST it in the body. Are we talking about the same thing?

 

With kind regards,

Michel

 

I got a pre release of 2.7.4 and it works great. Now when I walk into my kitchen and double tap the SWL my music system as well as the light comes on. If I just want the light on I just do a single tap. The ISY networking module is great and really opens up the amount of devices the ISY can interface to. It is a must have module.

 

Michel,

 

It appears that username:password@IPAddress is not supported. Is this something that will be supported going forward as many applications require this.

Posted

Michel,

 

Not sure what you mean by Choose Authorization. Where do I do that, I cannot find an option for that? I appear to be missing something.

 

Here is my issue in a little more detail to ensure we are talking the same thing. To make my music system turn on I need to pass it the folliwing URL in this format:

 

http://USERNAME:PASSWORD@IPADDRESS:PORT ... ..commands

 

I cannot get the ISY to work with this format. I tested my URL using Firefox and it works fine (some issues with IE8). Because I cannot get ISY to work with this format my alternative is to turn off security on my music system and just send the follwing URL from ISY:

 

http://IPADDRESS:PORT/...........commands......

Posted

Michel,

 

My apologies. After opening my eyes wider I did see that you can edit and add to the HTTP header, where you can then add in the authorization details. Very impressive, the ISY keeps on amazing me. Keep up the great work we really appreciate it.

  • 7 months later...
Posted

jwagner010,

How is your interface with squeeze box going

I got a sqBx and isy 99I would you sharfe /sell you code to interface to it or point me in to the right directions for the codes to sqbox?

 

question2 do yhave a sqbox for ea room or something else for squeeze box to direct the music to?

#3 is there a manual on the network interface module ?

 

 

thankyou

Makr

Posted
jwagner010,

How is your interface with squeeze box going

I got a sqBx and isy 99I would you sharfe /sell you code to interface to it or point me in to the right directions for the codes to sqbox?

 

question2 do yhave a sqbox for ea room or something else for squeeze box to direct the music to?

#3 is there a manual on the network interface module ?

 

 

thankyou

Makr

 

I was curious about these questions as well. Also, where does one get a network intf module and how much is it? I don't see it on the usual sites....

 

Tome

  • 4 years later...
Posted

Awesome! I have a buggy external server that I've been using to do this which has been very frustrating. I'll be setting this up tonight. Thanks for sharing the info, jwagner010!

Posted

Works perfectly! This is so much simpler than my previous solution that required a separate server to monitor the squeezebox server.

Guest
This topic is now closed to further replies.

×
×
  • Create New...