-->
Page 1 of 1

Sleep as Android - IFTTT - Adafruit IO - ESP8266

PostPosted: Mon Jan 25, 2021 10:49 pm
by jce90
Hello guys,

I really need your help please. I have been trying very hard to make it work but I am unsuccessful. I have been running an alarm with a 240V timer and Arduino to run a stepper and a servo previously (see my code below).

https://gist.github.com/jce90/abc2d3303 ... dc0a29583b

I recently decided to move to ESP8266NodeMcu. What I did is to use alarm clock app (Sleep as Android) that interface with IFTTT. Then IFTTT writes a "1" to an Adafruit IO feed. When the alarm is disabled, it writes a "0" to the data feed.

My ESP8266 has been connected to Adafruit IO successfully.

Now my question is, how can I changed my code so that when alarm is on, it will send "1" to ESP8266 and then the sequence will be activated (Stepper and servo will work). And when alarm is off, it will send "0" to ESP8266 to stop the loop.

Any help would be much appreciated.

Thank you

PS: I am very new at coding. Sorry for asking easy/stupid/silly questions