{"id":235,"date":"2015-12-20T00:01:47","date_gmt":"2015-12-19T22:01:47","guid":{"rendered":"http:\/\/iot.fkainka.de\/?p=235"},"modified":"2018-10-24T16:04:08","modified_gmt":"2018-10-24T15:04:08","slug":"day-20","status":"publish","type":"post","link":"https:\/\/iot.fkainka.de\/en\/day-20","title":{"rendered":"Day 20: Twitch"},"content":{"rendered":"<p>The website ThingSpeak offers a lot more than just long-time monitoring of sensors. Today&#8217;s project is similar to the projects from days 9 and 10 in its basic idea. Information is collected from a website on the internet. In this case, it is whether a specific stream is currently online or not.<\/p>\n<p>There are two decisive advantages of the ThingSpeak version over the first attempts. First, the ThingSpeak page can also call websites via HTTPS (HyperText Transfer Protocol Secure), while the module only supports the unsafe HTTP-protocol. Second, the website can pre-filter important information and thus clearly reduce the data volume to be processed by the controller.<\/p>\n<p>In today&#8217;s project, you will implement a twitch streaming display as an example of different options. Twitch is a website on which live games or information around the subject of computer games are streamed. One of the best-known streaming channels is RocketBeansTV from the former GameOne producers, which sends around the clock and therefore is well suitable for the first test. Later, you can, of course, use a channel of your choice.<\/p>\n<div id=\"attachment_237\" style=\"width: 626px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/iot.fkainka.de\/wp-content\/uploads\/2015\/09\/Day20-1.jpg\"><img aria-describedby=\"caption-attachment-237\" decoding=\"async\" loading=\"lazy\" class=\"size-large wp-image-237\" src=\"http:\/\/iot.fkainka.de\/wp-content\/uploads\/2015\/09\/Day20-1-1024x501.jpg\" alt=\"Der heutige Versuchsaufbau mit einer LED an Pin D9\" width=\"616\" height=\"301\" srcset=\"https:\/\/iot.fkainka.de\/wp-content\/uploads\/2015\/09\/Day20-1-1024x501.jpg 1024w, https:\/\/iot.fkainka.de\/wp-content\/uploads\/2015\/09\/Day20-1-300x147.jpg 300w, https:\/\/iot.fkainka.de\/wp-content\/uploads\/2015\/09\/Day20-1-972x475.jpg 972w, https:\/\/iot.fkainka.de\/wp-content\/uploads\/2015\/09\/Day20-1.jpg 1104w\" sizes=\"(max-width: 616px) 100vw, 616px\" \/><\/a><p id=\"caption-attachment-237\" class=\"wp-caption-text\">Todays circuit: LED on Pin D9<\/p><\/div>\n<p><strong>The program:\u00a0<a href=\"http:\/\/iot.fkainka.de\/wp-content\/uploads\/2015\/09\/Day20_ThinkSpeakTwitch.zip\">Day20_ThinkSpeakTwitch<\/a><\/strong><\/p>\n<p>In addition to the hardware setup, some steps on the ThingSpeak page are necessary. When you click APPs in the top-most menu of the website, you will be shown a number of different application options. Today, we will deal with the ThingHTTP-App. If you click the corresponding button, you will first be shown a rather empty interface. Click New ThingHTTP. Enter the following into the form that comes up:<\/p>\n<p><strong>Name:\u00a0\u00a0 Twitch<\/strong><\/p>\n<p><strong>URL:\u00a0\u00a0\u00a0\u00a0\u00a0 <a href=\"https:\/\/api.twitch.tv\/kraken\/streams?channel=rocketbeanstv\">https:\/\/api.twitch.tv\/kraken\/streams?channel=rocketbeanstv<\/a><\/strong><\/p>\n<p><strong>Method:\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 GET<\/strong><\/p>\n<p><strong>HTTP Version:\u00a0\u00a0\u00a0 1.1<\/strong><\/p>\n<p><strong>Parse String:\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 _total<\/strong><\/p>\n<div id=\"attachment_238\" style=\"width: 626px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/iot.fkainka.de\/wp-content\/uploads\/2015\/09\/Day20-2.jpeg\"><img aria-describedby=\"caption-attachment-238\" decoding=\"async\" loading=\"lazy\" class=\"size-large wp-image-238\" src=\"http:\/\/iot.fkainka.de\/wp-content\/uploads\/2015\/09\/Day20-2-832x1024.jpeg\" alt=\"Eingaben ThingHTTP-APP\" width=\"616\" height=\"758\" srcset=\"https:\/\/iot.fkainka.de\/wp-content\/uploads\/2015\/09\/Day20-2-832x1024.jpeg 832w, https:\/\/iot.fkainka.de\/wp-content\/uploads\/2015\/09\/Day20-2-244x300.jpeg 244w, https:\/\/iot.fkainka.de\/wp-content\/uploads\/2015\/09\/Day20-2.jpeg 839w\" sizes=\"(max-width: 616px) 100vw, 616px\" \/><\/a><p id=\"caption-attachment-238\" class=\"wp-caption-text\">Settings of the ThingHTTP-APP<\/p><\/div>\n<p>If you prefer another streamer, you can enter another channel in the URL behind &#8220;channel&#8221;. Click Save ThingHTTP and then copy the API key that appears in the overview into your clipboard. You now need to copy the key into the program, after #define ThingHTTP. Do not forget the WLAN data. You can now upload the program. Once per minute, it will be checked if a stream can be found. If this is the case, the LED will light up.<\/p>","protected":false},"excerpt":{"rendered":"<p>The website ThingSpeak offers a lot more than just long-time monitoring of sensors. Today&#8217;s project is similar to the projects from days 9 and 10 in its basic idea. Information is collected from a website on the internet. In this&#8230;<br \/><a class=\"read-more-button\" href=\"https:\/\/iot.fkainka.de\/en\/day-20\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":238,"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":[3,26,311],"tags":[7,19,106],"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: Twitch - 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\/day-20\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Day 20: Twitch - Internet of Things with the NanoESP\" \/>\n<meta property=\"og:description\" content=\"The website ThingSpeak offers a lot more than just long-time monitoring of sensors. Today&#8217;s project is similar to the projects from days 9 and 10 in its basic idea. Information is collected from a website on the internet. In this...Read more\" \/>\n<meta property=\"og:url\" content=\"https:\/\/iot.fkainka.de\/day-20\" \/>\n<meta property=\"og:site_name\" content=\"Internet of Things with the NanoESP\" \/>\n<meta property=\"article:published_time\" content=\"2015-12-19T22:01:47+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2018-10-24T15:04:08+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/iot.fkainka.de\/wp-content\/uploads\/2015\/09\/Day20-2.jpeg\" \/>\n\t<meta property=\"og:image:width\" content=\"839\" \/>\n\t<meta property=\"og:image:height\" content=\"1032\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\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\/day-20\",\"url\":\"https:\/\/iot.fkainka.de\/day-20\",\"name\":\"Day 20: Twitch - Internet of Things with the NanoESP\",\"isPartOf\":{\"@id\":\"https:\/\/iot.fkainka.de\/#website\"},\"datePublished\":\"2015-12-19T22:01:47+00:00\",\"dateModified\":\"2018-10-24T15:04:08+00:00\",\"author\":{\"@id\":\"https:\/\/iot.fkainka.de\/#\/schema\/person\/d3205fdf2649027fc35e240d4f8b285a\"},\"breadcrumb\":{\"@id\":\"https:\/\/iot.fkainka.de\/day-20#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/iot.fkainka.de\/day-20\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/iot.fkainka.de\/day-20#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/iot.fkainka.de\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Tag 20: Twitch\"}]},{\"@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: Twitch - 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\/day-20","og_locale":"en_US","og_type":"article","og_title":"Day 20: Twitch - Internet of Things with the NanoESP","og_description":"The website ThingSpeak offers a lot more than just long-time monitoring of sensors. Today&#8217;s project is similar to the projects from days 9 and 10 in its basic idea. Information is collected from a website on the internet. In this...Read more","og_url":"https:\/\/iot.fkainka.de\/day-20","og_site_name":"Internet of Things with the NanoESP","article_published_time":"2015-12-19T22:01:47+00:00","article_modified_time":"2018-10-24T15:04:08+00:00","og_image":[{"width":839,"height":1032,"url":"https:\/\/iot.fkainka.de\/wp-content\/uploads\/2015\/09\/Day20-2.jpeg","type":"image\/jpeg"}],"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\/day-20","url":"https:\/\/iot.fkainka.de\/day-20","name":"Day 20: Twitch - Internet of Things with the NanoESP","isPartOf":{"@id":"https:\/\/iot.fkainka.de\/#website"},"datePublished":"2015-12-19T22:01:47+00:00","dateModified":"2018-10-24T15:04:08+00:00","author":{"@id":"https:\/\/iot.fkainka.de\/#\/schema\/person\/d3205fdf2649027fc35e240d4f8b285a"},"breadcrumb":{"@id":"https:\/\/iot.fkainka.de\/day-20#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/iot.fkainka.de\/day-20"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/iot.fkainka.de\/day-20#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/iot.fkainka.de\/"},{"@type":"ListItem","position":2,"name":"Tag 20: Twitch"}]},{"@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\/2015\/09\/Day20-2.jpeg","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p6McI0-3N","_links":{"self":[{"href":"https:\/\/iot.fkainka.de\/en\/wp-json\/wp\/v2\/posts\/235"}],"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=235"}],"version-history":[{"count":5,"href":"https:\/\/iot.fkainka.de\/en\/wp-json\/wp\/v2\/posts\/235\/revisions"}],"predecessor-version":[{"id":600,"href":"https:\/\/iot.fkainka.de\/en\/wp-json\/wp\/v2\/posts\/235\/revisions\/600"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/iot.fkainka.de\/en\/wp-json\/wp\/v2\/media\/238"}],"wp:attachment":[{"href":"https:\/\/iot.fkainka.de\/en\/wp-json\/wp\/v2\/media?parent=235"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/iot.fkainka.de\/en\/wp-json\/wp\/v2\/categories?post=235"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/iot.fkainka.de\/en\/wp-json\/wp\/v2\/tags?post=235"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}