{"id":3993,"date":"2016-09-22T23:49:52","date_gmt":"2016-09-23T03:49:52","guid":{"rendered":"http:\/\/www.paleotechnologist.net\/?p=3993"},"modified":"2016-09-22T23:49:52","modified_gmt":"2016-09-23T03:49:52","slug":"a-weather-prognosticator","status":"publish","type":"post","link":"https:\/\/www.paleotechnologist.net\/?p=3993","title":{"rendered":"A Weather Prognosticator"},"content":{"rendered":"<p>I&#8217;m not what you would call a Summer Person. My usual strategy for dealing with long-term inclement weather (known to humans as May, June, July, August, and, increasingly, September) is to insulate\u00a0the house as much as possible, close off rooms I don&#8217;t need, run the AC, and pretend that I actually\u00a0live in northern Canada or somewhere else where the weather outside is pleasant.<\/p>\n<p>It&#8217;s a good strategy, and thus far has kept me from catching on fire during the dreaded Daystar Months. However, it is not without its drawbacks: I have no idea what to expect, temperature-wise, when I open the front door. Is a short shirt appropriate for a walk to the corner store, or is it too hot to venture out without a fire suit?<\/p>\n<p>Of course, I could pull out my phone, unlock the screen, pull up a weather app, wait for it to load, and look at the temperatures. But who has time for that? Wouldn&#8217;t it be nice to just be able to look up and know what the weather will be like for the next few hours?<\/p>\n<div id=\"attachment_3994\" style=\"width: 650px\" class=\"wp-caption alignleft\"><a href=\"https:\/\/www.paleotechnologist.net\/wp-content\/uploads\/2016\/09\/2016-08-05-20.13.31.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-3994\" class=\"wp-image-3994 size-large\" src=\"https:\/\/www.paleotechnologist.net\/wp-content\/uploads\/2016\/09\/2016-08-05-20.13.31-1024x576.jpg\" alt=\"The display, running a static color test\" width=\"640\" height=\"360\" srcset=\"https:\/\/www.paleotechnologist.net\/wp-content\/uploads\/2016\/09\/2016-08-05-20.13.31-1024x576.jpg 1024w, https:\/\/www.paleotechnologist.net\/wp-content\/uploads\/2016\/09\/2016-08-05-20.13.31-300x169.jpg 300w, https:\/\/www.paleotechnologist.net\/wp-content\/uploads\/2016\/09\/2016-08-05-20.13.31-768x432.jpg 768w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><p id=\"caption-attachment-3994\" class=\"wp-caption-text\">The Weather Prognosticator display, running a static color test<\/p><\/div>\n<p>Enter the Weather Prognosticator! (Okay, right now it&#8217;s just a Temperature Prognosticator; I still need to add precipitation.) An Arduino Uno and Ethernet shield connect to the <a href=\"https:\/\/www.wunderground.com\/weather\/api\/\" target=\"_blank\">weatherunderground.com API<\/a> to pull an hourly forecast once every five minutes*.<\/p>\n<p>This data is translated into a color map from blue (#0000FF) through green (#00FF00) to red(#FF0000), covering temperatures from 0C to 30C.\u00a0The temperature map still needs a little tweaking; I&#8217;ll probably add purple\/white for temperatures below zero &#8212; but I&#8217;ll probably leave 30C-35C as the high end. Anything over that is not amenable to going outside.<\/p>\n<p>Once the data has been translated into a color map, it is sent to a <a href=\"https:\/\/www.radioshack.com\/products\/radioshack-led-waterproof-flexi-strip-60-led-1m-white?variant=5717569861\" target=\"_blank\">1m long 30 LED strip<\/a> that I bought on sale at Radio Shack a while back. The data sheet isn&#8217;t very helpful, but with some tweaking, the provided driver functions do work.<\/p>\n<p>This particular LED strip has ten addressable sections of three LEDs each; all three LEDs in each section are the same addressable color. In order to separate the light from each section, I designed a linear sconce, and 3D printed five copies to cover all the sections.<\/p>\n<p>Anyway, here are the plans. You&#8217;ll need your own (free) API key from weatherunderground.com .<\/p>\n<p><a href=\"https:\/\/www.paleotechnologist.net\/wp-content\/uploads\/2016\/09\/wunderground2_export-160922a.zip\">Arduino code: Weather Prognosticator 0.1 (Alpha)<\/a><\/p>\n<p>3D printed holder (print five of them): <a href=\"http:\/\/www.thingiverse.com\/thing:1786350\" target=\"_blank\">See Thingiverse<\/a><\/p>\n<p>* I plan to dial it back to polling every 30 minutes once it&#8217;s more reliable. Right now, I&#8217;m still testing it, and it still pulls an all-zero forecast every so often.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A Weather Prognosticator, to visually show the hourly forecast temperature by color. <a href=\"https:\/\/www.paleotechnologist.net\/?p=3993\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"footnotes":""},"categories":[503,267,249,216,306,210,238,226,223,271,490,264],"tags":[506,498,507,505,441,442,504],"class_list":["post-3993","post","type-post","status-publish","format-standard","hentry","category-3d-printing","category-arduino","category-c","category-coding","category-design","category-digital","category-electronics","category-how-to","category-internet","category-level-2","category-networking","category-projects","tag-3d-printing","tag-arduino","tag-ethernet","tag-forecast","tag-rgb","tag-rgb-led","tag-weather"],"_links":{"self":[{"href":"https:\/\/www.paleotechnologist.net\/index.php?rest_route=\/wp\/v2\/posts\/3993","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.paleotechnologist.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.paleotechnologist.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.paleotechnologist.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.paleotechnologist.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3993"}],"version-history":[{"count":4,"href":"https:\/\/www.paleotechnologist.net\/index.php?rest_route=\/wp\/v2\/posts\/3993\/revisions"}],"predecessor-version":[{"id":3999,"href":"https:\/\/www.paleotechnologist.net\/index.php?rest_route=\/wp\/v2\/posts\/3993\/revisions\/3999"}],"wp:attachment":[{"href":"https:\/\/www.paleotechnologist.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3993"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.paleotechnologist.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3993"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.paleotechnologist.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3993"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}