{"id":3368,"date":"2016-09-23T21:08:17","date_gmt":"2016-09-23T17:08:17","guid":{"rendered":"https:\/\/nayarweb.com\/blog\/?p=3368"},"modified":"2018-06-22T21:43:41","modified_gmt":"2018-06-22T17:43:41","slug":"internet-of-things-iot-in-mauritius-lemme-just-do-it","status":"publish","type":"post","link":"https:\/\/nayarweb.com\/blog\/2016\/internet-of-things-iot-in-mauritius-lemme-just-do-it\/","title":{"rendered":"Iot Series: Internet of Things (IoT) in Mauritius!"},"content":{"rendered":"<p>I reach home from work when it&#8217;s already dark. I got to park my car in front of my house. I said to myself wouldn&#8217;t it be awesome if I could light up the house exterior light using my mobile phone? I bought some WiFI enabled switches from the internet and installed it. Here&#8217;s\u00a0a diagram of the installation.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3374\" src=\"https:\/\/nayarweb.com\/blog\/wp-content\/uploads\/2016\/09\/iotarch.png\" alt=\"iotarch\" width=\"787\" height=\"449\" srcset=\"https:\/\/nayarweb.com\/blog\/wp-content\/uploads\/2016\/09\/iotarch.png 787w, https:\/\/nayarweb.com\/blog\/wp-content\/uploads\/2016\/09\/iotarch-300x171.png 300w, https:\/\/nayarweb.com\/blog\/wp-content\/uploads\/2016\/09\/iotarch-768x438.png 768w\" sizes=\"auto, (max-width: 787px) 100vw, 787px\" \/><\/p>\n<p>&#8216;All iz well&#8217; except for 1\u00a0problem.\u00a0Nayar&#8217;s highness has stop his car,\u00a0unlock his\u00a0phone, launch an\u00a0app, press the LIGHT ON button, then reverse his car. Nayar is not happy!!!<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-3375 size-full\" src=\"https:\/\/nayarweb.com\/blog\/wp-content\/uploads\/2016\/09\/The_Dictator_review.jpg\" width=\"752\" height=\"522\" srcset=\"https:\/\/nayarweb.com\/blog\/wp-content\/uploads\/2016\/09\/The_Dictator_review.jpg 752w, https:\/\/nayarweb.com\/blog\/wp-content\/uploads\/2016\/09\/The_Dictator_review-300x208.jpg 300w\" sizes=\"auto, (max-width: 752px) 100vw, 752px\" \/><\/p>\n<p>So I had to make a system\u00a0such that\u00a0whenever Nayar reaches home, the exterior lights up automatically? Makes sense right? How did I achieve this? Simple but not so simple.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3370\" src=\"https:\/\/nayarweb.com\/blog\/wp-content\/uploads\/2016\/09\/img_20160923_210617.jpg\" alt=\"img_20160923_210617.jpg\" width=\"283\" height=\"314\" srcset=\"https:\/\/nayarweb.com\/blog\/wp-content\/uploads\/2016\/09\/img_20160923_210617.jpg 283w, https:\/\/nayarweb.com\/blog\/wp-content\/uploads\/2016\/09\/img_20160923_210617-270x300.jpg 270w\" sizes=\"auto, (max-width: 283px) 100vw, 283px\" \/><\/p>\n<p>The Wireless Switch\u00a0was\u00a0vendor locked in; meaning it works with their cloud service and Android\/iOS app.\u00a0It doesn&#8217;t\u00a0give me the\u00a0flexibility for I need. Had to do the following steps in order to be free:<\/p>\n<ol>\n<li>Flash an Arduino firmware (from github) to the wireless switch.<\/li>\n<li>Create a home automation server on a\u00a0raspberry pi (which I dropped in favour of cloud hosting)<\/li>\n<li>Create an Android app which whenever I connect to my home WiFi, I sends the TURN ON lights on<\/li>\n<\/ol>\n<p>After lots of research and development, trial and error, it finally worked \ud83d\ude00<\/p>\n<p><a href=\"https:\/\/nayarweb.com\/blog\/wp-content\/uploads\/2016\/09\/20160923_230001.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-3378 alignnone size-full\" src=\"https:\/\/nayarweb.com\/blog\/wp-content\/uploads\/2016\/09\/20160923_230001.jpg\" alt=\"\" width=\"360\" height=\"339\" srcset=\"https:\/\/nayarweb.com\/blog\/wp-content\/uploads\/2016\/09\/20160923_230001.jpg 360w, https:\/\/nayarweb.com\/blog\/wp-content\/uploads\/2016\/09\/20160923_230001-300x283.jpg 300w\" sizes=\"auto, (max-width: 360px) 100vw, 360px\" \/><\/a><br \/>\nIs it over? Nope. Who&#8217;s gonna turn off the lights when I enter home? Ofcourse I put a 3 minutes timer in it \ud83d\ude1b<\/p>\n<p><a href=\"https:\/\/nayarweb.com\/blog\/wp-content\/uploads\/2016\/09\/20160923_230443.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-3379 alignnone size-full\" src=\"https:\/\/nayarweb.com\/blog\/wp-content\/uploads\/2016\/09\/20160923_230443.jpg\" alt=\"\" width=\"360\" height=\"297\" srcset=\"https:\/\/nayarweb.com\/blog\/wp-content\/uploads\/2016\/09\/20160923_230443.jpg 360w, https:\/\/nayarweb.com\/blog\/wp-content\/uploads\/2016\/09\/20160923_230443-300x248.jpg 300w\" sizes=\"auto, (max-width: 360px) 100vw, 360px\" \/><\/a><\/p>\n<p>And the Laziest Award 2016 goes to?<\/p>\n<p>Coming soon. Very soon:<\/p>\n<ul>\n<li>Control garage doors <span style=\"color: #ff9900;\">(R&amp;D stage)<\/span><\/li>\n<li>Temperature and humidity sensors\u00a0<span style=\"color: #339966;\">(prototype\u00a0stage)<\/span><\/li>\n<li>Get status of windows\/doors status: open or closed\u00a0<span style=\"color: #ff9900;\">(R&amp;D stage)<\/span><\/li>\n<li>Home Camera Surveillance\u00a0<span style=\"color: #ff9900;\">(waiting for materials)<\/span><\/li>\n<li>Smart TVs integration\u00a0<span style=\"color: #339966;\">(prototype\u00a0stage)<\/span><\/li>\n<li>Solar Water Tank monitoring and control inflows\u00a0<span style=\"color: #ff9900;\">(R&amp;D stage)<\/span><\/li>\n<\/ul>\n<p><b>Wanna get into the world of Home Automation too? Wanna turn on your coffee machine from your bed and more? Feel free to contact me on <span style=\"color: #ffcc00;\"><a style=\"color: #ffcc00;\" href=\"https:\/\/www.linkedin.com\/in\/nayar-joolfoo-2589b2a2\">LinkedIn<\/a>,<\/span>\u00a0<span style=\"color: #ffcc00;\"><a style=\"color: #ffcc00;\" href=\"https:\/\/www.facebook.com\/NayarJoolfoo\">Facebook<\/a><\/span> or <span style=\"color: #ffcc00;\"><a style=\"color: #ffcc00;\" href=\"https:\/\/twitter.com\/Dr_Zoule\">Twitter<\/a>.<\/span><\/b><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I reach home from work when it&#8217;s already dark. I got to park my car in front of my house. I said to myself wouldn&#8217;t it be awesome if I could light up the house exterior light using my mobile phone? I bought some WiFI enabled switches from the internet and installed it. Here&#8217;s\u00a0a diagram &hellip; <a href=\"https:\/\/nayarweb.com\/blog\/2016\/internet-of-things-iot-in-mauritius-lemme-just-do-it\/\" class=\"continue-reading\">Continue reading <span class=\"screen-reader-text\">Iot Series: Internet of Things (IoT) in Mauritius!<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":3374,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[210,1],"tags":[232,237],"class_list":["post-3368","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-technology","category-uncategorized","tag-internet-of-things-iot","tag-smart-home"],"_links":{"self":[{"href":"https:\/\/nayarweb.com\/blog\/wp-json\/wp\/v2\/posts\/3368","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nayarweb.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nayarweb.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nayarweb.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/nayarweb.com\/blog\/wp-json\/wp\/v2\/comments?post=3368"}],"version-history":[{"count":15,"href":"https:\/\/nayarweb.com\/blog\/wp-json\/wp\/v2\/posts\/3368\/revisions"}],"predecessor-version":[{"id":3921,"href":"https:\/\/nayarweb.com\/blog\/wp-json\/wp\/v2\/posts\/3368\/revisions\/3921"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/nayarweb.com\/blog\/wp-json\/wp\/v2\/media\/3374"}],"wp:attachment":[{"href":"https:\/\/nayarweb.com\/blog\/wp-json\/wp\/v2\/media?parent=3368"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nayarweb.com\/blog\/wp-json\/wp\/v2\/categories?post=3368"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nayarweb.com\/blog\/wp-json\/wp\/v2\/tags?post=3368"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}