{"id":221,"date":"2018-08-04T23:41:07","date_gmt":"2018-08-05T06:41:07","guid":{"rendered":"http:\/\/dragonwarz.net\/?p=221"},"modified":"2018-08-12T19:20:54","modified_gmt":"2018-08-13T02:20:54","slug":"more-updates","status":"publish","type":"post","link":"https:\/\/dragonwarz.net\/?p=221","title":{"rendered":"More updates!"},"content":{"rendered":"<p>So I mentioned last post I was probaby going to use a pre-made HTML generator, but turns out I can get my own to work without too much trouble.&nbsp; I now have it building the HTML file on the fly, by only adding sensors that check as online.&nbsp;&nbsp;<\/p>\n<p>Here&#39;s a few screen shots of the changes.<\/p>\n<p>This first one shows the HTML page dynamically made in the background.&nbsp; It groups them in 3 per row and basically unlimited columns.&nbsp; I re-designed the PC app, in order to allow more sensors, and let the HTML page + Graphs handle the data.&nbsp; When you &quot;Check Online Status&quot; of sensors, it auto unchecks any that are found to be offline, so you don&#39;t have to wait a long time for all the sensors to timeout in later operations.&nbsp; I have also set the timeout to 2 seconds when checking sensors.&nbsp;&nbsp;<\/p>\n<p><a href=\"http:\/\/dragonwarz.net\/wp-content\/uploads\/2018\/08\/Web_and_App-1.png\" rel=\"\" style=\"\" target=\"_blank\" title=\"\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" class=\"aligncenter size-full wp-image-222\" height=\"731\" src=\"http:\/\/dragonwarz.net\/wp-content\/uploads\/2018\/08\/Web_and_App-1.png\" style=\"\" title=\"\" width=\"899\" srcset=\"https:\/\/dragonwarz.net\/wp-content\/uploads\/2018\/08\/Web_and_App-1.png 899w, https:\/\/dragonwarz.net\/wp-content\/uploads\/2018\/08\/Web_and_App-1-300x244.png 300w, https:\/\/dragonwarz.net\/wp-content\/uploads\/2018\/08\/Web_and_App-1-768x624.png 768w\" sizes=\"auto, (max-width: 899px) 100vw, 899px\" \/><\/a><\/p>\n<p>I&#39;m using plotly for plotting now, and its SOO nice!&nbsp; As you can see above, you can select the timeframe and how many data recordings to skip before plotting (It asks to open a sqlite3 database file, which you download off the senors).&nbsp; This allows for flexible viewing for both details and timeframes.&nbsp; Thanks to plotly, this all looks super nice too!&nbsp; Through plotly, the graph is actually a HTML page, of which you can do other tasks like save it as a pic, upload to their online editor and more!&nbsp;&nbsp;<\/p>\n<p><a href=\"http:\/\/dragonwarz.net\/wp-content\/uploads\/2018\/08\/newplot.png\" rel=\"\" style=\"\" target=\"_blank\" title=\"\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" class=\"aligncenter size-large wp-image-223\" height=\"399\" src=\"http:\/\/dragonwarz.net\/wp-content\/uploads\/2018\/08\/newplot.png\" style=\"\" title=\"\" width=\"620\" srcset=\"https:\/\/dragonwarz.net\/wp-content\/uploads\/2018\/08\/newplot.png 700w, https:\/\/dragonwarz.net\/wp-content\/uploads\/2018\/08\/newplot-300x193.png 300w\" sizes=\"auto, (max-width: 620px) 100vw, 620px\" \/><\/a><\/p>\n<p>There are some other things updated too, but this is the main stuff.&nbsp; I&#39;ll probably prioritize attaching a air quality sensor to the hardware now, as its been REALLY smokey out here the past 3 years or so due to soo many forest fires.&nbsp; I hope to see just how bad the air is during these times and others.&nbsp;&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>So I mentioned last post I was probaby going to use a pre-made HTML generator, but turns out I can get my own to work without too much trouble.&nbsp; I now have it building the HTML file on the fly, &hellip;<\/p>\n<p class=\"read-more\"><a href=\"https:\/\/dragonwarz.net\/?p=221\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26,3],"tags":[],"class_list":["post-221","post","type-post","status-publish","format-standard","hentry","category-python","category-random"],"_links":{"self":[{"href":"https:\/\/dragonwarz.net\/index.php?rest_route=\/wp\/v2\/posts\/221","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dragonwarz.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dragonwarz.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dragonwarz.net\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/dragonwarz.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=221"}],"version-history":[{"count":5,"href":"https:\/\/dragonwarz.net\/index.php?rest_route=\/wp\/v2\/posts\/221\/revisions"}],"predecessor-version":[{"id":228,"href":"https:\/\/dragonwarz.net\/index.php?rest_route=\/wp\/v2\/posts\/221\/revisions\/228"}],"wp:attachment":[{"href":"https:\/\/dragonwarz.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=221"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dragonwarz.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=221"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dragonwarz.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=221"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}