I’d like to know the IDE Arduino code to send a notification to IFTT.
For instance when a PIR sensor is detected, or when the temperature exceeds a certain threshold
The purpose of this notification in IFTTT is to launch an action such as sending an SMS, triggering an alarm, or starting up a device.
(I am working on “Learn ESP32 with Arduino IDE“)
After creating the applet and having your event name and API key, you just need to make a request using your event name and API key as shown in this example:
This example makes a request every 10 seconds, you should modify the code to send the request only when motion is detected.
Do you have your applet created yet, or do you need help?
Thank you very much for your quick response, I will try and tell you if it works properly.
Maybe you could do a two-way communication tutorial between ESP32 and IFFTT.
I saw that in the course “MicroPython” there is a lesson on IFTTT and Weblook which corresponds perfectly to my subject.
I started this course and I have a problem with the code at the beginning on the Python version 3.8.1 (expected an indented block).
Nothing serious however
Sorry I did’t see the warning message in the course:
“Python uses indentation (everything is done using spaces). Double-check that all the spaces are
properly inserted in your script. To avoid indentation errors, we recommend
copying/pasting the code directly from the GitHub link provided in each example”