Page 5 of 5

Re: IFTTT Action plugin

PostPosted: Wed Jun 03, 2020 7:26 pm
by FlyingDiver
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.

Re: IFTTT Action plugin

PostPosted: Wed Jun 03, 2020 8:41 pm
by dkillmer
Yes, that is correct. Screenshot attached.

Re: IFTTT Action plugin

PostPosted: Wed Jun 03, 2020 8:55 pm
by FlyingDiver
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.

Re: IFTTT Action plugin

PostPosted: Wed Jun 03, 2020 9:05 pm
by dkillmer
Yes, that worked.

Re: IFTTT Action plugin

PostPosted: Thu Jun 04, 2020 6:40 am
by dkillmer
Thank you!

Re: IFTTT Action plugin

PostPosted: Thu Jun 04, 2020 7:35 am
by FlyingDiver
Good to know. A plugin is really kinda overkill for this, since it's such a simple Python script.

Re: IFTTT Action plugin

PostPosted: Tue Dec 29, 2020 10:07 am
by ckeyes888
I assume it may be possible to turn on an Alexa device, not available to Indigo?

Thanks,

Carl

Re: IFTTT Action plugin

PostPosted: Wed Jul 28, 2021 5:39 pm
by AutoMation01
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.

Re: IFTTT Action plugin

PostPosted: Wed Jul 28, 2021 8:42 pm
by AutoMation01
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 ....