ahwman Posted July 12, 2018 Share Posted July 12, 2018 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 Link to comment
bmercier Posted July 12, 2018 Share Posted July 12, 2018 That won't work from a browser - The HTTP method has to be a POST, not GET. Benoit Link to comment
ahwman Posted July 12, 2018 Author Share Posted July 12, 2018 Is it safe then to embed my user/password into the url rest interface if it’s a local request? Link to comment
bmercier Posted July 12, 2018 Share 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 Link to comment
ahwman Posted July 12, 2018 Author Share 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 Link to comment
bmercier Posted July 12, 2018 Share 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 Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.