ahwman Posted July 12, 2018 Posted July 12, 2018 (edited) Helo, I’m trying to send a rest command to my ISY to change a variable and know how to do it using standard HTTP, however I don’t like sending my user/password in plain text and also it only works locally unless I port forward on my router which I’d like to avoid. I tried creating an IFTTT resource in the ISY portal and pasting that link into my browser, however I get an error suggesting it can’t send a get request. Is there a better way of accomplishing this task? Thanks, Chuck Edited July 12, 2018 by ahwman Quote
bmercier Posted July 12, 2018 Posted July 12, 2018 That won't work from a browser - The HTTP method has to be a POST, not GET. Benoit Quote
ahwman Posted July 12, 2018 Author Posted July 12, 2018 Is it safe then to embed my user/password into the url rest interface if it’s a local request? Quote
bmercier Posted July 12, 2018 Posted July 12, 2018 Just now, ahwman said: Is it safe then to embed my user/password into the url rest interface if it’s a local request? Not ideal, and may not work in all browsers. I'm not sure exactly what exactly what you want to achieve, but the idea of using an IFTTT inbound event is a great idea. I would look at a solution that involves sending a POST request. Perhaps a web page, CURL, etc. Benoit Quote
ahwman Posted July 12, 2018 Author Posted July 12, 2018 Here’s exactly what I’m trying to accomplish: From within my A/V remote control app (Simple Control), I’d like to send a variable change to my ISY whenever a particular activity is launched. The only option I have is to load a URL silently. Unfortunately it doesn’t support sending a post request. So, I can accomplish this over standard http, however it would require sending my login credentials in clear text which I would like to avoid. Is there a better way to accomplish this? Thanks for your help, UDI is the best! Chuck Quote
bmercier Posted July 12, 2018 Posted July 12, 2018 You probably don't need ISY Portal for this. Given that the remote is probably on the same network as the ISY, I would suggest to directly connect to your ISY, and pass the credentials in the URL, if the remote supports it. Otherwise, perhaps an IFTTT recipe with a custom applet that has "IF" GET URL triggered "Then" Maker channel which connects to the ISY Portal inbound event. I don't know if there is an "IF" who could accept a simple GET request. Benoit Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.