{"id":12484,"date":"2016-11-07T23:51:55","date_gmt":"2016-11-08T04:51:55","guid":{"rendered":"http:\/\/embedded-lab.com\/blog\/?p=12484"},"modified":"2016-11-07T23:51:55","modified_gmt":"2016-11-08T04:51:55","slug":"wear-weather-clock","status":"publish","type":"post","link":"https:\/\/embedded-lab.com\/blog\/wear-weather-clock\/","title":{"rendered":"What-to-wear weather clock"},"content":{"rendered":"<p>Plan your day with confidence using this <strong><a href=\"https:\/\/www.hackster.io\/monkbroc\/what-should-i-wear-outside-81b6e4\" target=\"_blank\">fancy weather forecasting clock<\/a><\/strong> that tells you what kind of clothes you need to wear to be comfortable outside.\u00a0The clock is powered by the Particle Photon IoT development board that retrieves the current weather information from forecast.io. Based on the weather forecast, the Particle board drives\u00a0a servo motor to move a clock hand to point to the correct type of clothes needed.<\/p>\n<div id=\"attachment_12485\" style=\"width: 910px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/embedded-lab.com\/blog\/wp-content\/uploads\/2016\/11\/what2wear.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-12485\" class=\"size-full wp-image-12485\" src=\"http:\/\/embedded-lab.com\/blog\/wp-content\/uploads\/2016\/11\/what2wear.jpg\" alt=\"Weather forecasting clock\" width=\"900\" height=\"675\" srcset=\"https:\/\/embedded-lab.com\/blog\/wp-content\/uploads\/2016\/11\/what2wear.jpg 900w, https:\/\/embedded-lab.com\/blog\/wp-content\/uploads\/2016\/11\/what2wear-580x435.jpg 580w\" sizes=\"auto, (max-width: 900px) 100vw, 900px\" \/><\/a><p id=\"caption-attachment-12485\" class=\"wp-caption-text\">Weather forecasting clock<\/p><\/div>\n<blockquote><p>I split the software into 2 parts: the Photon firmware to move the pointer and a\u00a0<a href=\"http:\/\/hook.io\/\">hook.io<\/a>\u00a0script to figure out which clothes to wear from the\u00a0<a href=\"http:\/\/forecast.io\/\">forecast.io<\/a>\u00a0weather forecast. The Particle cloud acts as a bridge between the Photon and the\u00a0<a href=\"http:\/\/hook.io\/\">hook.io<\/a>\u00a0script.\u00a0The main reason for splitting is that it will be easier to continue tweaking the clothes decision code without draining the batteries in the frame by continuously reprogramming the Particle Photon.<\/p><\/blockquote>\n<p>The firmware source code is at:<\/p>\n<p><a href=\"https:\/\/github.com\/monkbroc\/what-to-wear\/tree\/master\/firmware\">https:\/\/github.com\/monkbroc\/what-to-wear\/tree\/master\/firmware<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Plan your day with confidence using this fancy weather forecasting clock that tells you what kind of clothes you need to wear to be comfortable outside.\u00a0The clock is powered by the Particle Photon IoT development board that retrieves the current weather information from forecast.io. Based on the weather forecast, the Particle board drives\u00a0a servo motor to move a clock hand to point to the correct type of clothes needed. I split the software into 2 parts: the Photon firmware to move the pointer and a\u00a0hook.io\u00a0script to figure out which clothes to wear from the\u00a0forecast.io\u00a0weather forecast. The Particle cloud acts as<\/p>\n","protected":false},"author":1,"featured_media":12485,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[958],"tags":[1335,1545],"class_list":["post-12484","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-internet-of-things","tag-particle-photon","tag-weather-forecaster"],"_links":{"self":[{"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/posts\/12484","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/comments?post=12484"}],"version-history":[{"count":3,"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/posts\/12484\/revisions"}],"predecessor-version":[{"id":12488,"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/posts\/12484\/revisions\/12488"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/media\/12485"}],"wp:attachment":[{"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/media?parent=12484"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/categories?post=12484"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/tags?post=12484"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}