{"id":2573,"date":"2018-12-20T00:00:58","date_gmt":"2018-12-19T23:00:58","guid":{"rendered":"https:\/\/iot.fkainka.de\/?p=2573"},"modified":"2018-11-21T16:51:28","modified_gmt":"2018-11-21T15:51:28","slug":"day20-2018","status":"publish","type":"post","link":"https:\/\/iot.fkainka.de\/en\/day20-2018","title":{"rendered":"Day 20: Plant Guard"},"content":{"rendered":"<p>Behind the door is an NTC resistor (<strong>Negative Temperature Coefficient<\/strong>) that measures the temperature. Together with the photo transistor and a few wires, we are going to build a plant guard that alerts us, when a plant it is monitoring is exposed to bad conditions. We will use the following setup besides the program of today.<\/p>\n<div id=\"attachment_2574\" style=\"width: 496px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/iot.fkainka.de\/wp-content\/uploads\/2018\/11\/Day20_Plant_Steckplatine.png\"><img aria-describedby=\"caption-attachment-2574\" decoding=\"async\" loading=\"lazy\" class=\" wp-image-2574\" src=\"https:\/\/iot.fkainka.de\/wp-content\/uploads\/2018\/11\/Day20_Plant_Steckplatine-866x1024.png\" alt=\"Der Pflanzenw\u00e4chter\" width=\"486\" height=\"575\" data-id=\"2574\" srcset=\"https:\/\/iot.fkainka.de\/wp-content\/uploads\/2018\/11\/Day20_Plant_Steckplatine-866x1024.png 866w, https:\/\/iot.fkainka.de\/wp-content\/uploads\/2018\/11\/Day20_Plant_Steckplatine-254x300.png 254w, https:\/\/iot.fkainka.de\/wp-content\/uploads\/2018\/11\/Day20_Plant_Steckplatine-768x908.png 768w, https:\/\/iot.fkainka.de\/wp-content\/uploads\/2018\/11\/Day20_Plant_Steckplatine.png 954w\" sizes=\"(max-width: 486px) 100vw, 486px\" \/><\/a><p id=\"caption-attachment-2574\" class=\"wp-caption-text\">The plant guard<\/p><\/div>\n<p>The two yellow wires are just simple wires that can be inserted into the potting soil. They are used to monitor the level of moisture in the soil. During our initial tests, we will just touch the two wires with a finger.<\/p>\n<div id=\"attachment_2575\" style=\"width: 626px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/iot.fkainka.de\/wp-content\/uploads\/2018\/11\/T20Flow.png\"><img aria-describedby=\"caption-attachment-2575\" decoding=\"async\" loading=\"lazy\" class=\"size-large wp-image-2575\" src=\"https:\/\/iot.fkainka.de\/wp-content\/uploads\/2018\/11\/T20Flow-1024x367.png\" alt=\"Der heutige Flow\" width=\"616\" height=\"221\" data-id=\"2575\" srcset=\"https:\/\/iot.fkainka.de\/wp-content\/uploads\/2018\/11\/T20Flow-1024x367.png 1024w, https:\/\/iot.fkainka.de\/wp-content\/uploads\/2018\/11\/T20Flow-300x108.png 300w, https:\/\/iot.fkainka.de\/wp-content\/uploads\/2018\/11\/T20Flow-768x276.png 768w, https:\/\/iot.fkainka.de\/wp-content\/uploads\/2018\/11\/T20Flow-972x349.png 972w, https:\/\/iot.fkainka.de\/wp-content\/uploads\/2018\/11\/T20Flow.png 1201w\" sizes=\"(max-width: 616px) 100vw, 616px\" \/><\/a><p id=\"caption-attachment-2575\" class=\"wp-caption-text\">The Flow<\/p><\/div>\n<p><iframe style=\"border: none; width: 100%;\" src=\"https:\/\/pastebin.com\/embed_iframe\/CMHmBNiQ\"><\/iframe>Today you can import the flow straight into the Node-RED environment, but not without disabling previous ones and adjust the topic. The <strong>out<\/strong> topic will receive a JSON string that looks similar to this:<\/p>\n<p><strong>{&#8220;cmd&#8221;:&#8221;get_hum_state&#8221;,&#8221;Light&#8221;:3903,&#8221;Temp&#8221;:368,&#8221;HUMIDITY&#8221;:45}<\/strong><\/p>\n<p>Light, temperature and humidity data are sent. Light here is a relative value in the range of 0 to 4095; the same is true for the humidity measured. Temperature values are also sent using this value range. But because you can\u2019t do anything with this value, we have a function node that converts the values t o Celsius. The values\u00a0 are displayed conveniently in the user interface. Besides the indicator, we also have a few controls there.<\/p>\n<div id=\"attachment_2576\" style=\"width: 774px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/iot.fkainka.de\/wp-content\/uploads\/2018\/11\/T20UI.png\"><img aria-describedby=\"caption-attachment-2576\" decoding=\"async\" loading=\"lazy\" class=\"size-full wp-image-2576\" src=\"https:\/\/iot.fkainka.de\/wp-content\/uploads\/2018\/11\/T20UI.png\" alt=\"Das Userinterface des Pflanzenw\u00e4chters\" width=\"764\" height=\"403\" data-id=\"2576\" srcset=\"https:\/\/iot.fkainka.de\/wp-content\/uploads\/2018\/11\/T20UI.png 764w, https:\/\/iot.fkainka.de\/wp-content\/uploads\/2018\/11\/T20UI-300x158.png 300w\" sizes=\"(max-width: 764px) 100vw, 764px\" \/><\/a><p id=\"caption-attachment-2576\" class=\"wp-caption-text\">User interface of the plant guard<\/p><\/div>\n<p>The controls are used to define the thresholds for measurements. You can define the minimum and the maximum value. In case you don\u2019t want limit values, you can also set the control to an extreme position, which the board will never be able to measure. For example, if you do not want that an alarm is triggered at night because the light intensity is too low, set the minimum control simply to -1.<\/p>\n<p>In the case that one of the limits is exceeded, the matching switch node will be triggered and a message is prepared and then output via the UI. Because most of the time these messages are not opened, you can also enter your email data into the email node. This will send an email reminder that you should water the plant or provide better lighting conditions. That\u2019s how you can even turn a simple houseplant into a smart plant.<\/p>","protected":false},"excerpt":{"rendered":"<p>Behind the door is an NTC resistor (Negative Temperature Coefficient) that measures the temperature. Together with the photo transistor and a few wires, we are going to build a plant guard that alerts us, when a plant it is monitoring&#8230;<br \/><a class=\"read-more-button\" href=\"https:\/\/iot.fkainka.de\/en\/day20-2018\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":2576,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","footnotes":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[315,312,313],"tags":[],"jetpack_publicize_connections":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Day 20: Plant Guard - Internet of Things with the NanoESP<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/iot.fkainka.de\/en\/day20-2018\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Day 20: Plant Guard - Internet of Things with the NanoESP\" \/>\n<meta property=\"og:description\" content=\"Behind the door is an NTC resistor (Negative Temperature Coefficient) that measures the temperature. Together with the photo transistor and a few wires, we are going to build a plant guard that alerts us, when a plant it is monitoring...Read more\" \/>\n<meta property=\"og:url\" content=\"https:\/\/iot.fkainka.de\/en\/day20-2018\" \/>\n<meta property=\"og:site_name\" content=\"Internet of Things with the NanoESP\" \/>\n<meta property=\"article:published_time\" content=\"2018-12-19T23:00:58+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2018-11-21T15:51:28+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/iot.fkainka.de\/wp-content\/uploads\/2018\/11\/T20UI.png\" \/>\n\t<meta property=\"og:image:width\" content=\"764\" \/>\n\t<meta property=\"og:image:height\" content=\"403\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"fk\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"fk\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/iot.fkainka.de\/en\/day20-2018\",\"url\":\"https:\/\/iot.fkainka.de\/en\/day20-2018\",\"name\":\"Day 20: Plant Guard - Internet of Things with the NanoESP\",\"isPartOf\":{\"@id\":\"https:\/\/iot.fkainka.de\/#website\"},\"datePublished\":\"2018-12-19T23:00:58+00:00\",\"dateModified\":\"2018-11-21T15:51:28+00:00\",\"author\":{\"@id\":\"https:\/\/iot.fkainka.de\/#\/schema\/person\/d3205fdf2649027fc35e240d4f8b285a\"},\"breadcrumb\":{\"@id\":\"https:\/\/iot.fkainka.de\/en\/day20-2018#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/iot.fkainka.de\/en\/day20-2018\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/iot.fkainka.de\/en\/day20-2018#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/iot.fkainka.de\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Day 20: Plant Guard\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/iot.fkainka.de\/#website\",\"url\":\"https:\/\/iot.fkainka.de\/\",\"name\":\"Internet of Things with the NanoESP\",\"description\":\"The webpage for the Arduino compatible WiFi-Board\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/iot.fkainka.de\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/iot.fkainka.de\/#\/schema\/person\/d3205fdf2649027fc35e240d4f8b285a\",\"name\":\"fk\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/iot.fkainka.de\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/141cf958a831e66efabf9674e117e8d9?s=96&d=identicon&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/141cf958a831e66efabf9674e117e8d9?s=96&d=identicon&r=g\",\"caption\":\"fk\"},\"url\":\"https:\/\/iot.fkainka.de\/en\/author\/fk\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Day 20: Plant Guard - Internet of Things with the NanoESP","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:\/\/iot.fkainka.de\/en\/day20-2018","og_locale":"en_US","og_type":"article","og_title":"Day 20: Plant Guard - Internet of Things with the NanoESP","og_description":"Behind the door is an NTC resistor (Negative Temperature Coefficient) that measures the temperature. Together with the photo transistor and a few wires, we are going to build a plant guard that alerts us, when a plant it is monitoring...Read more","og_url":"https:\/\/iot.fkainka.de\/en\/day20-2018","og_site_name":"Internet of Things with the NanoESP","article_published_time":"2018-12-19T23:00:58+00:00","article_modified_time":"2018-11-21T15:51:28+00:00","og_image":[{"width":764,"height":403,"url":"https:\/\/iot.fkainka.de\/wp-content\/uploads\/2018\/11\/T20UI.png","type":"image\/png"}],"author":"fk","twitter_card":"summary_large_image","twitter_misc":{"Written by":"fk","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/iot.fkainka.de\/en\/day20-2018","url":"https:\/\/iot.fkainka.de\/en\/day20-2018","name":"Day 20: Plant Guard - Internet of Things with the NanoESP","isPartOf":{"@id":"https:\/\/iot.fkainka.de\/#website"},"datePublished":"2018-12-19T23:00:58+00:00","dateModified":"2018-11-21T15:51:28+00:00","author":{"@id":"https:\/\/iot.fkainka.de\/#\/schema\/person\/d3205fdf2649027fc35e240d4f8b285a"},"breadcrumb":{"@id":"https:\/\/iot.fkainka.de\/en\/day20-2018#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/iot.fkainka.de\/en\/day20-2018"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/iot.fkainka.de\/en\/day20-2018#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/iot.fkainka.de\/"},{"@type":"ListItem","position":2,"name":"Day 20: Plant Guard"}]},{"@type":"WebSite","@id":"https:\/\/iot.fkainka.de\/#website","url":"https:\/\/iot.fkainka.de\/","name":"Internet of Things with the NanoESP","description":"The webpage for the Arduino compatible WiFi-Board","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/iot.fkainka.de\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/iot.fkainka.de\/#\/schema\/person\/d3205fdf2649027fc35e240d4f8b285a","name":"fk","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/iot.fkainka.de\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/141cf958a831e66efabf9674e117e8d9?s=96&d=identicon&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/141cf958a831e66efabf9674e117e8d9?s=96&d=identicon&r=g","caption":"fk"},"url":"https:\/\/iot.fkainka.de\/en\/author\/fk"}]}},"jetpack_featured_media_url":"https:\/\/iot.fkainka.de\/wp-content\/uploads\/2018\/11\/T20UI.png","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p6McI0-Fv","_links":{"self":[{"href":"https:\/\/iot.fkainka.de\/en\/wp-json\/wp\/v2\/posts\/2573"}],"collection":[{"href":"https:\/\/iot.fkainka.de\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/iot.fkainka.de\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/iot.fkainka.de\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/iot.fkainka.de\/en\/wp-json\/wp\/v2\/comments?post=2573"}],"version-history":[{"count":2,"href":"https:\/\/iot.fkainka.de\/en\/wp-json\/wp\/v2\/posts\/2573\/revisions"}],"predecessor-version":[{"id":2578,"href":"https:\/\/iot.fkainka.de\/en\/wp-json\/wp\/v2\/posts\/2573\/revisions\/2578"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/iot.fkainka.de\/en\/wp-json\/wp\/v2\/media\/2576"}],"wp:attachment":[{"href":"https:\/\/iot.fkainka.de\/en\/wp-json\/wp\/v2\/media?parent=2573"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/iot.fkainka.de\/en\/wp-json\/wp\/v2\/categories?post=2573"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/iot.fkainka.de\/en\/wp-json\/wp\/v2\/tags?post=2573"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}