{"id":6386,"date":"2020-04-14T07:55:30","date_gmt":"2020-04-14T11:55:30","guid":{"rendered":"http:\/\/www.plastibots.com\/?p=6386"},"modified":"2021-10-14T14:48:55","modified_gmt":"2021-10-14T18:48:55","slug":"weathercloud-iot","status":"publish","type":"post","link":"https:\/\/www.plastibots.com\/index.php\/2020\/04\/14\/weathercloud-iot\/","title":{"rendered":"WeatherCloud &#8211; IoT"},"content":{"rendered":"\n<p>So, my son&#8217;s been bugging me to get him some of those LED strips for his room.\u00a0 You know the ones that you see on Amazon with the remote controls.\u00a0 Pffttt.. I couldn&#8217;t just go with status quo, so instead with a little grit and some free time I got on the LED <em>cloud<\/em> bandwagon and built him something a big puffy cloud with lights &#8211; what every teen wants right? \ud83d\ude09<\/p>\n<p>What is it? It&#8217;s a LED weather cloud. What does it do? First it displays weather forecast info using weather data from DarkSky.net. Data is parsed from a JSON feed and rendered in LED sequences in the cloud (rain, sunny, thunderstorms etc).<\/p>\n<p>Second (this is the &#8220;dude that&#8217;s cool&#8221; bit) &#8211; It uses <a href=\"https:\/\/blynk.io\/\" target=\"_blank\" rel=\"noopener noreferrer\">Blynk<\/a><a href=\"http:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2020\/04\/WeatherCloudBlynk.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignright size-thumbnail wp-image-6413\" src=\"http:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2020\/04\/WeatherCloudBlynk-150x150.png\" alt=\"\" width=\"150\" height=\"150\" \/><\/a> so my son can use his phone to set manual lightning sequences or RGB colours\u00a0 (e.g. sparkles, bouncing balls, any colour want etc).\u00a0 So I suppose it&#8217;s a mood light as well.\u00a0 \u00a0So a big puffy, Internet-connected weather mood light.\u00a0 BPICWML.\u00a0<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"841\" height=\"522\" src=\"http:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2020\/04\/IMG_2831.png\" alt=\"WeatherCloud\" class=\"wp-image-6408\" srcset=\"https:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2020\/04\/IMG_2831.png 841w, https:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2020\/04\/IMG_2831-300x186.png 300w, https:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2020\/04\/IMG_2831-768x477.png 768w\" sizes=\"auto, (max-width: 841px) 100vw, 841px\" \/><\/figure>\n\n\n\n<p>The video below demonstrates first all the LED sequences that can be controlled by the Blynk app, and secondly some weather patterns that would show based on current weather conditions.  I had a &#8220;duh&#8221; moment after realizing I videoed from the backside (showing the ESP8266 controller case) and missed the moon (on the lower left in front). Meh&#8230; <\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"WeatherCloud - IoT\" width=\"500\" height=\"281\" src=\"https:\/\/www.youtube.com\/embed\/peZJRlxrS5Y?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<p><strong>Build Info:<\/strong><\/p>\n\n\n\n<p>It&#8217;s pretty easy to build with only a few components needed.&nbsp; It&#8217;s also low voltage and the LEDs and controller are sealed (they don&#8217;t get hot), so I would say this is pretty good on the safety scale.&nbsp; &nbsp;Probably much safer than anything electrical you can find at a dollar store! \ud83d\ude09&nbsp;<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>MCU:<\/strong>&nbsp;<a rel=\"noreferrer noopener\" href=\"https:\/\/www.banggood.com\/search\/nodemcu-esp8266.html?p=R90804949020201412E4\" target=\"_blank\">NodeMCU ESP8266 Mini<\/a>. Can be made with other WiFi-enabled MCU\u2019s.<\/li><li><strong>NeoPixel LED Strip:<\/strong>&nbsp; Given the price these days, I typically buy 5M meter lengths, but you only need about 3ft.&nbsp; For this build i used <a rel=\"noreferrer noopener\" href=\"https:\/\/www.banggood.com\/5M-45W-150SMD-WS2812B-LED-RGB-Colorful-Strip-Light-Waterproof-IP65-WhiteBlack-PCB-DC5V-p-1035640.html?p=R90804949020201412E4\" target=\"_blank\">these<\/a> which have the WS28912B chips (these are my go-to LED&#8217;s these days).&nbsp; Also used in my <a rel=\"noreferrer noopener\" href=\"http:\/\/www.plastibots.com\/index.php\/2019\/12\/19\/basement-disco-neopixel-music-sync-with-msgeq7\/\" target=\"_blank\">Basement Disco<\/a> project.&nbsp;<\/li><li><strong>Power Supply:<\/strong>&nbsp; As the LED strip is limited to 76 pixels, it doesn&#8217;t have a lot of current demand.&nbsp; I&#8217;m using a 5V Apple charger that provides 2 Amps.  Between the ESP8266 and the strip, you will need at least 1 Amp.&nbsp; Most chargers can handle 2 Amps+ these days.<\/li><li><strong>Connections:<\/strong>    Probably the easiest project out there.  Power both the ESP8266 and the  LED strip with the 5V + and GND connections.  Make sure ground on both are connected to each other.  The NeoPixel strip Data line goes to D4 on the NodeMCU. Done.<\/li><li><strong>Blynk App:<\/strong>  Although not required, this project uses <a rel=\"noreferrer noopener\" aria-label=\"Blynk  (opens in a new tab)\" href=\"https:\/\/blynk.io\/\" target=\"_blank\">Blynk <\/a>which allows controlling IoT devices such as ESP&#8217;s, Arduino&#8217;s, Raspberry Pi&#8217;s etc via your phone. I&#8217;m a huge fan of Blynk as it&#8217;s easy to use and blows away the competition IMHO.&nbsp; If you want to build this yourself and not use Blynk, you will have to hack out the Blynk bits and just use standard WiFi connectivity.&nbsp; This would require intermediate knowledge of working with Arduino and ESP8266 devices \/ code.&nbsp; For most who have done this before, it&#8217;s an easy hack, and there are many samples out there.&nbsp; You can also easily use an ESP32 with minimal changes to code. <\/li><li><strong>The Cloud:<\/strong>  The skeleton of the unit uses 2 plastic pop bottles glued them together with hot glue.  The LED strip was then glued around the bottles in a spiral.  Notice that I left a few sections with extra LED&#8217;s as this is where the cloud material was added to give the cloud a natural look.  After connecting some string for mounting, the ESP control unit and power cable, the fun started.  I used an old pillow with polyfill to make the cloud fluff.  It required a lot of hot glue to make sure you have a bag of sticks (est. 10 sticks).  It only needed about 3\/4 of the pillow material. You can also get the material at your local craft store (e.g. Michaels).  <\/li><li><strong>Data Source:<\/strong>  Apple recently purchased DarkSky.net and have shut down the free API access for new registrants. If you have an existing account, you are good.  If not, then you have to look for an alternate source of weather data.  Over the coming month or so, I&#8217;m going to be looking at <a aria-label=\" (opens in a new tab)\" href=\"https:\/\/www.weatherbit.io\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\" class=\"aioseop-link\">Weatherbit.io<\/a> as another source for free data for this and <a aria-label=\"other  (opens in a new tab)\" href=\"http:\/\/www.plastibots.com\/index.php\/2017\/01\/03\/wiot-2-weather-station-nextion-tft-with-esp8266\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\" class=\"aioseop-link\">other <\/a>projects.<\/li><\/ul>\n\n\n\n<p><strong>Code:<\/strong><\/p>\n\n\n\n<p>Please first read my <a rel=\"noreferrer noopener\" href=\"http:\/\/www.plastibots.com\/index.php\/disclaimer-props\/\" target=\"_blank\">Disclaimer<\/a>.  The code is where all the art exists, and is a mash-up of code from my <a aria-label=\"WIoT-2 weather project (opens in a new tab)\" rel=\"noreferrer noopener\" href=\"http:\/\/www.plastibots.com\/index.php\/2017\/01\/03\/wiot-2-weather-station-nextion-tft-with-esp8266\/\" target=\"_blank\">WIoT-2 weather project<\/a>, <a aria-label=\"Basement Disco project (opens in a new tab)\" rel=\"noreferrer noopener\" href=\"http:\/\/www.plastibots.com\/index.php\/2019\/12\/19\/basement-disco-neopixel-music-sync-with-msgeq7\/\" target=\"_blank\">Basement Disco project<\/a> and others including some online samples of different LED effects for which some I modified to represent weather such as rain, snow, sleet, cloudy etc.<\/p>\n\n\n<div class=\"sdm_download_item \"><div class=\"sdm_download_item_top\"><div class=\"sdm_download_thumbnail\"><\/div><div class=\"sdm_download_title\">IoT WeatherCloud Source<\/div><\/div><div style=\"clear:both;\"><\/div><div class=\"sdm_download_description\"><ul>\n<li>Version 4<\/li>\n<\/ul>\n<\/div><div class=\"sdm_download_link\"><span class=\"sdm_download_button\"><a href=\"https:\/\/www.plastibots.com\/?sdm_process_download=1&#038;download_id=6415\" class=\"sdm_download green\" title=\"IoT WeatherCloud Source\" target=\"_self\">Download Now!<\/a><\/span><span class=\"sdm_download_item_count\"><span class=\"sdm_item_count_number\">950<\/span><span class=\"sdm_item_count_string\"> Downloads<\/span><\/span><\/div><\/div><div class=\"sdm_clear_float\"><\/div>\n\n\n<p>The below video shows early stages with 2 plastic bottles making the skeleton. Video shows testing the lightning sequence (trying to get it to appear natural with randomness).   The LED strip is left dangling in some areas as the cloud will have peaks that need to be lit up.  Also, what isn&#8217;t shown are the LED&#8217;s bunched together in the middle (for the sun) and the end (to the right) where I&#8217;ve popped on a 3D printed moon. <\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"WeatherCloud IoT - Testing lightning sequence.\" width=\"500\" height=\"281\" src=\"https:\/\/www.youtube.com\/embed\/7GrirveonEo?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<figure class=\"wp-block-gallery columns-3 is-cropped wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex\"><ul class=\"blocks-gallery-grid\"><li class=\"blocks-gallery-item\"><figure><a href=\"http:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2020\/03\/IMG_2735-1024x768.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"768\" src=\"http:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2020\/03\/IMG_2735-1024x768.jpg\" alt=\"\" data-id=\"6387\" data-link=\"http:\/\/www.plastibots.com\/?attachment_id=6387\" class=\"wp-image-6387\" srcset=\"https:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2020\/03\/IMG_2735-1024x768.jpg 1024w, https:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2020\/03\/IMG_2735-300x225.jpg 300w, https:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2020\/03\/IMG_2735-768x576.jpg 768w, https:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2020\/03\/IMG_2735-1536x1152.jpg 1536w, https:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2020\/03\/IMG_2735-2048x1536.jpg 2048w, https:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2020\/03\/IMG_2735-640x480.jpg 640w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption class=\"blocks-gallery-item__caption\">Skeleton with LED&#8217;s mounted<\/figcaption><\/figure><\/li><li class=\"blocks-gallery-item\"><figure><a href=\"http:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2020\/03\/IMG_2750-1024x768.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"768\" src=\"http:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2020\/03\/IMG_2750-1024x768.jpg\" alt=\"\" data-id=\"6388\" data-link=\"http:\/\/www.plastibots.com\/?attachment_id=6388\" class=\"wp-image-6388\" srcset=\"https:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2020\/03\/IMG_2750-1024x768.jpg 1024w, https:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2020\/03\/IMG_2750-300x225.jpg 300w, https:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2020\/03\/IMG_2750-768x576.jpg 768w, https:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2020\/03\/IMG_2750-1536x1152.jpg 1536w, https:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2020\/03\/IMG_2750-2048x1536.jpg 2048w, https:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2020\/03\/IMG_2750-640x480.jpg 640w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption class=\"blocks-gallery-item__caption\">3D Printed Sun bottom<\/figcaption><\/figure><\/li><li class=\"blocks-gallery-item\"><figure><a href=\"http:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2020\/03\/IMG_2751-768x1024.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"768\" height=\"1024\" src=\"http:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2020\/03\/IMG_2751-768x1024.jpg\" alt=\"\" data-id=\"6391\" data-link=\"http:\/\/www.plastibots.com\/?attachment_id=6391\" class=\"wp-image-6391\" srcset=\"https:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2020\/03\/IMG_2751-768x1024.jpg 768w, https:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2020\/03\/IMG_2751-225x300.jpg 225w, https:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2020\/03\/IMG_2751-1152x1536.jpg 1152w, https:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2020\/03\/IMG_2751-1536x2048.jpg 1536w, https:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2020\/03\/IMG_2751-scaled.jpg 1920w\" sizes=\"auto, (max-width: 768px) 100vw, 768px\" \/><\/a><figcaption class=\"blocks-gallery-item__caption\">Printing the top<\/figcaption><\/figure><\/li><li class=\"blocks-gallery-item\"><figure><a href=\"http:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2020\/03\/IMG_2752-scaled.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"768\" height=\"1024\" src=\"http:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2020\/03\/IMG_2752-768x1024.jpg\" alt=\"\" data-id=\"6395\" data-full-url=\"http:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2020\/03\/IMG_2752-scaled.jpg\" data-link=\"http:\/\/www.plastibots.com\/?attachment_id=6395\" class=\"wp-image-6395\" srcset=\"https:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2020\/03\/IMG_2752-768x1024.jpg 768w, https:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2020\/03\/IMG_2752-225x300.jpg 225w, https:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2020\/03\/IMG_2752-1152x1536.jpg 1152w, https:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2020\/03\/IMG_2752-1536x2048.jpg 1536w, https:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2020\/03\/IMG_2752-scaled.jpg 1920w\" sizes=\"auto, (max-width: 768px) 100vw, 768px\" \/><\/a><figcaption class=\"blocks-gallery-item__caption\">Moon mounted<\/figcaption><\/figure><\/li><li class=\"blocks-gallery-item\"><figure><a href=\"http:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2020\/03\/IMG_2753-scaled.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"768\" height=\"1024\" src=\"http:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2020\/03\/IMG_2753-768x1024.jpg\" alt=\"\" data-id=\"6396\" data-full-url=\"http:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2020\/03\/IMG_2753-scaled.jpg\" data-link=\"http:\/\/www.plastibots.com\/?attachment_id=6396\" class=\"wp-image-6396\" srcset=\"https:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2020\/03\/IMG_2753-768x1024.jpg 768w, https:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2020\/03\/IMG_2753-225x300.jpg 225w, https:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2020\/03\/IMG_2753-1152x1536.jpg 1152w, https:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2020\/03\/IMG_2753-1536x2048.jpg 1536w, https:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2020\/03\/IMG_2753-scaled.jpg 1920w\" sizes=\"auto, (max-width: 768px) 100vw, 768px\" \/><\/a><figcaption class=\"blocks-gallery-item__caption\">Glueing the Sun together<\/figcaption><\/figure><\/li><\/ul><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>The video below demonstrates first all the LED sequences that can be controlled by the Blynk app, and secondly some weather patterns that would show based on current weather conditions. I had a &#8220;duh&#8221; moment after realizing I videoed from the backside (showing the ESP8266 controller case) and missed the moon (on the lower left in front). Meh&#8230; Build Info: It&#8217;s pretty easy to build with only a few components needed.&nbsp; It&#8217;s also low voltage &hellip; <a href=\"https:\/\/www.plastibots.com\/index.php\/2020\/04\/14\/weathercloud-iot\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":4,"featured_media":6408,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"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":[156,57,168,119],"tags":[64,170,162],"class_list":["post-6386","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-3d-printing","category-electronics","category-esp8266","category-iot","tag-arduino","tag-esp8266","tag-weather","has_thumb"],"aioseo_notices":[],"jetpack_featured_media_url":"https:\/\/www.plastibots.com\/wordpress\/wp-content\/uploads\/2020\/04\/IMG_2831.png","jetpack_shortlink":"https:\/\/wp.me\/pK41j-1F0","jetpack_sharing_enabled":true,"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/www.plastibots.com\/index.php\/wp-json\/wp\/v2\/posts\/6386","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.plastibots.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.plastibots.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.plastibots.com\/index.php\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.plastibots.com\/index.php\/wp-json\/wp\/v2\/comments?post=6386"}],"version-history":[{"count":5,"href":"https:\/\/www.plastibots.com\/index.php\/wp-json\/wp\/v2\/posts\/6386\/revisions"}],"predecessor-version":[{"id":7137,"href":"https:\/\/www.plastibots.com\/index.php\/wp-json\/wp\/v2\/posts\/6386\/revisions\/7137"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.plastibots.com\/index.php\/wp-json\/wp\/v2\/media\/6408"}],"wp:attachment":[{"href":"https:\/\/www.plastibots.com\/index.php\/wp-json\/wp\/v2\/media?parent=6386"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.plastibots.com\/index.php\/wp-json\/wp\/v2\/categories?post=6386"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.plastibots.com\/index.php\/wp-json\/wp\/v2\/tags?post=6386"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}