{"id":265,"date":"2018-08-15T15:52:58","date_gmt":"2018-08-15T22:52:58","guid":{"rendered":"http:\/\/dragonwarz.net\/?p=265"},"modified":"2018-08-15T15:52:58","modified_gmt":"2018-08-15T22:52:58","slug":"enhancements-plans-changelog","status":"publish","type":"post","link":"https:\/\/dragonwarz.net\/?p=265","title":{"rendered":"Enhancements \/ Plans \/ ChangeLog"},"content":{"rendered":"<p>Since I do lots of testing on the fly with multiple sensors, I thought it was about time to add some functionality to the program around sensor control.&nbsp;&nbsp;<\/p>\n<p>Up until now, I have used SSH for 90% of my sensor interaction, but there is really only 2 things I do a lot of&#8230; Update the programs and reboot the sensor.&nbsp; So to that end, I have added a &quot;Sensor Commands&quot; section to allow just that and more.&nbsp; Essentially, you check the sensor(&#39;s) you want to do something with&nbsp;in the main window, than click a command button like upgrade, reboot or&nbsp;shutdown.&nbsp; It will send the command to all selected sensors.&nbsp;&nbsp;<\/p>\n<p>I added a SMB update (Windows shares) and a Online HTTP update (allows upgrading remote sensors with internet access).&nbsp; I added a checkbox for the shutdown, so I don&#39;t accidently click it during quick testing.<\/p>\n<p><a href=\"http:\/\/dragonwarz.net\/wp-content\/uploads\/2018\/08\/Sensors0.0.1.png\" rel=\"\" style=\"\" target=\"_blank\" title=\"\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" class=\"aligncenter size-full wp-image-266\" height=\"771\" src=\"http:\/\/dragonwarz.net\/wp-content\/uploads\/2018\/08\/Sensors0.0.1.png\" style=\"\" title=\"\" width=\"842\" srcset=\"https:\/\/dragonwarz.net\/wp-content\/uploads\/2018\/08\/Sensors0.0.1.png 842w, https:\/\/dragonwarz.net\/wp-content\/uploads\/2018\/08\/Sensors0.0.1-300x275.png 300w, https:\/\/dragonwarz.net\/wp-content\/uploads\/2018\/08\/Sensors0.0.1-768x703.png 768w\" sizes=\"auto, (max-width: 842px) 100vw, 842px\" \/><\/a><\/p>\n<p>I have also created a Windows Installer for the program, which includes a install of python 3.7 with the required libraries.&nbsp; I originally just created a single .exe using pyinstaller, but Plotly didn&#39;t seem to like working with it, so I thought the next best thing was to just make the install easy.&nbsp; It also runs much faster this way!&nbsp;&nbsp;<\/p>\n<p>Some of the things I hope to add in the near future include.<\/p>\n<ul>\n<li>Put&nbsp;phpSysInfo on Sensors, using lighttpd server for system diagnostic Information<\/li>\n<li>Update output files to local user desktop<\/li>\n<li>Improve Graph outputs and Options at generation<\/li>\n<li>Have update script terminate programs at the end, so the updated versions&nbsp;can start with improved crontab autostart<\/li>\n<li>Improve Install scripts for ease of use\n<ul>\n<li>Ask and auto set Hostname, IP, Wifi, etc<\/li>\n<\/ul>\n<\/li>\n<li>Have program write config to file, and load it on boot to Include\n<ul>\n<li>IP List for Sensors<\/li>\n<li>Default Date ranges in Graphs<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>I spent some time going over the back end code, and thought it best to merge a few things.&nbsp; So here&#39;s yet another changelog.<\/p>\n<p><u><strong>ChangeLog Aug 15th, 2018<\/strong><\/u><\/p>\n<ul>\n<li>Merged 2 .py programs into one for socket communication\n<ul>\n<li>Merged the live sensor data send with general socket commands<\/li>\n<\/ul>\n<\/li>\n<li>Improved logging<\/li>\n<li>Added Time corrections to Motion Graph (timezone)<\/li>\n<li>added Sensor command &quot;Terminate Sensor Programs&quot;<\/li>\n<li>Changed Auto Start method from rc.local to crontab scripts.&nbsp;&nbsp;\n<ul>\n<li>Auto runs script every 1 min<\/li>\n<li>The script checks to see if the program is running\n<ul>\n<li>If not running, start it<\/li>\n<li>If running, do nothing<\/li>\n<li>Allows crash recovery and applying remote updates without restarting the unit<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li>Updated E-Ink Controller with Static IP&nbsp;\n<ul>\n<li>Updated E-Ink &amp; Sensor update scripts to match new IP<\/li>\n<\/ul>\n<\/li>\n<li>Updated Motion Database to save IP&nbsp;for better graph Sensor Identification&nbsp;<\/li>\n<li>(35% done) Started creating a Database &quot;Splitter \/ Merger \/ Updater&quot; program to allow\n<ul>\n<li>Modifications of old databases to newer models or merging&nbsp;with additional fields&nbsp;<\/li>\n<li>Split databases for Later analysis or archiving (X timeframe is in Y location, take just that timeframe and store in new database for later access).&nbsp;<\/li>\n<\/ul>\n<\/li>\n<li>Updated &#39;Update&nbsp;scripts&#39;&nbsp;\n<ul>\n<li>Improved Speed (less network copies)<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Since I do lots of testing on the fly with multiple sensors, I thought it was about time to add some functionality to the program around sensor control.&nbsp;&nbsp; Up until now, I have used SSH for 90% of my sensor &hellip;<\/p>\n<p class=\"read-more\"><a href=\"https:\/\/dragonwarz.net\/?p=265\">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":[],"class_list":["post-265","post","type-post","status-publish","format-standard","hentry","category-programming","category-project","category-python","category-random"],"_links":{"self":[{"href":"https:\/\/dragonwarz.net\/index.php?rest_route=\/wp\/v2\/posts\/265","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=265"}],"version-history":[{"count":10,"href":"https:\/\/dragonwarz.net\/index.php?rest_route=\/wp\/v2\/posts\/265\/revisions"}],"predecessor-version":[{"id":279,"href":"https:\/\/dragonwarz.net\/index.php?rest_route=\/wp\/v2\/posts\/265\/revisions\/279"}],"wp:attachment":[{"href":"https:\/\/dragonwarz.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=265"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dragonwarz.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=265"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dragonwarz.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=265"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}