IFTTT Action plugin

Posted on
Wed Jun 03, 2020 7:26 pm
FlyingDiver offline
User avatar
Posts: 7184
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: IFTTT Action plugin

dkillmer wrote:
I see. I am using Webhooks to trigger a message from IFTTT. I confirmed the event name in IFTTT matches the event name in the Indigo trigger and I am not passing any values. The Webhook I created says it is active and it has never run. Thanks for your help!


Let's start at the beginning. You're using the IFTTT plugin to (attempt to) trigger an IFTTT action, correct? So that's not a message "from IFTTT"? What does this IFTTT action actually do? Post a screenshot.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Wed Jun 03, 2020 8:41 pm
dkillmer offline
Posts: 39
Joined: Feb 23, 2015

Re: IFTTT Action plugin

Yes, that is correct. Screenshot attached.
Attachments
2DF89891-3211-460E-A307-812C647B30FD.jpeg
2DF89891-3211-460E-A307-812C647B30FD.jpeg (346.66 KiB) Viewed 4214 times

Posted on
Wed Jun 03, 2020 8:55 pm
FlyingDiver offline
User avatar
Posts: 7184
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: IFTTT Action plugin

Try activating that without using the plugin. Put this in a Python script action:

Code: Select all
import requests

requests.get("https://maker.ifttt.com/trigger/DrivewayAlert/with/key/<API-KEY>")


Edit that last part to put in the API key you're using.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Wed Jun 03, 2020 9:05 pm
dkillmer offline
Posts: 39
Joined: Feb 23, 2015

Re: IFTTT Action plugin

Yes, that worked.

Posted on
Thu Jun 04, 2020 6:40 am
dkillmer offline
Posts: 39
Joined: Feb 23, 2015

Re: IFTTT Action plugin

Thank you!

Posted on
Thu Jun 04, 2020 7:35 am
FlyingDiver offline
User avatar
Posts: 7184
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: IFTTT Action plugin

Good to know. A plugin is really kinda overkill for this, since it's such a simple Python script.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Tue Dec 29, 2020 10:07 am
ckeyes888 offline
Posts: 2417
Joined: Nov 26, 2009
Location: Kalispell, MT

Re: IFTTT Action plugin

I assume it may be possible to turn on an Alexa device, not available to Indigo?

Thanks,

Carl

Posted on
Wed Jul 28, 2021 5:39 pm
AutoMation01 offline
Posts: 40
Joined: Mar 18, 2018

Re: IFTTT Action plugin

Greetings all ---

Can the three values in this plugin be used to pass indigo variables?

I am looking to pass Netatmo - (wind / gust / temp) values that are already stored as indigo variables to apilio logic blocks? I have a IFTTT web hook setup that invokes my ifttt to apilio recipe and can pass static values to it, would now like to pass the indigo vars instead of the static values?

Is there a format to do this in the three values field in this plugin? Or is there an easier / better way to do this as a script?

Any advise / assistance is appreciated.

Posted on
Wed Jul 28, 2021 8:42 pm
AutoMation01 offline
Posts: 40
Joined: Mar 18, 2018

Re: IFTTT Action plugin

AutoMation01 wrote:
Greetings all ---

Can the three values in this plugin be used to pass indigo variables?

I am looking to pass Netatmo - (wind / gust / temp) values that are already stored as indigo variables to apilio logic blocks? I have a IFTTT web hook setup that invokes my ifttt to apilio recipe and can pass static values to it, would now like to pass the indigo vars instead of the static values?

Is there a format to do this in the three values field in this plugin? Or is there an easier / better way to do this as a script?

Any advise / assistance is appreciated.



OK ... so this seems to work as a script:

****
#!/usr/bin/env python3.7
import requests
myVar_gust = (indigo.variables[1727362904].getValue(float))
myVar_wind = (indigo.variables[23371740].getValue(float))
myVar_temp = (indigo.variables[131355202].getValue(float))
key_val = "my key here"

the_url = "https://maker.ifttt.com/trigger/netatmo/with/key/" + key_val + "?&value1=" + str(myVar_gust) + "&value2=" + str(myVar_wind) + "&value3=" + str(myVar_temp)
indigo.server.log(str(requests.get(the_url)), type=" ====> : ")

****
I would be interested to know if there is an easier way to simply pass the indigo variables through the plugin three values with some type of special formatting or something?

Thanks ....

Who is online

Users browsing this forum: No registered users and 5 guests