{"id":556,"date":"2018-10-29T09:40:00","date_gmt":"2018-10-29T16:40:00","guid":{"rendered":"http:\/\/dragonwarz.net\/?p=556"},"modified":"2018-10-29T09:40:00","modified_gmt":"2018-10-29T16:40:00","slug":"remote-log-viewer-more-threading","status":"publish","type":"post","link":"https:\/\/dragonwarz.net\/?p=556","title":{"rendered":"Remote Log Viewer &#038; more Threading!"},"content":{"rendered":"\n<p>I got a remote sensor log viewer up and running, so you can live view the tail end of a log for individual sensors, or download all logs off all selected sensors and review them later.<\/p>\n\n\n\n<p>I have also added threading to all HTTP downloads (logs + Databases) and Reports.\u00a0 Reports generate a lot faster now!\u00a0 I also made a minor change to HTTP downloading, which places the end IP oct at the start of the file for easier sensor identification on files.<\/p>\n\n\n\n<p>Many parts of the programs are looking better and better, but there are some, like the network commands code, that just looks&#8230; lacking.\u00a0 I have off and on been thinking about how to re-work my 30 or so &#8216;if + elif&#8217; statements to check what command to run.\u00a0 There must be a way to objectify the code, so it doesn&#8217;t look like a run on sentence&#8230; nothings coming to mind though, but then again, I haven&#8217;t eaten this morning yet&#8230; so maybe I&#8217;ll do that and re-think it over.\u00a0<\/p>\n\n\n\n<p>I should really start working on the help file for the Control Center, since its starting to stabilize and there are enough core features I can document.\u00a0 I would like to find a decent template file to use for my help files, since my versions are&#8230; also lacking.\u00a0 That being said, they do get needed information across, in a non overwhelming way, they could just use a bit more &#8220;zing&#8221;.\u00a0\u00a0<\/p>\n\n\n\n<p>On the learning side of things, I&#8217;m pretty happy with progress.\u00a0 I have learned a LOT of programing concepts and python libraries over a decently short amount of time.\u00a0 As I go, and re-use some of those library and programing concepts, things just seem more &#8220;obvious&#8221; in how it all works together. When I first start on something new, I often pause on how to work it into my existing code, but once it&#8217;s there, it seems soo much easier re integrate into other sections.\u00a0 After the 3rd or so time, I then start seeing how to refactor the code to be shorter, more obvious in function or more effective.\u00a0\u00a0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I got a remote sensor log viewer up and running, so you can live view the tail end of a log for individual sensors, or download all logs off all selected sensors and review them later. I have also added &hellip;<\/p>\n<p class=\"read-more\"><a href=\"https:\/\/dragonwarz.net\/?p=556\">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":[3],"tags":[],"class_list":["post-556","post","type-post","status-publish","format-standard","hentry","category-random"],"_links":{"self":[{"href":"https:\/\/dragonwarz.net\/index.php?rest_route=\/wp\/v2\/posts\/556","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=556"}],"version-history":[{"count":1,"href":"https:\/\/dragonwarz.net\/index.php?rest_route=\/wp\/v2\/posts\/556\/revisions"}],"predecessor-version":[{"id":558,"href":"https:\/\/dragonwarz.net\/index.php?rest_route=\/wp\/v2\/posts\/556\/revisions\/558"}],"wp:attachment":[{"href":"https:\/\/dragonwarz.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=556"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dragonwarz.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=556"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dragonwarz.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=556"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}