sunset delay

186 views
Skip to first unread message

sellan.c...@gmail.com

unread,
Apr 10, 2019, 8:39:08 AM4/10/19
to Apilio

Hello everyone, previously user of stringify, I turn vars apilio ... recently discovered not complicated to understand for me. What I want to do: I would like my shutters to close 30 minutes after sunset. Why: When I use the WU applet, the shutters close at sunset, but it's too early, it's still a little day. I do not see how to do it My test:
I created a boolean called sunset on apilio I created an applet with: When sunset (WU) then sending webook to the boolean "sunset" But I do not see how to do it after. In addition, I did the test on IFTTT and it rocked the boolean to true but it does not return all alone to false ... Would you have the procedure to follow please?

Wouter

unread,
Apr 10, 2019, 9:26:07 AM4/10/19
to Apilio
Hi, another previous Stringify user here. I wanted an offset to sunset and sunrise too, to trigger my TP-link switches.

I've found Olisto can do this natively. Give it a try. Only drawback for me was that it doesn't support TP-link yet. But I got that covered by sending a webhook to IFTTT that trigger my TP-link switches. The delay is only 3 seconds.

py.pa...@gmail.com

unread,
Apr 10, 2019, 12:18:08 PM4/10/19
to Apilio
I use a free web API at https://grapeot.me/adding-a-delay-to-ifttt-recipes.html which interfaces with IFTTT much like Apilio does.

I use two recipes in order to set an Apilio boolean ~1h prior to sunset:

1. WU trigger at sunset to start a 23h delay using the API.
2. Webhook triggered by the delay API after 23h (effectively ~1h prior to the next day's sunset) to set an Apilio boolean.

Philipp

unread,
Apr 11, 2019, 3:07:47 AM4/11/19
to Apilio
Hi there!
A delay for up to 60 minutes is no problem: https://www.apilio.io/ifttt-advanced-options.html
If you want something to happen _before_ sunset, you'd currently need to use the workaround described here.

Philipp

unread,
Apr 11, 2019, 3:12:39 AM4/11/19
to Apilio
For the case you describe
I would like my shutters to close 30 minutes after sunset.
you actually do not necessarily need a variable. Those are usually needed to check preconditions. But if you want it to happen unconditionally, you can trigger a logicblock evaluation instead.

But you can also go with the solution you started implementing.
- Check the option "Automatic evaluation" on the logicblock page, so that it will do the test everytime you update the boolean variable
- You can leave it on "true" the whole time - it doesn't necessarily needs to flip to false to make your setup work

jijoyav...@gmail.com

unread,
Apr 15, 2019, 12:27:00 AM4/15/19
to Apilio
Hello Sellan,

Were you able to achieve closing the curtain 30 minutes after sunset? I am new to IFTTT, so looking for some help.

sellan.c...@gmail.com

unread,
Apr 15, 2019, 3:36:38 AM4/15/19
to Apilio
Hello, yes i have found how to do this simply.

First, in IFTTT, creat a applet
In "This", use Weather underground Sunset
replace the "Fermeture-volet" by what you want, for exemple "close_blinds" 
replace the 30 by the time you want in minute
replace the xxxxxxxxxxxxxx by your ifttt webhook key (if you don't know, search on you best friend ... google)
In "Methode" make "POST"
In "Content type" make "Application/x-www....."

Second in IFTTT, creat an other applet
In "This", use webhook with event name the same you write before, for exemple "Close_blinds"
In "That", use the service you use to close your roller shutter

And normaly, all is OK

sellan.c...@gmail.com

unread,
Apr 15, 2019, 3:38:23 AM4/15/19
to Apilio
Thank you, it work very great

jijoyav...@gmail.com

unread,
Apr 18, 2019, 2:18:36 AM4/18/19
to Apilio
I created two applets per steps. Applet 1 works but does not call Webook which calls Applet 2. What am I doing wrong? 

Applet 1



Applet 2

ade...@gmail.com

unread,
Apr 28, 2019, 11:19:58 AM4/28/19
to Apilio
A workaround I've discovered is simply editing the location used in the WU applet on IFTTT.  In your case, just set the location on that particular "this" statement to an area (or city) several hundred (about 400 or so I think) miles to the west of your actual location.  Sunset at that location will always be approximately 30 minutes later than your own.  The "that" can be whatever you want with no need to get Apilio involved.

sellan.c...@gmail.com

unread,
Apr 28, 2019, 12:23:58 PM4/28/19
to Apilio
Good game to you 😚
I will try
Reply all
Reply to author
Forward
0 new messages