{"id":581,"date":"2018-11-23T05:37:20","date_gmt":"2018-11-23T13:37:20","guid":{"rendered":"http:\/\/dragonwarz.net\/?p=581"},"modified":"2019-12-06T15:34:21","modified_gmt":"2019-12-06T23:34:21","slug":"update-system-notes","status":"publish","type":"post","link":"https:\/\/dragonwarz.net\/?p=581","title":{"rendered":"Update system &#038; notes!"},"content":{"rendered":"\n<p>I have been working on a few things as of late.\u00a0 For one, notes can be saved into the sensor Database at whatever time you choose.\u00a0 This is meant to aid in putting notes beside the actual sensor data.\u00a0 I&#8217;ll be adding the notes into the graphs later, so that they will show up with the graphed sensor data, using the time you enter!\u00a0 AKA, you notice the sensor malfunctioning at a certain time, you enter a note with the same or close Date &amp; Time saying &#8220;Malfunction, ignore this&#8221; or &#8220;Very important data represents time travel&#8221;.\u00a0 Whatever helps identify what the data represents.\u00a0 It can also be used to bookmark or tag certain times with things, like manual settings for temperature offset or other important information not being captured by the sensors, etc.\u00a0 Later on, I&#8217;ll try to get it so you can &#8220;Graph by notes&#8221;, and it will graph say, 1 hour on either side of every note&#8217;s time frame, making it easy to instantly populate graphs with important data without having to search every time. I&#8217;ll be giving it more thought for sure.\u00a0<\/p>\n\n\n\n<p>Since I seem to like ordering my options in the config and sensor files, in a way that&#8217;s not great for compatibility (AKA I don&#8217;t add every new option to the bottom, I reorder the whole list).\u00a0 This is a pain, as I manually have to log in through SSH and re-adjust the sensor configuration files for the new options.\u00a0 So I had a few ideas on solving it.\u00a0 <br>1) Add the ability to change installed sensors from the control center <br>and or<br>2) Create some updated functionality to automatically make needed changes after the upgrade.\u00a0 <br>I went with the 2nd option first and made an upgrade module that adjusts any needed files and related settings, then re-saves them.\u00a0 It also uses the versioning system, so it can incrementally update from this version onwards, even if you miss a few versions along the way!\u00a0 This will make my future upgrade tests go a bit smoother!<\/p>\n\n\n\n<p>My other major upgrade was to the environmental temperature adjustments.\u00a0 Before it was a manually set option in the graph window, but this makes it annoying to swap between different sensors with different offset needs.\u00a0 So I moved the offset into the sensor itself and created different offsets for different setup combinations.\u00a0 This way it&#8217;s all automatically set by how you set your installed sensors configuration file!\u00a0 AKA it will give recommended offsets depending on what hardware is being used.\u00a0 So now you can check a &#8220;Use Default&#8221; temperature offset checkbox, and the graphs will use the offset\u00a0provided by the sensor.\u00a0 A custom offset is also available in the sensor configuration file, in case a sensor doesn&#8217;t follow standards.\u00a0 And of course you can uncheck the use default and set your own setting during graphs.\u00a0 Whatever is set on the sensor, will also be saved into the SQL database when the environmental temperature readings are saved.\u00a0\u00a0<\/p>\n\n\n\n<p>Those are the 3 main things I have been working on.\u00a0\u00a0<\/p>\n\n\n\n<p>I think I&#8217;ll re-work my re-configuration of the sensors.\u00a0 I think I can make a decent live update by pulling and pushing the text files into and out of a textbox, similar to my Log viewer and Notes window.\u00a0 If I do that, I think the program can do everything remotely!\u00a0 Between the log viewer, update module and soon to be installed sensors and config adjuster, keeping my demo and test sensors running smoothly through upgrades is starting to sound like an easier task \ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I have been working on a few things as of late.\u00a0 For one, notes can be saved into the sensor Database at whatever time you choose.\u00a0 This is meant to aid in putting notes beside the actual sensor data.\u00a0 I&#8217;ll &hellip;<\/p>\n<p class=\"read-more\"><a href=\"https:\/\/dragonwarz.net\/?p=581\">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":[25,27,26,3],"tags":[33],"class_list":["post-581","post","type-post","status-publish","format-standard","hentry","category-programming","category-project","category-python","category-random","tag-kootnet-sensors"],"_links":{"self":[{"href":"https:\/\/dragonwarz.net\/index.php?rest_route=\/wp\/v2\/posts\/581","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=581"}],"version-history":[{"count":1,"href":"https:\/\/dragonwarz.net\/index.php?rest_route=\/wp\/v2\/posts\/581\/revisions"}],"predecessor-version":[{"id":582,"href":"https:\/\/dragonwarz.net\/index.php?rest_route=\/wp\/v2\/posts\/581\/revisions\/582"}],"wp:attachment":[{"href":"https:\/\/dragonwarz.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=581"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dragonwarz.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=581"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dragonwarz.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=581"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}