{"id":810,"date":"2019-12-04T13:01:15","date_gmt":"2019-12-04T21:01:15","guid":{"rendered":"http:\/\/dragonwarz.net\/?p=810"},"modified":"2019-12-06T15:30:32","modified_gmt":"2019-12-06T23:30:32","slug":"kootnet-sensors-update","status":"publish","type":"post","link":"https:\/\/dragonwarz.net\/?p=810","title":{"rendered":"Kootnet Sensors Update"},"content":{"rendered":"\n<p>Now that Kootnet Network Testers are working well, I thought it was time to do a bit more on my Sensor Project.  <\/p>\n\n\n\n<p>I have started to integrate a version of each hardware sensor driver (the pip modules) into my program directly.  The major reason for this, is I have already had 2 sensors change their functions in a way I had to fix my program to use it.  This creates real problems because previous sensors don&#8217;t auto-update their drivers and conflicts start to arrive where it&#8217;s working on one but not another.  I&#8217;m hoping I won&#8217;t have issues between the Pi Zero and the Pi3\/4 due to the arm hardware differences.  I&#8217;ll be sure to test it on all models before release, but so far the only one I am having any real issues with is the Enviro+.  All the others have been entirely drop-in replacements.   I think I have 4 sensors left to add drivers for, plus the Enviro+ I have to fix.  <br>I&#8217;m happy to say that all the drivers so far have added up to about 500 Kbytes.  So my installer is currently sitting at 1.5 Mbytes.  <\/p>\n\n\n\n<p>This change will also make the install much faster, as pip is not exactly a speed demon for downloading and install modules.  I&#8217;m also considering adding other dependencies to the installer to make sure it will work, regardless of what happens with the dependencies own projects and even pip itself.  But I&#8217;m also concerned about security with modules like Flask and the gevent since they are the internet-facing modules that you want to be patched and up to date. For now, I&#8217;ll most likely keep Flask and gevent as a pip install at the time of install, however that may change in the future&#8230; in fact, I suppose I could include the modules but then add a script to download the new version and copy it over the old one and restart the program&#8230; yeah that would probably work.  I could even add an auto-update option for those modules at set intervals but disable it by default in case of issues introduced&#8230; actually&#8230; I can even have it update the module at the time of install.  <\/p>\n\n\n\n<p>Anywho, that&#8217;s what I&#8217;m working on now and once done, should improve consistent stability. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Now that Kootnet Network Testers are working well, I thought it was time to do a bit more on my Sensor Project. I have started to integrate a version of each hardware sensor driver (the pip modules) into my program &hellip;<\/p>\n<p class=\"read-more\"><a href=\"https:\/\/dragonwarz.net\/?p=810\">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-810","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\/810","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=810"}],"version-history":[{"count":3,"href":"https:\/\/dragonwarz.net\/index.php?rest_route=\/wp\/v2\/posts\/810\/revisions"}],"predecessor-version":[{"id":813,"href":"https:\/\/dragonwarz.net\/index.php?rest_route=\/wp\/v2\/posts\/810\/revisions\/813"}],"wp:attachment":[{"href":"https:\/\/dragonwarz.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=810"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dragonwarz.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=810"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dragonwarz.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=810"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}