Jump to content

I’m trying to send a rest command directly through a browser


ahwman

Recommended Posts

Posted (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 by ahwman
Posted
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

Posted

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

Posted

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...