{"id":2371,"date":"2019-07-28T21:51:41","date_gmt":"2019-07-28T19:51:41","guid":{"rendered":"https:\/\/blog.chschmid.com\/?p=2371"},"modified":"2019-07-29T22:36:32","modified_gmt":"2019-07-29T20:36:32","slug":"its-getting-warmer-getting-netatmo-data-into-matlab","status":"publish","type":"post","link":"https:\/\/blog.chschmid.com\/?p=2371","title":{"rendered":"It&#8217;s Getting Warmer &#8211; Using MATLAB to Visualize Netatmo Data"},"content":{"rendered":"\n<p>Global warming is a thing. There&#8217;s no denying that temperatures are rising.<\/p>\n\n\n\n<p>In my quest to learn to live with it, I got a Netatmo weather station that measures outside and inside temperature levels (among other things) in 5 minutes intervals.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/blog.chschmid.com\/wp-content\/uploads\/2019\/07\/81lyFwKcZ5L._SL1500_.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"810\" src=\"https:\/\/blog.chschmid.com\/wp-content\/uploads\/2019\/07\/81lyFwKcZ5L._SL1500_-1024x810.jpg\" alt=\"\" class=\"wp-image-2379\" srcset=\"https:\/\/blog.chschmid.com\/wp-content\/uploads\/2019\/07\/81lyFwKcZ5L._SL1500_-1024x810.jpg 1024w, https:\/\/blog.chschmid.com\/wp-content\/uploads\/2019\/07\/81lyFwKcZ5L._SL1500_-300x237.jpg 300w, https:\/\/blog.chschmid.com\/wp-content\/uploads\/2019\/07\/81lyFwKcZ5L._SL1500_-768x608.jpg 768w, https:\/\/blog.chschmid.com\/wp-content\/uploads\/2019\/07\/81lyFwKcZ5L._SL1500_-624x494.jpg 624w, https:\/\/blog.chschmid.com\/wp-content\/uploads\/2019\/07\/81lyFwKcZ5L._SL1500_.jpg 1500w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p>My goal is to keep the temperature in my apartment as low as possible without installing AC, so my primary questions are:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>When to open the windows in the evening, to let in cool air?<\/li><li>When to close the windows again?<\/li><\/ul>\n\n\n\n<p>While the Netatmo website provides a coarse overview of the temperature levels, it&#8217;s not particularly helpful in answering these questions because &#8230;<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>the weekly view shows data points in steps of 3 hours<\/li><li> data from different sensors can not be merged int<g class=\"gr_ gr_17 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling gr-progress sel\" id=\"17\" data-gr-id=\"17\">o<\/g> one graph to understand dependencies (e.g., outdoor vs. indoor temperature).<\/li><\/ol>\n\n\n\n<p>Here&#8217;s a plot I generated by exporting the raw data from Netatmo and some MATLAB coding.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/blog.chschmid.com\/wp-content\/uploads\/2019\/07\/temperature-1024x514.png\"><img decoding=\"async\" src=\"https:\/\/blog.chschmid.com\/wp-content\/uploads\/2019\/07\/temperature-1024x514.png\" alt=\"Temperature over the course of 10 days.\" class=\"wp-image-2396\"\/><\/a><\/figure>\n\n\n\n<p>With all the data available in MATLAB I can now go ahead with extracting some critical data points, such as when the outside temperature reaches its minimum or when it starts increasing again. More on that later.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Global warming is a thing. There&#8217;s no denying that temperatures are rising. In my quest to learn to live with it, I got a Netatmo weather station that measures outside and inside temperature levels (among other things) in 5 minutes intervals. My goal is to keep the temperature in my apartment as low as possible [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","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":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[4],"tags":[18,24],"class_list":["post-2371","post","type-post","status-publish","format-standard","hentry","category-life_and_stuff","tag-diy","tag-engineering"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p15PpI-Cf","_links":{"self":[{"href":"https:\/\/blog.chschmid.com\/index.php?rest_route=\/wp\/v2\/posts\/2371","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.chschmid.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.chschmid.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.chschmid.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.chschmid.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2371"}],"version-history":[{"count":24,"href":"https:\/\/blog.chschmid.com\/index.php?rest_route=\/wp\/v2\/posts\/2371\/revisions"}],"predecessor-version":[{"id":2410,"href":"https:\/\/blog.chschmid.com\/index.php?rest_route=\/wp\/v2\/posts\/2371\/revisions\/2410"}],"wp:attachment":[{"href":"https:\/\/blog.chschmid.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2371"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.chschmid.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2371"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.chschmid.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2371"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}