{"id":10459,"date":"2021-01-02T13:47:49","date_gmt":"2021-01-02T13:47:49","guid":{"rendered":"https:\/\/wolles-elektronikkiste.de\/using-ifttt-and-webhooks-with-the-esp8266"},"modified":"2021-12-22T19:28:44","modified_gmt":"2021-12-22T19:28:44","slug":"using-ifttt-and-webhooks-with-the-esp8266","status":"publish","type":"post","link":"https:\/\/wolles-elektronikkiste.de\/en\/using-ifttt-and-webhooks-with-the-esp8266","title":{"rendered":"Using IFTTT and Webhooks with the ESP8266"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">About this post<\/h2>\n\n<p>After covering the <a href=\"https:\/\/wolles-elektronikkiste.de\/en\/arduino-iot-cloud-part-1-introduction\" target=\"_blank\" rel=\"noopener noreferrer\">Arduino IoT Cloud<\/a> and <a href=\"https:\/\/wolles-elektronikkiste.de\/en\/arduino-iot-cloud-part-2-arduino-sim-and-sigfox\" target=\"_blank\" rel=\"noopener noreferrer\">Arduino SIM \/ Sigfox<\/a> in my previous posts, I want to stick to the topic of IoT (Internet of things) with this article about IFTTT (if this then that) and webhooks. But this time there is no need to invest in high-priced boards, everything is explained using the inexpensive ESP8266 ESP-01 as an example.<\/p>\r\n<p>Tracking readings online or switching devices is a fine thing. But wouldn&#8217;t it be nice to be informed by email, text message, notification or even by a phone call that a temperature is out of control, the water level is too high or the alarm system has gone off? No problem with IFTTT, which by the way is pronounced like &#8220;ift&#8221; in &#8220;gift&#8221;. But I also show you how to view the measured values online in your browser or how to switch devices.<\/p>\r\n<p>As usual, I explain all this step by step. However, I do not go into the basics of the ESP8266 ESP-01. If needed, you can find details about this topic in <a href=\"https:\/\/wolles-elektronikkiste.de\/en\/esp8266-esp-01-module\" target=\"_blank\" rel=\"noopener noreferrer\">my post on it.<\/a><\/p>\r\n<p>The advanced users can skip one or the other step in this post. It is structured as follows:<\/p>\r\n<ul>\r\n<li><a href=\"#Anker1\">Introduction to IFTTT<\/a><\/li>\r\n<li><a href=\"#Anker2\">Wiring for all sketches<\/a><\/li>\r\n<li><a href=\"#Anker3\">Create a trigger via a sketch<\/a><\/li>\r\n<li><a href=\"#Anker4\">Output and control via browser<\/a><\/li>\r\n<li><a href=\"#Anker5\">All combined: browser control and IFTTT<\/a><\/li>\r\n<li><a href=\"#Anker6\">Using webhooks in the Arduino IoT Cloud<\/a> <a id=\"Anker1\"><\/a><\/li>\r\n<\/ul>\r\n\n<h3 class=\"wp-block-heading\">What is IFTTT?<\/h3>\n\n<p>IFTTT is a very flexible Internet service that allows you to link various other services in the sense of &#8220;if this, then that&#8221;. IFTTT was developed by Linden Tibbets and went into operation in 2010.<\/p>\r\n<p>The principle is simple: you define a trigger in a service and then specify which action is triggered by which other service. Trigger and action together form the so-called applet. There is an almost unmanageable number of services that can be used as triggers or for action.<\/p>\r\n<p>It becomes clearer when we go through a concrete, simple example that has nothing to do with Arduino, ESP and Co. yet.<\/p>\r\n\n<h2 class=\"wp-block-heading\">An IFTTT Introduction<\/h2>\n\n<h3 class=\"wp-block-heading\">Sign up for IFTTT<\/h3>\n\n<p>Before you can do anything with IFTTT, you must have an account. Go to the <a href=\"https:\/\/ifttt.com\/\" target=\"_blank\" rel=\"noopener noreferrer\">IFTTT home page<\/a> and sign up with your Google Account (&#8220;Continue with Google&#8221;):<\/p>\r\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/IFTTT_Startbildschirm_Anmeldung.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"477\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/IFTTT_Startbildschirm_Anmeldung-1024x477.png\" alt=\"IFTTT login window\" class=\"wp-image-8564\" srcset=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/IFTTT_Startbildschirm_Anmeldung-1024x477.png 1024w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/IFTTT_Startbildschirm_Anmeldung-300x140.png 300w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/IFTTT_Startbildschirm_Anmeldung-768x358.png 768w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/IFTTT_Startbildschirm_Anmeldung-1536x715.png 1536w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/IFTTT_Startbildschirm_Anmeldung-1320x615.png 1320w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/IFTTT_Startbildschirm_Anmeldung.png 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption>IFTTT login window<\/figcaption><\/figure>\n<p>That&#8217;s it &#8211; you have your IFTTT account. Skip the next window (&#8220;Get Started&#8221;).&nbsp;<\/p>\r\n<p>IFTTT is actually incredibly simple, but from my point of view not overall intuitive. A helpful rule is: if you want to do anything on IFTTT, then a click on your picture or the gray symbol at the top right is a good starting point &#8211; try it and a menu will appear:<\/p>\r\n\n<figure class=\"wp-block-image size-large is-resized\"><a href=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/IFTTT_Profilbild.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1025\" height=\"421\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/IFTTT_Profilbild.png\" alt=\"The profile picture - best starting point in IFTTT\" class=\"wp-image-8565\" srcset=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/IFTTT_Profilbild.png 1025w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/IFTTT_Profilbild-300x123.png 300w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/IFTTT_Profilbild-768x315.png 768w\" sizes=\"auto, (max-width: 1025px) 100vw, 1025px\" \/><\/a><figcaption>The profile picture &#8211; best starting point in IFTTT<\/figcaption><\/figure>\n<p>Go to &#8220;Account&#8221;. There you can see some settings, e.g. to which other accounts your IFTTT account is connected. For the following example, you must be connected to your Google account.<\/p>\r\n\n<h3 class=\"wp-block-heading\">A simple IFTTT example<\/h3>\n\n<p>As a trigger application, we take the Google Assistant on your smartphone. If you haven&#8217;t installed it, you&#8217;ll find it on Google Play. You could also take Siri, Cortana or Alexa. With Cortana, I tried it successfully, Siri and Alexa I don&#8217;t use. The trigger itself is the voice instruction &#8220;sende mir eine E-mail&#8221; (= e-mail me). Sorry &#8211; I did not find the time to repeat everything in English, so you will see some German in the pictures. As an action, IFTTT should send an e-mail.<\/p>\r\n<p>IFTTT is also available as a smartphone app. So, you might as well do the following steps on your smartphone.<\/p>\r\n<p>Let&#8217;s start: navigate to IFTTT, click on your profile picture, then click on &#8220;Create&#8221; and finally on &#8220;+ This&#8221;:<\/p>\r\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/create_choose_this.png\"><img loading=\"lazy\" decoding=\"async\" width=\"929\" height=\"325\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/create_choose_this.png\" alt=\"\" class=\"wp-image-8566\" srcset=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/create_choose_this.png 929w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/create_choose_this-300x105.png 300w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/create_choose_this-768x269.png 768w\" sizes=\"auto, (max-width: 929px) 100vw, 929px\" \/><\/a><\/figure>\n<p>You will then be prompted to &#8220;Choose a service&#8221;. Enter &#8220;Google&#8221; and select &#8220;Google Assistant&#8221;.&nbsp;<\/p>\r\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/Choose_Google_Assistant.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"508\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/Choose_Google_Assistant-1024x508.png\" alt=\"\" class=\"wp-image-8567\" srcset=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/Choose_Google_Assistant-1024x508.png 1024w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/Choose_Google_Assistant-300x149.png 300w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/Choose_Google_Assistant-768x381.png 768w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/Choose_Google_Assistant-1536x762.png 1536w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/Choose_Google_Assistant-1320x654.png 1320w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/Choose_Google_Assistant.png 1902w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n<p>Select &#8220;Say a simple phrase&#8221;:<\/p>\r\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/choose_say_a_simple_phrase.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"456\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/choose_say_a_simple_phrase-1024x456.png\" alt=\"\" class=\"wp-image-8568\" srcset=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/choose_say_a_simple_phrase-1024x456.png 1024w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/choose_say_a_simple_phrase-300x134.png 300w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/choose_say_a_simple_phrase-768x342.png 768w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/choose_say_a_simple_phrase-1320x588.png 1320w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/choose_say_a_simple_phrase.png 1487w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n<p>Before you type the phrase in the next window, you should test speak it to Google Assistant and adjust the spelling if necessary. In this example, &#8220;email me&#8221;, i.e. without the hyphen, would not work.&nbsp;<\/p>\r\n<p>Insert the phrase and maybe one or two more variations. You can also have the Google Assistant respond. I chose &#8220;na gut&#8221; (= okay).<\/p>\r\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/trigger_definition.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"433\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/trigger_definition-1024x433.png\" alt=\"Setting the IFTTT trigger - here: Google Assistant\" class=\"wp-image-8569\" srcset=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/trigger_definition-1024x433.png 1024w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/trigger_definition-300x127.png 300w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/trigger_definition-768x325.png 768w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/trigger_definition-1536x650.png 1536w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/trigger_definition-1320x558.png 1320w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/trigger_definition.png 1818w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption>Setting the IFTTT trigger &#8211; here: Google Assistant<\/figcaption><\/figure>\n<p>Select &#8220;Create Trigger&#8221;. Then you click on &#8220;+That&#8221; in the next &nbsp; window:<\/p>\r\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/That_Auswaehlen.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"81\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/That_Auswaehlen-1024x81.png\" alt=\"\" class=\"wp-image-8570\" srcset=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/That_Auswaehlen-1024x81.png 1024w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/That_Auswaehlen-300x24.png 300w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/That_Auswaehlen-768x61.png 768w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/That_Auswaehlen-1536x122.png 1536w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/That_Auswaehlen-1320x105.png 1320w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/That_Auswaehlen.png 1865w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n<p>Now we come to the action part. For this, you type &#8220;email&#8221; in the next window (Choose action &nbsp; service) and select &#8220;Email&#8221;. In another window, click &#8220;Send me an email&#8221;. Then you can give free rein to your creativity in terms of theme and content:<\/p>\r\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/email_gestalten.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"392\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/email_gestalten-1024x392.png\" alt=\"Setting the IFTTT Action - here: E-Mail\" class=\"wp-image-8571\" srcset=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/email_gestalten-1024x392.png 1024w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/email_gestalten-300x115.png 300w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/email_gestalten-768x294.png 768w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/email_gestalten-1536x588.png 1536w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/email_gestalten-1320x506.png 1320w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/email_gestalten.png 1647w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption>Setting the IFTTT Action &#8211; here: E-Mail<\/figcaption><\/figure>\n<p>Click &#8220;Create Action&#8221; and in the next screen click &#8220;Finish&#8221;.<\/p>\r\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/review_and_finish.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"430\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/review_and_finish-1024x430.png\" alt=\"\" class=\"wp-image-8572\" srcset=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/review_and_finish-1024x430.png 1024w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/review_and_finish-300x126.png 300w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/review_and_finish-768x323.png 768w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/review_and_finish-1536x645.png 1536w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/review_and_finish-1320x555.png 1320w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/review_and_finish.png 1623w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n<p>That&#8217;s it:<\/p>\r\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/das_wars_schon.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"346\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/das_wars_schon-1024x346.png\" alt=\"\" class=\"wp-image-8573\" srcset=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/das_wars_schon-1024x346.png 1024w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/das_wars_schon-300x101.png 300w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/das_wars_schon-768x259.png 768w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/das_wars_schon-1536x519.png 1536w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/das_wars_schon-1320x446.png 1320w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/das_wars_schon.png 1887w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n<p>Take your smartphone and access the Google Assistant. Speak your phrase. If you have Google Voice Control enabled, you can also speak directly to Google (&#8220;Hey Google&#8221;, &#8220;OK Google&#8221; or microphone icon).<\/p>\r\n<p>Google Assistant responds with the previously defined response:<\/p>\r\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/Screenshot_Google_Assistant.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"419\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/Screenshot_Google_Assistant-1024x419.jpg\" alt=\"The IFTTT trigger on your smartphone\" class=\"wp-image-8575\" srcset=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/Screenshot_Google_Assistant-1024x419.jpg 1024w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/Screenshot_Google_Assistant-300x123.jpg 300w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/Screenshot_Google_Assistant-768x314.jpg 768w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/Screenshot_Google_Assistant-1320x540.jpg 1320w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/Screenshot_Google_Assistant.jpg 1353w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption>The IFTTT trigger on your smartphone<\/figcaption><\/figure>\n<p>After a few seconds, you should receive an IFTTT email that looks similar to this one:&nbsp;<\/p>\r\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/email_funktioniert.png\"><img loading=\"lazy\" decoding=\"async\" width=\"847\" height=\"524\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/email_funktioniert.png\" alt=\"Message from IFTTT - it worked!\" class=\"wp-image-8574\" srcset=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/email_funktioniert.png 847w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/email_funktioniert-300x186.png 300w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/email_funktioniert-768x475.png 768w\" sizes=\"auto, (max-width: 847px) 100vw, 847px\" \/><\/a><figcaption>Message from IFTTT &#8211; it worked!<\/figcaption><\/figure>\n<p>If you want to modify your applet later, then go to your profile picture at the top right and select &#8220;My Applets&#8221;. Select the applet in question. If you want to change the key phrase then select Settings at the top right. There you can also delete the applet. If you want to change the trigger or action, go to the respective symbol. In case you want to disable the applet, click &#8220;Connected&#8221;.&nbsp;<\/p>\r\n<p>It&#8217;s also worth trying out some of the different examples on IFTTT. To do this, go to &#8220;Explore&#8221;. However, to take a closer look at the examples, you first need to connect them. Without that, you can&#8217;t access the settings.<a id=\"Anker2\"><\/a><\/p>\r\n\n<h2 class=\"wp-block-heading\">Preparations<\/h2>\n\n<h3 class=\"wp-block-heading\">Wiring<\/h3>\n\n<p>For the further course we need something to switch and something to read out. I chose an LED and a DHT22 temperature and humidity sensor. Of course, you can take anything else. My wiring looks like this:<\/p>\r\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/Grundschaltung.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"537\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/Grundschaltung-1024x537.png\" alt=\"\" class=\"wp-image-8584\" srcset=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/Grundschaltung-1024x537.png 1024w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/Grundschaltung-300x157.png 300w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/Grundschaltung-768x403.png 768w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/Grundschaltung-1536x805.png 1536w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/Grundschaltung-1320x692.png 1320w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/Grundschaltung.png 1608w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption>Wiring for all example sketches<\/figcaption><\/figure>\n<p>A few comments on this:<\/p>\r\n<ul>\r\n<li>With the DHT22, don&#8217;t forget the pull-up resistor.<\/li>\r\n<li>As you can see, I connected the ESP8266 ESP-01 module via a USB-to-serial adapter. Alternatively, you can take an Arduino. How this works in detail is described <a href=\"https:\/\/wolles-elektronikkiste.de\/en\/esp8266-esp-01-module\" target=\"_blank\" rel=\"noopener noreferrer\">here<\/a>.<\/li>\r\n<li>The power supply via the adapter was not sufficient. I needed an external one. For breadboards, I recommend <a href=\"https:\/\/smile.amazon.de\/gp\/product\/B06X962SPW\/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&amp;psc=1\" target=\"_blank\" rel=\"noopener noreferrer\">power supply adapters<\/a>.&nbsp;<\/li>\r\n<\/ul>\r\n\n<h3 class=\"wp-block-heading\">Test sketch<\/h3>\n\n<p>The following sketch is only for checking the circuit. If you have any problems later, you can exclude this factor.<\/p>\r\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-group=\"test_sketch.ino\" data-enlighter-title=\"test_sketch.ino\">#include \"DHT.h\"\r\n\r\n#define LED_PIN 0\r\n#define DHTPIN 2\r\n#define DHTTYPE DHT22\r\n\r\nDHT dht(DHTPIN, DHTTYPE);\r\n \r\nvoid setup(){\r\n  Serial.begin(9600);\r\n  delay(1500); \r\n  dht.begin();\r\n  pinMode(LED_PIN, OUTPUT);\r\n}\r\n\r\nvoid loop() {\r\n  static unsigned long lastMeasurement = millis();\r\n  float myTemp = 0.0;\r\n  if((millis() - lastMeasurement) &gt; 3000){\r\n    myTemp = dht.readTemperature(); \r\n    Serial.print(\"Temperatur: \"); \r\n    Serial.print(myTemp);\r\n    Serial.println(\" C\");\r\n    lastMeasurement = millis();\r\n    toggleLED();\r\n  }\r\n}\r\n\r\nvoid toggleLED(){\r\n    static bool ledStatus = true;\r\n    digitalWrite(LED_PIN, ledStatus);\r\n    Serial.print(\"The light is \");\r\n    if(ledStatus){\r\n      Serial.println(\"ON\");\r\n    } \r\n    else{\r\n      Serial.println(\"OFF\");\r\n    }\r\n    ledStatus = !ledStatus;\r\n}<\/pre>\r\n<a id=\"Anker3\"><\/a>\r\n<p>&nbsp;<\/p>\r\n\n<h2 class=\"wp-block-heading\">Create a trigger via a sketch<\/h2>\n\n<p>Now we get to an interesting point: how can one create a trigger with the ESP8266? This is where the webhooks come in. Hooks are interfaces in programs that allow access for other programs. And with webhooks, this just happens via the web.&nbsp;<\/p>\r\n\n<h3 class=\"wp-block-heading\">The webhook on the IFTTT page<\/h3>\n\n<p>We create a new applet. Go back to your picture in IFTTT &#8212; &gt; Create &#8212; &gt; +This &#8212; &gt; and then select &#8220;Webhooks&#8221; as your service. IFTTT suggests &#8220;Receive a web request&#8221; &#8212; &gt; click on it. Assign a name for the event. I called it ESP8266_Event, but I could have taken &#8220;potato salad&#8221;. It does not matter, is what I am saying.<\/p>\r\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/ESP8266_Event_Name.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"329\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/ESP8266_Event_Name-1024x329.png\" alt=\"\" class=\"wp-image-8576\" srcset=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/ESP8266_Event_Name-1024x329.png 1024w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/ESP8266_Event_Name-300x96.png 300w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/ESP8266_Event_Name-768x247.png 768w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/ESP8266_Event_Name-1320x424.png 1320w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/ESP8266_Event_Name.png 1478w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n<p>Click on &#8220;Create trigger&#8221; and then turn to &#8220;That&#8221;. As &#8220;Action service&#8221; select &#8220;Notifications&#8221; and click on the icon. You can choose from two actions:<\/p>\r\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/choose_action_esp8266.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"382\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/choose_action_esp8266-1024x382.png\" alt=\"\" class=\"wp-image-8577\" srcset=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/choose_action_esp8266-1024x382.png 1024w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/choose_action_esp8266-300x112.png 300w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/choose_action_esp8266-768x286.png 768w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/choose_action_esp8266.png 1083w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n<p>We take the simple, left variant. In the next window, click on &#8220;Add ingredient&#8221;:<\/p>\r\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/create_action_esp8266.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"403\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/create_action_esp8266-1024x403.png\" alt=\"\" class=\"wp-image-8578\" srcset=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/create_action_esp8266-1024x403.png 1024w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/create_action_esp8266-300x118.png 300w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/create_action_esp8266-768x302.png 768w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/create_action_esp8266-1320x520.png 1320w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/create_action_esp8266.png 1374w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n<p>You can customize the content and add variables that are later passed through the trigger service. To do this, go to the text where you want to insert the variable, and then click the variable in the list. &#8220;Event Name&#8221; was already defined in IFTTT (ESP8266_Event). Here&#8217;s what it might look like (sorry again for the German lessons):&nbsp;<\/p>\r\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/Nachricht_anpassen_ESP8266.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"407\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/Nachricht_anpassen_ESP8266-1024x407.png\" alt=\"\" class=\"wp-image-8579\" srcset=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/Nachricht_anpassen_ESP8266-1024x407.png 1024w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/Nachricht_anpassen_ESP8266-300x119.png 300w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/Nachricht_anpassen_ESP8266-768x305.png 768w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/Nachricht_anpassen_ESP8266-1320x524.png 1320w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/Nachricht_anpassen_ESP8266.png 1330w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n<p>The quotation mark after &#8220;Event_Name&#8221; is an oversight &#8211; I removed it later.<\/p>\r\n<p>Then click &#8220;Create action&#8221; and &#8220;Finish&#8221; in the next window. If you want to change the text later, that&#8217;s not a problem. Go to the profile picture &#8211; My Applets &#8211; Select applet &#8211; Settings.<\/p>\r\n\n<h4 class=\"wp-block-heading\">Read the Webhook Key<\/h4>\n\n<p>Now you click the webhook icon &#8230;.<\/p>\r\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/Webhook_details_lesen.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"400\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/Webhook_details_lesen-1024x400.png\" alt=\"\" class=\"wp-image-8580\" srcset=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/Webhook_details_lesen-1024x400.png 1024w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/Webhook_details_lesen-300x117.png 300w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/Webhook_details_lesen-768x300.png 768w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/Webhook_details_lesen-1320x516.png 1320w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/Webhook_details_lesen.png 1416w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n<p>&#8230; and &#8220;Documentation&#8221; in the next window at the top right. You see a window like this (I made my key unrecognizable):<\/p>\r\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/Webhook_documentation.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"450\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/Webhook_documentation-1024x450.png\" alt=\"Well hidden in IFTTT - the key\" class=\"wp-image-8581\" srcset=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/Webhook_documentation-1024x450.png 1024w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/Webhook_documentation-300x132.png 300w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/Webhook_documentation-768x338.png 768w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/Webhook_documentation-1536x676.png 1536w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/Webhook_documentation-1320x581.png 1320w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/Webhook_documentation.png 1598w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption>Well hidden in IFTTT &#8211; the key<\/figcaption><\/figure>\n<p>You need the key and event name right away for the Arduino sketch.<\/p>\r\n\n<h3 class=\"wp-block-heading\">On the ESP8266 side<\/h3>\n\n<p>Now the question is <em>what<\/em> exactly you have to send from the ESP8266 to IFTTT so that it acts as a trigger and <em>how<\/em> you send it. About the &#8220;what&#8221;: In the simplest case, you send a web request with the content:<\/p>\r\n<p>https:\/\/maker.ifttt.com\/trigger\/<em>Event\u00a0Name<\/em>\/with\/key\/euer Key<\/p>\r\n\r\n<p>If you want to send variables, do it in <a href=\"https:\/\/www.w3schools.com\/js\/js_json_intro.asp\" target=\"_blank\" rel=\"noopener noreferrer\">JSON<\/a> format:<\/p>\r\n<p>{&#8220;value1&#8243;:&#8221;<em>your value1<\/em>&#8220;,&#8221;value2&#8243;:&#8221;<em>your value2<\/em>&#8220;,&#8221;value3&#8243;:&#8221;<em>your value3<\/em>&#8220;}<\/p>\r\n<p>The request including variables and the sending to IFTTT is managed by the function <code>send_webhook()<\/code> in my example sketches.<\/p>\r\n\n<h4 class=\"wp-block-heading\">The base sketch<\/h4>\n\n<p>You still need to customize the following sketch by entering the name of your Wi-Fi, the Wi-Fi password and your IFTTT key and modifying the event name if necessary.<\/p>\r\n<p>In <code>send_webhook()<\/code>, you can pass three strings, which are then interpreted by IFTTT as &#8220;Value1&#8221;, &#8220;Value2&#8221; and &#8220;Value3&#8221;. In this example, I didn&#8217;t use Value3, but I still need to pass a dummy.<\/p>\r\n\n<div class=\"scroll-paragraph-long\">\r\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-group=\"ifttt_esp8266_simple.ino\" data-enlighter-title=\"ifttt_esp8266_simple.ino\">#include &lt;ESP8266WiFi.h&gt;\r\n \r\n\/\/ Set WiFi credentials\r\n#define WIFI_SSID \"Name of your WiFi\"\r\n#define WIFI_PASS \"Your WiFi password\"\r\n \r\n\/\/ Set IFTTT Webhooks event name and key\r\n#define IFTTT_Key \"Your IFTTT Key\"\r\n#define IFTTT_Event \"ESP8266_Event\" \/\/ or whatever you have chosen\r\n#define IFTTT_Value1 \"Moin, hier ist dein ESP8266!\"\r\n#define IFTTT_Value2 \"25\"\r\n#define IFTTT_Value3 \"value 3\"\r\n\r\nWiFiClient client;\r\n \r\nvoid setup() {\r\n  Serial.begin(9600); \/\/ Serial output only for information, you can also remove all Serial commands\r\n  WiFi.begin(WIFI_SSID, WIFI_PASS); \r\n  \/\/ Connecting to WiFi...\r\n  Serial.print(\"Connecting to \");\r\n  Serial.print(WIFI_SSID);\r\n  while (WiFi.status() != WL_CONNECTED)\r\n  {\r\n    delay(100);\r\n    Serial.print(\".\");\r\n  }\r\n \r\n  \/\/ Connected to WiFi\r\n  Serial.println();\r\n  Serial.print(\"Connected! IP address: \");\r\n  Serial.println(WiFi.localIP());\r\n \r\n  \/\/ Send Webook to IFTTT\r\n  send_webhook();\r\n}\r\n \r\nvoid loop() {\r\n  \/\/ empty\r\n}\r\n\r\nvoid send_webhook(){\r\n  \/\/ construct the JSON payload\r\n  String jsonString = \"\";\r\n  jsonString += \"{\\\"value1\\\":\\\"\";\r\n  jsonString += IFTTT_Value1;\r\n  jsonString += \"\\\",\\\"value2\\\":\\\"\";\r\n  jsonString += IFTTT_Value2;\r\n  jsonString += \"\\\",\\\"value3\\\":\\\"\";\r\n  jsonString += IFTTT_Value3;\r\n  jsonString += \"\\\"}\";\r\n  int jsonLength = jsonString.length();  \r\n  String lenString = String(jsonLength);\r\n\r\n  \/\/ connect to the Maker event server\r\n  client.connect(\"maker.ifttt.com\", 80);\r\n\r\n  \/\/ construct the POST request\r\n  String postString = \"\";\r\n  postString += \"POST \/trigger\/\";\r\n  postString += IFTTT_Event;\r\n  postString += \"\/with\/key\/\";\r\n  postString += IFTTT_Key;\r\n  postString += \" HTTP\/1.1\\r\\n\";\r\n  postString += \"Host: maker.ifttt.com\\r\\n\";\r\n  postString += \"Content-Type: application\/json\\r\\n\";\r\n  postString += \"Content-Length: \";\r\n  postString += lenString + \"\\r\\n\";\r\n  postString += \"\\r\\n\";\r\n  postString += jsonString; \/\/ combine post request and JSON\r\n  \r\n  client.print(postString);\r\n  delay(500);\r\n  client.stop();\r\n}<\/pre>\r\n<p>&nbsp;<\/p>\r\n<\/div>\r\n\n<p>Now, if you run the sketch, you should receive a notification on your phone within a few seconds:<\/p>\r\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"450\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/Screenshot_20200523-170321_One-UI-Home-1024x450.jpg\" alt=\"\" class=\"wp-image-8582\" srcset=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/Screenshot_20200523-170321_One-UI-Home-1024x450.jpg 1024w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/Screenshot_20200523-170321_One-UI-Home-300x132.jpg 300w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/Screenshot_20200523-170321_One-UI-Home-768x337.jpg 768w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/Screenshot_20200523-170321_One-UI-Home-1536x675.jpg 1536w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/Screenshot_20200523-170321_One-UI-Home-1320x580.jpg 1320w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/Screenshot_20200523-170321_One-UI-Home.jpg 1800w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<p>If your phone is locked, it depends on your settings whether the notification appears on the lock screen or not. But at the latest when you unlock it, it should be visible.<\/p>\r\n\n<h3 class=\"wp-block-heading\">The sketch with &#8220;real&#8221; temperatures<\/h3>\n\n<p>Now we extend the sketch with the temperature measurement. The temperature is measured every five seconds. I have defined that I will only be informed if the temperature falls below 20 degrees. I created this condition with cold spray. Of course, you can also take an upper limit, which you exceed e.g. by blowing on the DHT22 or touching it.<\/p>\r\n<p>Then I defined that I would only be notified once a minute so that I would not be bombarded with notifications when the temperature drops below 20 degrees. If all conditions are met, the temperature is converted from float to string and then passed to <code>send_webhook()<\/code>.<\/p>\r\n<p>The one-off call <code>send_webhook()<\/code> in <code>setup()<\/code> is only for checking whether the webhook is working.<\/p>\r\n<p>Of course, you can also output the temperature readings on the serial monitor. I deliberately didn&#8217;t integrate this into the sketch to make it clearer.<\/p>\r\n\n<div class=\"scroll-paragraph-long\">\r\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-group=\"ifttt_esp8266_with_dht22.ino\" data-enlighter-title=\"ifttt_esp8266_with_dht22.ino\">#include &lt;ESP8266WiFi.h&gt;\r\n#include &lt;DHT.h&gt;\r\n\r\n#define DHTPIN 2 \r\n#define DHTTYPE DHT22\r\n \r\n\/\/ Set WiFi credentials\r\n#define WIFI_SSID \"Name of your WiFi\"\r\n#define WIFI_PASS \"Your WiFi password\"\r\n \r\n\/\/ Set IFTTT Webhooks event name and key\r\n#define IFTTT_Key \"Your IFTTT Key\"\r\n#define IFTTT_Event \"ESP8266_Event\"\r\n#define IFTTT_Value1 \"Moin\"\r\n#define IFTTT_Value3 \"dummy\"\r\nString tString = \"999\"; \/\/ temperature as String\r\n\r\nWiFiClient client;\r\nDHT dht(DHTPIN, DHTTYPE);\r\n\r\nvoid setup() {\r\n  WiFi.begin(WIFI_SSID, WIFI_PASS); \r\n  while (WiFi.status() != WL_CONNECTED){\r\n    delay(100);\r\n  }\r\n\r\n  dht.begin();\r\n  delay(2000); \/\/ better to give some time\r\n  \r\n  send_webhook(tString); \/\/ just a Test\r\n}\r\n \r\nvoid loop() {\r\n   static unsigned long lastMeasure = 0; \r\n   if((millis()-lastMeasure) &gt; 5000){\r\n    updateTemp();\r\n    lastMeasure = millis();\r\n  } \r\n}\r\n\r\nvoid updateTemp() {\r\n  static unsigned long lastIFTTT = 0;\r\n  float myTemp = dht.readTemperature(); \r\n  tString = String(myTemp,1); \/\/ convert temperature as float into String\r\n  if((myTemp &lt; 20.0) &amp;&amp; ((millis()-lastIFTTT)) &gt; 60000){\r\n    send_webhook(tString);\r\n    lastIFTTT = millis();\r\n  }\r\n}\r\n\r\nvoid send_webhook(String IFTTT_Value2){\r\n  \/\/ construct the JSON payload\r\n  String jsonString = \"\";\r\n  jsonString += \"{\\\"value1\\\":\\\"\";\r\n  jsonString += IFTTT_Value1;\r\n  jsonString += \"\\\",\\\"value2\\\":\\\"\";\r\n  jsonString += IFTTT_Value2;\r\n  jsonString += \"\\\",\\\"value3\\\":\\\"\";\r\n  jsonString += IFTTT_Value3;\r\n  jsonString += \"\\\"}\";\r\n  int jsonLength = jsonString.length();  \r\n  String lenString = String(jsonLength);\r\n\r\n  \/\/ connect to the Maker event server\r\n  client.connect(\"maker.ifttt.com\", 80);\r\n\r\n  \/\/ construct the POST request\r\n  String postString = \"\";\r\n  postString += \"POST \/trigger\/\";\r\n  postString += IFTTT_Event;\r\n  postString += \"\/with\/key\/\";\r\n  postString += IFTTT_Key;\r\n  postString += \" HTTP\/1.1\\r\\n\";\r\n  postString += \"Host: maker.ifttt.com\\r\\n\";\r\n  postString += \"Content-Type: application\/json\\r\\n\";\r\n  postString += \"Content-Length: \";\r\n  postString += lenString + \"\\r\\n\";\r\n  postString += \"\\r\\n\";\r\n  postString += jsonString; \/\/ combine post request and JSON\r\n  \r\n  client.print(postString);\r\n  delay(500);\r\n  client.stop();\r\n}<\/pre>\r\n<p>&nbsp;<\/p>\r\n<\/div>\r\n\n<p>And here&#8217;s the result: <a id=\"Anker4\"><\/a><\/p>\r\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/Screenshot_20200523-175619_One-UI-Home.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"431\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/Screenshot_20200523-175619_One-UI-Home-1024x431.png\" alt=\"Result on the smartphone \" class=\"wp-image-8583\" srcset=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/Screenshot_20200523-175619_One-UI-Home-1024x431.png 1024w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/Screenshot_20200523-175619_One-UI-Home-300x126.png 300w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/Screenshot_20200523-175619_One-UI-Home-768x324.png 768w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/Screenshot_20200523-175619_One-UI-Home-1536x647.png 1536w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/Screenshot_20200523-175619_One-UI-Home-1320x556.png 1320w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/Screenshot_20200523-175619_One-UI-Home.png 2001w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption>Result on the smartphone<\/figcaption><\/figure>\n<h2 class=\"wp-block-heading\">Output and control with the browser<\/h2>\n\n<p>Now we briefly leave the IFTTT functionalities and output the temperature readings in the browser. In addition, we switch the LED in this way. Later, the IFTTT functionality is added again. I want to avoid overwhelming less experienced readers, so I&#8217;m doing it step by step. It also makes troubleshooting easier if something doesn&#8217;t work.<\/p>\r\n<p>In my article about the <a href=\"https:\/\/wolles-elektronikkiste.de\/en\/esp8266-esp-01-module\" target=\"_blank\" rel=\"noopener noreferrer\">ESP8266 ESP-01<\/a> I had already explained how to control or read an LED or a temperature sensor via browser. I repeat this here, but I will not go into details. If you don&#8217;t understand the following things, please go back to the post (or just take it as given).<\/p>\r\n<p>\r\nYou must know which IP has been assigned so that you can call up the correct page in the browser. The IP is output the serial monitor. You probably do not want to do this again and again. It is best to let the router assign the IP once and then set the router to always give the ESP8266 the same IP. Most routers can do this.<\/p>\r\n\n<div class=\"scroll-paragraph-long\">\r\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-group=\"esp8266_with_dht22_and_led_browser_only.ino\" data-enlighter-title=\"esp8266_with_dht22_and_led_browser_only.ino\">#include \"ESP8266WiFi.h\"\r\n#include \"ESP8266WebServer.h\"\r\n#include \"DHT.h\"\r\n\r\n#define LED_PIN 0\r\n#define DHTPIN 2 \r\n#define DHTTYPE DHT22\r\n\r\nDHT dht(DHTPIN, DHTTYPE);\r\n\r\nconst char* ssid = \"Name of your WiFi\";\r\nconst char* pass = \"Your WiFi password\";\r\n\r\nESP8266WebServer server(80);\r\n\r\nString led1= \"&lt;BR&gt;&lt;BR&gt;&lt;a href=\\\"\/led_an\\\"&gt;LED An&lt;\/a&gt;\";\r\nString led0= \"&lt;BR&gt;&lt;BR&gt;&lt;a href=\\\"\/led_aus\\\"&gt;LED Aus&lt;\/a&gt;\";\r\nString message1\r\n  = \"&lt;head&gt;&lt;meta http-equiv=\\\"refresh\\\" content=\\\"10\\\"&gt;&lt;\/head&gt;\"\r\n                  \"&lt;h1&gt;Temperaturprogramm ESP8266&lt;\/h1&gt;&lt;BR&gt;&lt;BR&gt;\"\r\n                  \"Die Temperatur betr&amp;aumlgt: \";\r\nString message = \"\";\r\nString tString = \"999\";\r\nbool ledStatus = false;\r\n \r\nvoid ledan(){\r\n  ledStatus = true;\r\n  digitalWrite(LED_PIN, HIGH);\r\n  message = message1 + tString;\r\n  message += led0;\r\n  server.send(200, \"text\/html\", message);\r\n}\r\n\r\nvoid ledaus(){\r\n  ledStatus = false;\r\n  digitalWrite(LED_PIN, LOW);\r\n  message = message1 + tString;\r\n  message += led1;\r\n  server.send(200, \"text\/html\", message);\r\n}\r\n\r\nvoid handleRoot(){\r\n  ledaus();\r\n}\r\n\r\nvoid setup() {\r\n  Serial.begin(9600); \/\/ Serial output only for information, you can also remove all Serial commands\r\n  WiFi.begin(ssid, pass);\r\n  \/\/ Connecting to WiFi...\r\n  Serial.print(\"Connecting to \");\r\n  Serial.print(ssid);\r\n  while (WiFi.status() != WL_CONNECTED){\r\n    delay(300);\r\n    Serial.print(\".\");\r\n  }\r\n  Serial.println();\r\n  Serial.print(\"Connected! IP address: \");\r\n  Serial.println(WiFi.localIP());\r\n  \r\n  server.on(\"\/\",handleRoot);\r\n  server.on(\"\/led_an\", ledan);\r\n  server.on(\"\/led_aus\", ledaus);\r\n  server.begin();\r\n\r\n  dht.begin();\r\n  pinMode(LED_PIN, OUTPUT);\r\n}\r\n \r\nvoid loop() {\r\n  static unsigned long lastMeasure = 0; \r\n  server.handleClient(); \r\n  if((millis()-lastMeasure) &gt; 5000){\r\n    updateTemp();\r\n    lastMeasure = millis();\r\n  }\r\n}\r\n\r\nvoid updateTemp(){\r\n  float myTemp = dht.readTemperature(); \r\n  tString = String(myTemp);\r\n  message = message1 + tString;\r\n  if(ledStatus){\r\n    message += led1;\r\n  }\r\n  else{\r\n    message += led0;\r\n  }\r\n  server.send(200, \"text\/html\", message);\r\n}<\/pre>\r\n<p>&nbsp;<\/p>\r\n<\/div>\r\n\n<p>Upload the sketch, launch it, and start your favorite browser. There you enter the above defined IP address in the address line. You can now see the temperature, and you can switch the LED. Admittedly, the appearance is quite spartan. If you&#8217;re fit in HTML, you can still make it up.<\/p>\r\n<p>Maybe you want to access the project from outside your home network? The safest method is to access your home network via VPN and call the internal IP address from there. If you have a FritzBox, that&#8217;s not a problem at all. However, it should also work with many other routers.<a id=\"Anker5\"><\/a><\/p>\r\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/Browserausgabe.png\"><img loading=\"lazy\" decoding=\"async\" width=\"820\" height=\"171\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/Browserausgabe.png\" alt=\"\" class=\"wp-image-8586\" srcset=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/Browserausgabe.png 820w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/Browserausgabe-300x63.png 300w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/Browserausgabe-768x160.png 768w\" sizes=\"auto, (max-width: 820px) 100vw, 820px\" \/><\/a><figcaption>Output in the browser<\/figcaption><\/figure>\n<h2 class=\"wp-block-heading\">All combined: browser control and IFTTT<\/h2>\n\n<p>In the final step, we combine the browser control with the IFTTT functionality. If you have understood the other sketches, then you should have no problem with this one. But I think if I had started with this sketch, one or the other might not have been able to follow.<\/p>\r\n\n<div class=\"scroll-paragraph-long\">\r\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-group=\"ifttt_esp8266_complete.ino\" data-enlighter-title=\"ifttt_esp8266_complete.ino\">#include \"ESP8266WiFi.h\"\r\n#include \"ESP8266WebServer.h\"\r\n#include \"DHT.h\"\r\n\r\n#define LED_PIN 0\r\n#define DHTPIN 2 \r\n#define DHTTYPE DHT22\r\n \r\n\/\/ Set WiFi credentials\r\n#define WIFI_SSID \"Name of your WiFi\"\r\n#define WIFI_PASS \"Your WiFi password\"\r\n \r\n\/\/ Set IFTTT Webhooks event name and key\r\n#define IFTTT_Key \"Your IFTTT Key\"\r\n#define IFTTT_Event \"ESP8266_Event\"\r\n#define IFTTT_Value1 \"Moin\"\r\n#define IFTTT_Value3 \"dummy\"\r\n\r\nDHT dht(DHTPIN, DHTTYPE);\r\n\r\nWiFiClient client;\r\nESP8266WebServer server(80);\r\n\r\nString led1= \"&lt;BR&gt;&lt;BR&gt;&lt;a href=\\\"\/led_an\\\"&gt;LED An&lt;\/a&gt;\";\r\nString led0= \"&lt;BR&gt;&lt;BR&gt;&lt;a href=\\\"\/led_aus\\\"&gt;LED Aus&lt;\/a&gt;\";\r\nString message1= \"&lt;head&gt;&lt;meta http-equiv=\\\"refresh\\\" content=\\\"10\\\"&gt;&lt;\/head&gt;\"\r\n                  \"&lt;h1&gt;Temperatur-LED Programm ESP8266&lt;\/h1&gt;&lt;BR&gt;&lt;BR&gt;\"\r\n                  \"Die Temperatur betr&amp;aumlgt: \";\r\nString message = \"\";\r\nString tString = \"999\";\r\nbool ledStatus = false;\r\n\r\nvoid ledan(){\r\n  ledStatus = true;\r\n  digitalWrite(LED_PIN, HIGH);\r\n  message = message1 + tString;\r\n  message += led0;\r\n  server.send(200, \"text\/html\", message);\r\n}\r\n\r\nvoid ledaus(){\r\n  ledStatus = false;\r\n  digitalWrite(LED_PIN, LOW);\r\n  message = message1 + tString;\r\n  message += led1;\r\n  server.send(200, \"text\/html\", message);\r\n}\r\n\r\nvoid handleRoot(){\r\n  ledaus();\r\n}\r\n\r\nvoid setup() {\r\n  Serial.begin(9600);\r\n  WiFi.begin(WIFI_SSID, WIFI_PASS);\r\n  Serial.print(\"Connecting to \");\r\n  Serial.print(WIFI_SSID);\r\n  while (WiFi.status() != WL_CONNECTED)\r\n  {\r\n    delay(100);\r\n  }\r\n  Serial.println();\r\n  Serial.print(\"Connected! IP address: \");\r\n  Serial.println(WiFi.localIP());\r\n  server.on(\"\/\",handleRoot);\r\n  server.on(\"\/led_an\", ledan);\r\n  server.on(\"\/led_aus\", ledaus);\r\n  server.begin();\r\n\r\n  dht.begin();\r\n  pinMode(LED_PIN, OUTPUT);\r\n  delay(1000); \/\/ some waiting time \r\n\r\n  send_webhook(tString); \/\/ only a test\r\n}\r\n \r\nvoid loop() {\r\n   static unsigned long lastMeasure = 0; \r\n   server.handleClient();\r\n   if((millis()-lastMeasure) &gt; 5000){\r\n    updateTemp();\r\n    lastMeasure = millis();\r\n  } \r\n}\r\n\r\nvoid updateTemp() {\r\n  static unsigned long lastIFTTT = 0;\r\n  float myTemp = dht.readTemperature(); \r\n  tString = String(myTemp);\r\n  if((myTemp &lt; 20.0) &amp;&amp; ((millis()-lastIFTTT)) &gt; 30000){\r\n    send_webhook(tString);\r\n    lastIFTTT = millis();\r\n  }\r\n  message = message1 + tString;\r\n  if(ledStatus){\r\n    message += led1;\r\n  }\r\n  else{\r\n    message += led0;\r\n  } \r\n  \r\n  server.send(200, \"text\/html\", message);\r\n}\r\n\r\nvoid send_webhook(String IFTTT_Value2){\r\n  \/\/ construct the JSON payload\r\n  String jsonString = \"\";\r\n  jsonString += \"{\\\"value1\\\":\\\"\";\r\n  jsonString += IFTTT_Value1;\r\n  jsonString += \"\\\",\\\"value2\\\":\\\"\";\r\n  jsonString += IFTTT_Value2;\r\n  jsonString += \"\\\",\\\"value3\\\":\\\"\";\r\n  jsonString += IFTTT_Value3;\r\n  jsonString += \"\\\"}\";\r\n  int jsonLength = jsonString.length();  \r\n  String lenString = String(jsonLength);\r\n\r\n  \/\/ connect to the Maker event server\r\n  client.connect(\"maker.ifttt.com\", 80);\r\n\r\n  \/\/ construct the POST request\r\n  String postString = \"\";\r\n  postString += \"POST \/trigger\/\";\r\n  postString += IFTTT_Event;\r\n  postString += \"\/with\/key\/\";\r\n  postString += IFTTT_Key;\r\n  postString += \" HTTP\/1.1\\r\\n\";\r\n  postString += \"Host: maker.ifttt.com\\r\\n\";\r\n  postString += \"Content-Type: application\/json\\r\\n\";\r\n  postString += \"Content-Length: \";\r\n  postString += lenString + \"\\r\\n\";\r\n  postString += \"\\r\\n\";\r\n  postString += jsonString; \/\/ combine post request and JSON\r\n  \r\n  client.print(postString);\r\n  delay(500);\r\n  client.stop();\r\n}<\/pre>\r\n<p>&nbsp;<\/p>\r\n<\/div>\r\n\n<h2 class=\"wp-block-heading\">Webhooks with the Arduino IoT Cloud<\/h2>\n\n<h3 class=\"wp-block-heading\">Arduino IoT Cloud and IFTTT<\/h3>\n\n<p>Then I tried to use the webhooks from <a href=\"https:\/\/wolles-elektronikkiste.de\/en\/arduino-iot-cloud-part-1-introduction\" target=\"_blank\" rel=\"noopener noreferrer\">Arduino IoT Cloud<\/a> with IFTTT. In principle, it&#8217;s simple. You take the webhook from IFTTT, replace &#8220;{Event_Name}&#8221; by the variable of your property (here: &#8220;myTemp&#8221;) and apply it in the &#8220;Webhooks&#8221; tab of your &#8220;Thing&#8221;.<\/p>\r\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/AddWebhook.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"486\" src=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/AddWebhook-1024x486.png\" alt=\"\" class=\"wp-image-8585\" srcset=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/AddWebhook-1024x486.png 1024w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/AddWebhook-300x143.png 300w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/AddWebhook-768x365.png 768w, https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/AddWebhook.png 1101w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption>Using webhooks in the Arduino IoT Cloud<\/figcaption><\/figure>\n<p>If this is all Greek to you, read <a href=\"https:\/\/wolles-elektronikkiste.de\/en\/arduino-iot-cloud-part-1-introduction\" target=\"_blank\" rel=\"noopener noreferrer\">my article<\/a> about the Arduino IoT Cloud.<\/p>\r\n\n<p>The problem is that with every call of <code>ArduinoCloud.update()<\/code> an IFTTT action is triggered. If, on the other hand, you only call the function in case a certain condition occurs, you will not be able to track the readings. At least not as long as the measured values are within the limit values. I couldn&#8217;t find a way to call the webhook manually in the sketch &#8211; that would be the solution. I don&#8217;t say that it can&#8217;t be done somehow, but I&#8217;ve been trying for quite some time unsuccessfully.<\/p>\r\n\n<h3 class=\"wp-block-heading\">Other Webhook Applications in the Arduino IoT Cloud<\/h3>\n\n<p>But to rescue the reputation of the Arduino IoT Cloud, I have to say that there are still some cool other webhook applications.<\/p>\r\n<p>If you&#8217;re interested in this, take a look at these examples:<\/p>\r\n<ul>\r\n<li><a href=\"https:\/\/create.arduino.cc\/projecthub\/303628\/arduino-iot-cloud-amazon-alexa-integration-4e6078\" target=\"_blank\" rel=\"noopener noreferrer\">Alexa integration<\/a><\/li>\r\n<li><a href=\"https:\/\/create.arduino.cc\/projecthub\/Arduino_Genuino\/arduino-iot-cloud-google-sheets-integration-71b6bc\" target=\"_blank\" rel=\"noopener noreferrer\">Google Sheet integration<\/a><\/li>\r\n<\/ul>\r\n\n<h2 class=\"wp-block-heading\">Acknowledgement<\/h2>\n\n<p>I thank <a href=\"https:\/\/github.com\/Siytek\" target=\"_blank\" rel=\"noopener noreferrer\">Siytek<\/a> for his <a href=\"https:\/\/github.com\/Siytek\/AnotherIFTTTWebhook\" target=\"_blank\" rel=\"noopener noreferrer\">AnotherIFTTTWebhook.h adaptation<\/a> on Github.<\/p>\r\n\n<p>\u00a0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>You want to be informed about out-of-control sensor readings on your smartphone (free of charge)? No problem with IFTTT (if this then that). I&#8217;ll show you step by step how to do this and how you track things online. <\/p>\n","protected":false},"author":1,"featured_media":8587,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[571,575,548],"tags":[1220,1167,655,1207,1210,1209,760,1169,1219,1214],"class_list":["post-10459","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-projects","category-software-and-tools","category-wireless","tag-action-en","tag-arduino-iot-cloud-en","tag-esp8266-en","tag-esp8266-esp-01-en","tag-if-this-then-that-en","tag-ifttt-en","tag-introduction","tag-step-by-step-en-3","tag-trigger-en-3","tag-webhooks-en"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Using IFTTT and Webhooks with the ESP8266 &#8226; Wolles Elektronikkiste<\/title>\n<meta name=\"description\" content=\"You want to be informed about out-of-control sensor readings on your smartphone (free of charge)? No problem with IFTTT. Here&#039;s a guide.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/wolles-elektronikkiste.de\/en\/using-ifttt-and-webhooks-with-the-esp8266\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Using IFTTT and Webhooks with the ESP8266 &#8226; Wolles Elektronikkiste\" \/>\n<meta property=\"og:description\" content=\"You want to be informed about out-of-control sensor readings on your smartphone (free of charge)? No problem with IFTTT. Here&#039;s a guide.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/wolles-elektronikkiste.de\/en\/using-ifttt-and-webhooks-with-the-esp8266\" \/>\n<meta property=\"og:site_name\" content=\"Wolles Elektronikkiste\" \/>\n<meta property=\"article:published_time\" content=\"2021-01-02T13:47:49+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-12-22T19:28:44+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/Beitragsbild.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1412\" \/>\n\t<meta property=\"og:image:height\" content=\"1412\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Wolfgang Ewald\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Wolfgang Ewald\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"18 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en\\\/using-ifttt-and-webhooks-with-the-esp8266#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en\\\/using-ifttt-and-webhooks-with-the-esp8266\"},\"author\":{\"name\":\"Wolfgang Ewald\",\"@id\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en#\\\/schema\\\/person\\\/b774e4d64b4766889a2f7c6e5ec85b46\"},\"headline\":\"Using IFTTT and Webhooks with the ESP8266\",\"datePublished\":\"2021-01-02T13:47:49+00:00\",\"dateModified\":\"2021-12-22T19:28:44+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en\\\/using-ifttt-and-webhooks-with-the-esp8266\"},\"wordCount\":2354,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en#\\\/schema\\\/person\\\/b774e4d64b4766889a2f7c6e5ec85b46\"},\"image\":{\"@id\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en\\\/using-ifttt-and-webhooks-with-the-esp8266#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/wp-content\\\/uploads\\\/2020\\\/05\\\/Beitragsbild.png\",\"keywords\":[\"Action\",\"Arduino IoT Cloud\",\"ESP8266\",\"ESP8266 ESP-01\",\"if this then that\",\"IFTTT\",\"introduction\",\"step-by-step\",\"trigger\",\"webhooks\"],\"articleSection\":[\"Projects\",\"Software and tools\",\"Wireless\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en\\\/using-ifttt-and-webhooks-with-the-esp8266#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en\\\/using-ifttt-and-webhooks-with-the-esp8266\",\"url\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en\\\/using-ifttt-and-webhooks-with-the-esp8266\",\"name\":\"Using IFTTT and Webhooks with the ESP8266 &#8226; Wolles Elektronikkiste\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en\\\/using-ifttt-and-webhooks-with-the-esp8266#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en\\\/using-ifttt-and-webhooks-with-the-esp8266#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/wp-content\\\/uploads\\\/2020\\\/05\\\/Beitragsbild.png\",\"datePublished\":\"2021-01-02T13:47:49+00:00\",\"dateModified\":\"2021-12-22T19:28:44+00:00\",\"description\":\"You want to be informed about out-of-control sensor readings on your smartphone (free of charge)? No problem with IFTTT. Here's a guide.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en\\\/using-ifttt-and-webhooks-with-the-esp8266#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en\\\/using-ifttt-and-webhooks-with-the-esp8266\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en\\\/using-ifttt-and-webhooks-with-the-esp8266#primaryimage\",\"url\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/wp-content\\\/uploads\\\/2020\\\/05\\\/Beitragsbild.png\",\"contentUrl\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/wp-content\\\/uploads\\\/2020\\\/05\\\/Beitragsbild.png\",\"width\":1412,\"height\":1412},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en\\\/using-ifttt-and-webhooks-with-the-esp8266#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Startseite\",\"item\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Using IFTTT and Webhooks with the ESP8266\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en#website\",\"url\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en\",\"name\":\"Wolles Elektronikkiste\",\"description\":\"Die wunderbare Welt der Elektronik\",\"publisher\":{\"@id\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en#\\\/schema\\\/person\\\/b774e4d64b4766889a2f7c6e5ec85b46\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/en#\\\/schema\\\/person\\\/b774e4d64b4766889a2f7c6e5ec85b46\",\"name\":\"Wolfgang Ewald\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/wp-content\\\/uploads\\\/2019\\\/03\\\/cropped-Logo-1.png\",\"url\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/wp-content\\\/uploads\\\/2019\\\/03\\\/cropped-Logo-1.png\",\"contentUrl\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/wp-content\\\/uploads\\\/2019\\\/03\\\/cropped-Logo-1.png\",\"width\":512,\"height\":512,\"caption\":\"Wolfgang Ewald\"},\"logo\":{\"@id\":\"https:\\\/\\\/wolles-elektronikkiste.de\\\/wp-content\\\/uploads\\\/2019\\\/03\\\/cropped-Logo-1.png\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Using IFTTT and Webhooks with the ESP8266 &#8226; Wolles Elektronikkiste","description":"You want to be informed about out-of-control sensor readings on your smartphone (free of charge)? No problem with IFTTT. Here's a guide.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/wolles-elektronikkiste.de\/en\/using-ifttt-and-webhooks-with-the-esp8266","og_locale":"en_US","og_type":"article","og_title":"Using IFTTT and Webhooks with the ESP8266 &#8226; Wolles Elektronikkiste","og_description":"You want to be informed about out-of-control sensor readings on your smartphone (free of charge)? No problem with IFTTT. Here's a guide.","og_url":"https:\/\/wolles-elektronikkiste.de\/en\/using-ifttt-and-webhooks-with-the-esp8266","og_site_name":"Wolles Elektronikkiste","article_published_time":"2021-01-02T13:47:49+00:00","article_modified_time":"2021-12-22T19:28:44+00:00","og_image":[{"width":1412,"height":1412,"url":"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/Beitragsbild.png","type":"image\/png"}],"author":"Wolfgang Ewald","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Wolfgang Ewald","Est. reading time":"18 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/wolles-elektronikkiste.de\/en\/using-ifttt-and-webhooks-with-the-esp8266#article","isPartOf":{"@id":"https:\/\/wolles-elektronikkiste.de\/en\/using-ifttt-and-webhooks-with-the-esp8266"},"author":{"name":"Wolfgang Ewald","@id":"https:\/\/wolles-elektronikkiste.de\/en#\/schema\/person\/b774e4d64b4766889a2f7c6e5ec85b46"},"headline":"Using IFTTT and Webhooks with the ESP8266","datePublished":"2021-01-02T13:47:49+00:00","dateModified":"2021-12-22T19:28:44+00:00","mainEntityOfPage":{"@id":"https:\/\/wolles-elektronikkiste.de\/en\/using-ifttt-and-webhooks-with-the-esp8266"},"wordCount":2354,"commentCount":0,"publisher":{"@id":"https:\/\/wolles-elektronikkiste.de\/en#\/schema\/person\/b774e4d64b4766889a2f7c6e5ec85b46"},"image":{"@id":"https:\/\/wolles-elektronikkiste.de\/en\/using-ifttt-and-webhooks-with-the-esp8266#primaryimage"},"thumbnailUrl":"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/Beitragsbild.png","keywords":["Action","Arduino IoT Cloud","ESP8266","ESP8266 ESP-01","if this then that","IFTTT","introduction","step-by-step","trigger","webhooks"],"articleSection":["Projects","Software and tools","Wireless"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/wolles-elektronikkiste.de\/en\/using-ifttt-and-webhooks-with-the-esp8266#respond"]}]},{"@type":"WebPage","@id":"https:\/\/wolles-elektronikkiste.de\/en\/using-ifttt-and-webhooks-with-the-esp8266","url":"https:\/\/wolles-elektronikkiste.de\/en\/using-ifttt-and-webhooks-with-the-esp8266","name":"Using IFTTT and Webhooks with the ESP8266 &#8226; Wolles Elektronikkiste","isPartOf":{"@id":"https:\/\/wolles-elektronikkiste.de\/en#website"},"primaryImageOfPage":{"@id":"https:\/\/wolles-elektronikkiste.de\/en\/using-ifttt-and-webhooks-with-the-esp8266#primaryimage"},"image":{"@id":"https:\/\/wolles-elektronikkiste.de\/en\/using-ifttt-and-webhooks-with-the-esp8266#primaryimage"},"thumbnailUrl":"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/Beitragsbild.png","datePublished":"2021-01-02T13:47:49+00:00","dateModified":"2021-12-22T19:28:44+00:00","description":"You want to be informed about out-of-control sensor readings on your smartphone (free of charge)? No problem with IFTTT. Here's a guide.","breadcrumb":{"@id":"https:\/\/wolles-elektronikkiste.de\/en\/using-ifttt-and-webhooks-with-the-esp8266#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/wolles-elektronikkiste.de\/en\/using-ifttt-and-webhooks-with-the-esp8266"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/wolles-elektronikkiste.de\/en\/using-ifttt-and-webhooks-with-the-esp8266#primaryimage","url":"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/Beitragsbild.png","contentUrl":"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2020\/05\/Beitragsbild.png","width":1412,"height":1412},{"@type":"BreadcrumbList","@id":"https:\/\/wolles-elektronikkiste.de\/en\/using-ifttt-and-webhooks-with-the-esp8266#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Startseite","item":"https:\/\/wolles-elektronikkiste.de\/en"},{"@type":"ListItem","position":2,"name":"Using IFTTT and Webhooks with the ESP8266"}]},{"@type":"WebSite","@id":"https:\/\/wolles-elektronikkiste.de\/en#website","url":"https:\/\/wolles-elektronikkiste.de\/en","name":"Wolles Elektronikkiste","description":"Die wunderbare Welt der Elektronik","publisher":{"@id":"https:\/\/wolles-elektronikkiste.de\/en#\/schema\/person\/b774e4d64b4766889a2f7c6e5ec85b46"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/wolles-elektronikkiste.de\/en?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/wolles-elektronikkiste.de\/en#\/schema\/person\/b774e4d64b4766889a2f7c6e5ec85b46","name":"Wolfgang Ewald","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2019\/03\/cropped-Logo-1.png","url":"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2019\/03\/cropped-Logo-1.png","contentUrl":"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2019\/03\/cropped-Logo-1.png","width":512,"height":512,"caption":"Wolfgang Ewald"},"logo":{"@id":"https:\/\/wolles-elektronikkiste.de\/wp-content\/uploads\/2019\/03\/cropped-Logo-1.png"}}]}},"_links":{"self":[{"href":"https:\/\/wolles-elektronikkiste.de\/en\/wp-json\/wp\/v2\/posts\/10459","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wolles-elektronikkiste.de\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wolles-elektronikkiste.de\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wolles-elektronikkiste.de\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wolles-elektronikkiste.de\/en\/wp-json\/wp\/v2\/comments?post=10459"}],"version-history":[{"count":0,"href":"https:\/\/wolles-elektronikkiste.de\/en\/wp-json\/wp\/v2\/posts\/10459\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wolles-elektronikkiste.de\/en\/wp-json\/wp\/v2\/media\/8587"}],"wp:attachment":[{"href":"https:\/\/wolles-elektronikkiste.de\/en\/wp-json\/wp\/v2\/media?parent=10459"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wolles-elektronikkiste.de\/en\/wp-json\/wp\/v2\/categories?post=10459"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wolles-elektronikkiste.de\/en\/wp-json\/wp\/v2\/tags?post=10459"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}