jwagner010 Posted May 8, 2009 Posted May 8, 2009 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.
markens Posted May 8, 2009 Posted May 8, 2009 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
nstein Posted May 8, 2009 Posted May 8, 2009 This is a known problem in 2.7.3 and is fixed in 2.7.4 by making encoding optional. If you need the fix sooner, e-mail support. (support@universal-devices.com) See http://forum.universal-devices.com/viewtopic.php?t=2684 for more information. -Nick
jwagner010 Posted May 9, 2009 Author Posted May 9, 2009 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.
Michel Kohanim Posted May 10, 2009 Posted May 10, 2009 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.
jwagner010 Posted May 10, 2009 Author Posted May 10, 2009 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......
jwagner010 Posted May 10, 2009 Author Posted May 10, 2009 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.
Michel Kohanim Posted May 10, 2009 Posted May 10, 2009 jwagner010, No reason to apologize. I think we should be the ones to apologize for the lack of documentation. Thanks so very much for the update. With kind regards, Michel
unispeed Posted December 14, 2009 Posted December 14, 2009 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
tome Posted December 14, 2009 Posted December 14, 2009 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
Michel Kohanim Posted December 14, 2009 Posted December 14, 2009 Hi guys, Network module can be purchased by going to Help | Purchase Modules on the Admin Console. The price is $49.00 and you would need 2.7.7. Here's some documentation: http://www.universal-devices.com/mwiki/ ... Networking With kind regards, Michel
jwagner010 Posted January 14, 2014 Author Posted January 14, 2014 If anyone is interested there is now a plugin for the Logitech squeezebox where the squeezebox server will issue a GET command when a player is turned on or off. I use this to update variables in the ISY (using ISY REST interface) to keep my programs in the ISY in sync with the Squeezebox. More details at: http://forums.slimdevices.com/showthrea ... in-SBNetIO https://code.google.com/p/sbnetio/
bleepblorp Posted January 14, 2014 Posted January 14, 2014 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!
bleepblorp Posted January 14, 2014 Posted January 14, 2014 Works perfectly! This is so much simpler than my previous solution that required a separate server to monitor the squeezebox server.
Recommended Posts