Random delay function request in Apilio

Random delay function request in Apilio
0

#1

Bruno \ 15x16

Apr 26

I came from Stringify which allowed me to do this scenario:

I wonder if you could implement a random delay by using an apilio numeric variable.
What I am trying to achieve is to trigger an applet in ifttt at a random delay to switch on a lamp, then another trigger at another random delay to call another ifttt applet to switch off that lamp in such a way the house will feel occupied when I am away.

I gonna try to sketch my needs to make it easier to understand:

ifttt:
when sunset trigger a logicblock in Apilio

apilio:

if home is empty:

  • call ifttt applet to switch on lamp after a 30 seconds delay. [at this point I would like the delay to be a random value or perhaps to let me use a variable defined in apilio]

     - call ifttt applet to switch off lamp after a 3600 seconds delay. [at this point I would like the delay to be a random value or perhaps to let me use a variable defined in apilio]
    

Is there a way to make the delay as a variable which could be a random numeric value?

||Philipp|

Apr 28

Hi there!

That’s a great idea for a product improvement - I’d like to have it myself :slight_smile:

But currently I see no way how to achieve this with the features available. Making the use of variables possible for delays might be the easiest way to build it quickly, but then you’d still a service to change a numeric variable to a random number.

Cheers

Philipp

||Bruno|

May 2

It would be fab if we could call:

https://www.random.org/integers/?num=1&min=30&max=60&col=1&base=10&format=plain&rnd=new

This then would populate the apilio variable somehow.

or perhaps I could call that from IFTTT then call Apilio to set the variable. I need to figure out the best way to do it.

||Philipp|

May 6

Thanks for mentioning that idea!