IFTTT Maker Channel update variable via RESTful

Posted on
Sat Jul 25, 2015 6:27 pm
virgahyatt offline
Posts: 132
Joined: Jan 11, 2014

IFTTT Maker Channel update variable via RESTful

I am trying to modify a variable via the RESTful API using the new IFTTT maker channel. However, I can't seem to figure out what to put into each of the fields there. I have multiple combinations with no success. Any help or suggestions would be most appreciated.

-Thanks!

Posted on
Sun Jul 26, 2015 9:42 am
howartp offline
Posts: 4559
Joined: Jan 09, 2014
Location: West Yorkshire, UK

Re: IFTTT Maker Channel update variable via RESTful

Firstly, be aware of the security implications.

I'm no expert, but when it came out I had a look and determined you need to either disable authentication on your Indigo server (BAD idea) or provide the username and password in the URL you enter in Maker (not advised).


Sent from my iPhone using Tapatalk

Posted on
Sun Jul 26, 2015 11:35 am
virgahyatt offline
Posts: 132
Joined: Jan 11, 2014

Re: IFTTT Maker Channel update variable via RESTful

I have security turned on. Though when using this URL: http://<myip>:8176/variables/test?_method=put&value=1 it does not give an error and successfully updates the variable.

Posted on
Mon Jul 27, 2015 11:20 am
jay (support) offline
Site Admin
User avatar
Posts: 18225
Joined: Mar 19, 2008
Location: Austin, Texas

Re: IFTTT Maker Channel update variable via RESTful

virgahyatt wrote:
I have security turned on. Though when using this URL: http://<myip>:8176/variables/test?_method=put&value=1 it does not give an error and successfully updates the variable.


You mean when you use that in your browser? That's because the digest authentication credentials were likely stored by your browser at some point.

Maker doesn't appear to allow any authentication on web requests, so it won't work if you have authentication turned on. We don't recommend turning off authentication.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Mon Jul 27, 2015 2:06 pm
virgahyatt offline
Posts: 132
Joined: Jan 11, 2014

Re: IFTTT Maker Channel update variable via RESTful

jay (support) wrote:
virgahyatt wrote:
I have security turned on. Though when using this URL: http://<myip>:8176/variables/test?_method=put&value=1 it does not give an error and successfully updates the variable.


You mean when you use that in your browser? That's because the digest authentication credentials were likely stored by your browser at some point.

Maker doesn't appear to allow any authentication on web requests, so it won't work if you have authentication turned on. We don't recommend turning off authentication.


Ah, that would explain it. And no I was not planning on turning off security.

Thanks!!

Posted on
Mon Nov 30, 2015 9:56 am
mabrown offline
User avatar
Posts: 39
Joined: Dec 08, 2012

Re: IFTTT Maker Channel update variable via RESTful

Why would this not work if I'm using http://username: password@myurl:8176/devices/whatever?command ? I get an access denied in my server logs. From a browser, that doesn't have my credentials saved it works fine when adding &_method=put

Posted on
Mon Nov 30, 2015 10:41 am
howartp offline
Posts: 4559
Joined: Jan 09, 2014
Location: West Yorkshire, UK

Re: IFTTT Maker Channel update variable via RESTful

Are you putting the _method=put line in or not? You need it whether you're in browser or an app, regardless of auth.


Sent from my iPhone using Tapatalk

Posted on
Mon Nov 30, 2015 11:03 am
mabrown offline
User avatar
Posts: 39
Joined: Dec 08, 2012

Re: IFTTT Maker Channel update variable via RESTful

So answered my own question somewhat.. It works if I use http://user: pass@myurl:8176/devices/Sink%20Lights?toggle=1 but does't work if I replace toggle=1 with brightness=100. What's the best way to turn on a light? I don't want toggle as it could be on and I don't want it to turn off.

Posted on
Mon Nov 30, 2015 3:27 pm
howartp offline
Posts: 4559
Joined: Jan 09, 2014
Location: West Yorkshire, UK

Re: IFTTT Maker Channel update variable via RESTful

Use IsOn=1 for On.


Sent from my iPhone using Tapatalk

Posted on
Wed Dec 02, 2015 11:17 am
mabrown offline
User avatar
Posts: 39
Joined: Dec 08, 2012

Re: IFTTT Maker Channel update variable via RESTful

Thanks!

Posted on
Wed Dec 02, 2015 3:59 pm
mabrown offline
User avatar
Posts: 39
Joined: Dec 08, 2012

Re: IFTTT Maker Channel update variable via RESTful

Ok so still having an issue with authentication. http://user: pass@whater works fine in browsers, it however doesn't work in IFTTT's Maker channel, it's like the password isn't passed just the username. Is there a variable I can pass in the URL itself for my username and password? Something like whateverurl/devices/Kitchen%20Sink?isOn=1&username=user&password=pass&_method=post ?

Posted on
Thu Dec 03, 2015 9:51 am
jay (support) offline
Site Admin
User avatar
Posts: 18225
Joined: Mar 19, 2008
Location: Austin, Texas

Re: IFTTT Maker Channel update variable via RESTful

As far as I know, IFTTT maker channel doesn't support HTTP Digest authentication which is what the Indigo Web Server uses. So adding username:password to the URL won't work because that's for HTTP Basic (insecure) authentication. It's working in your browser because at some point you were prompted to enter your username/password by your browser and it saved that information and is entering it automatically when you go back.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 11 guests