{"id":7624,"date":"2015-05-28T18:30:18","date_gmt":"2015-05-28T18:30:18","guid":{"rendered":"http:\/\/randomnerdtutorials.com\/?p=7624"},"modified":"2020-01-24T10:17:59","modified_gmt":"2020-01-24T10:17:59","slug":"how-to-control-your-esp8266-from-anywhere-in-the-world","status":"publish","type":"post","link":"https:\/\/randomnerdtutorials.com\/how-to-control-your-esp8266-from-anywhere-in-the-world\/","title":{"rendered":"How to Control Your ESP8266 From Anywhere in the World"},"content":{"rendered":"<p>Hey there,<\/p>\n<p>The most\u00a0common\u00a0questions I get\u00a0about the ESP8266 WiFi Modules are:\u00a0&#8220;Is it possible to control my <a href=\"https:\/\/randomnerdtutorials.com\/control-esp32-esp8266-gpios-from-anywhere\/\">ESP8266 from anywhere in the world?<\/a>&#8221; and\u00a0&#8220;How can I control my <a href=\"https:\/\/randomnerdtutorials.com\/control-esp32-esp8266-gpios-from-anywhere\/\">ESP8266 from anywhere<\/a>?&#8221;.<!--more--><\/p>\n<p>I&#8217;m happy to announce today that I have a solution for that problem.<\/p>\n<p><strong>Read:<\/strong>\u00a0<a href=\"https:\/\/randomnerdtutorials.com\/control-esp32-esp8266-gpios-from-anywhere\/\">Control ESP32 and ESP8266 GPIOs from Anywhere in the World<\/a><\/p>\n<p><em>app.HomeAutomationServer.com<\/em> has been discounted, please use the new version of this project: <a href=\"https:\/\/randomnerdtutorials.com\/control-esp32-esp8266-gpios-from-anywhere\/\">Control ESP32 and ESP8266 GPIOs from Anywhere in the World<\/a>.<\/p>\n<h2>Watch the video demonstration below (discontinued)<\/h2>\n<p style=\"text-align:center\"><iframe width=\"720\" height=\"405\" src=\"https:\/\/www.youtube.com\/embed\/vVcmlIQBJY0?rel=0\" frameborder=\"0\" allowfullscreen><\/iframe><\/p>\n<h3>Step #1 &#8211; Register Your Free Account (discontinued)<\/h3>\n<p>First you need to create your free account at Home Automation Server. Go to\u00a0<a href=\"http:\/\/app.homeautomationserver.com\/register\" target=\"_blank\" rel=\"noopener noreferrer\">http:\/\/app.homeautomationserver.com\/register<\/a>, type\u00a0all your details\u00a0and submit your registration.<\/p>\n<p>Then go to your email address, confirm your account and login into your account.<\/p>\n<p><strong>Important:<\/strong> Please note that this is the new version of Home Automation Server, if you already created an account in the <u><a href=\"http:\/\/homeautomationserver.com\/\" target=\"_blank\" rel=\"noopener noreferrer\"><strong>old<\/strong> Home Automation Server<\/a><\/u> your account <em>still works<\/em> with the same login details. You can reset your password <u><a href=\"http:\/\/app.homeautomationserver.com\/password_reset\" target=\"_blank\" rel=\"noopener noreferrer\">here.<\/a><\/u><\/p>\n<p><a href=\"http:\/\/app.homeautomationserver.com\/register\" target=\"_blank\" rel=\"noopener noreferrer\"><img data-recalc-dims=\"1\" fetchpriority=\"high\" decoding=\"async\" class=\" size-full wp-image-7626 aligncenter\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2015\/05\/1_has.png?resize=650%2C353&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"1_has\" width=\"650\" height=\"353\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2015\/05\/1_has.png?w=650&amp;quality=100&amp;strip=all&amp;ssl=1 650w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2015\/05\/1_has.png?resize=300%2C163&amp;quality=100&amp;strip=all&amp;ssl=1 300w\" sizes=\"(max-width: 650px) 100vw, 650px\" \/><\/a><\/p>\n<h3>Step #2 &#8211; Adding an\u00a0ESP8266 to Your Dashboard<\/h3>\n<p>When you login for the first time\u00a0you&#8217;ll need to click the green button that appears (see Figure below) that says &#8220;Click here to add your ESP8266&#8221;.<\/p>\n<p><img data-recalc-dims=\"1\" decoding=\"async\" class=\" size-full wp-image-7627 aligncenter\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2015\/05\/2_has.jpg?resize=658%2C285&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"2_has\" width=\"658\" height=\"285\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2015\/05\/2_has.jpg?w=658&amp;quality=100&amp;strip=all&amp;ssl=1 658w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2015\/05\/2_has.jpg?resize=300%2C130&amp;quality=100&amp;strip=all&amp;ssl=1 300w\" sizes=\"(max-width: 658px) 100vw, 658px\" \/><\/p>\n<p>You \u00a0also need to upload some Lua code to\u00a0your ESP8266. Click the gray button &#8220;First time here? Click here to generate your ESP8266 code&#8221;.<\/p>\n<p><img data-recalc-dims=\"1\" decoding=\"async\" class=\" size-full wp-image-7628 aligncenter\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2015\/05\/3_has.jpg?resize=600%2C370&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"3_has\" width=\"600\" height=\"370\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2015\/05\/3_has.jpg?w=600&amp;quality=100&amp;strip=all&amp;ssl=1 600w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2015\/05\/3_has.jpg?resize=300%2C185&amp;quality=100&amp;strip=all&amp;ssl=1 300w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><\/p>\n<p>Follow the instructions that appear below the gray button:<\/p>\n<ol>\n<li><a href=\"https:\/\/randomnerdtutorials.com\/flashing-nodemcu-firmware-on-the-esp8266-using-windows\/\" target=\"_blank\" rel=\"noopener noreferrer\">Flash your ESP8266 with NodeMCU firmware<\/a><\/li>\n<li>Upload the code\u00a0generated at Home Automation Server to your ESP8266<\/li>\n<li>Follow these schematics\u00a0below\u00a0to control 2 LEDs with your ESP8266<\/li>\n<\/ol>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2015\/02\/ESP-web-server_bb.png?resize=267%2C291&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"\" width=\"267\" height=\"291\" \/><\/p>\n<h3>Step #3 &#8211; Test It<\/h3>\n<p>Now you can control your ESP8266 GPIOs from\u00a0outside your home network using\u00a0any device that has browser!<\/p>\n<p>Click the &#8220;Turn On&#8221; buttons to make your ESP8266 GPIOs go HIGH.<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\" wp-image-7631 aligncenter\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2015\/05\/featured_has.jpg?resize=477%2C315&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"featured_has\" width=\"477\" height=\"315\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2015\/05\/featured_has.jpg?w=931&amp;quality=100&amp;strip=all&amp;ssl=1 931w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2015\/05\/featured_has.jpg?resize=300%2C198&amp;quality=100&amp;strip=all&amp;ssl=1 300w\" sizes=\"(max-width: 477px) 100vw, 477px\" \/><\/p>\n<p><strong>NOTE:<\/strong> The GPIOs of\u00a0your ESP8266 are updated every 20 seconds, please respect the API calls limit so we don&#8217;t overload the server. Thank you!<\/p>\n<p><strong>Read our new solution:<\/strong>\u00a0<a href=\"https:\/\/randomnerdtutorials.com\/control-esp32-esp8266-gpios-from-anywhere\/\">Control ESP32 and ESP8266 GPIOs from Anywhere in the World<\/a><\/p>\n<p>If you like this post probably you might like my next ones, so subscribe\u00a0my <a href=\"https:\/\/randomnerdtutorials.com\/start-here\">blog<\/a>\u00a0and my\u00a0Facebook page.\u00a0Thanks for reading,<\/p>\n<p>-Rui Santos<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hey there, The most\u00a0common\u00a0questions I get\u00a0about the ESP8266 WiFi Modules are:\u00a0&#8220;Is it possible to control my ESP8266 from anywhere in the world?&#8221; and\u00a0&#8220;How can I control my ESP8266 from anywhere?&#8221;.<\/p>\n","protected":false},"author":1,"featured_media":7625,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[214,265,300,225,198,264,199,218],"tags":[],"class_list":["post-7624","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-esp8266","category-esp8266-project","category-0-esp8266","category-home-automation","category-home-automation-server","category-project","category-h-tutorials","category-web-server"],"aioseo_notices":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2015\/05\/featured_hasnew.jpg?fit=931%2C615&quality=100&strip=all&ssl=1","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/posts\/7624","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/comments?post=7624"}],"version-history":[{"count":0,"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/posts\/7624\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/media\/7625"}],"wp:attachment":[{"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/media?parent=7624"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/categories?post=7624"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/tags?post=7624"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}