{"id":578,"date":"2018-11-18T20:53:58","date_gmt":"2018-11-19T04:53:58","guid":{"rendered":"http:\/\/dragonwarz.net\/?p=578"},"modified":"2018-11-18T20:53:58","modified_gmt":"2018-11-19T04:53:58","slug":"nicer-touches","status":"publish","type":"post","link":"https:\/\/dragonwarz.net\/?p=578","title":{"rendered":"Nicer touches"},"content":{"rendered":"\n<p>I have re-visited my Sensor Readings Report code and changed it to create all the readings in a table for lining up.\u00a0 I also put each sensor into its own bordered box to help separate sensors.\u00a0 While I was doing that, I figured out how to get multiple packets of data with sockets.\u00a0 Before, all my data was under 4096 bytes, except for my logs, which I only needed the end of anyway.\u00a0 However, I can now get a bit more of the logs and ensure data is properly received. I had some trunicated errors doing Reading reports randomly before and it caused the socket to\u00a0die, requiring a timeout.\u00a0 Now it functions as intended and no delay in restarting occurs.\u00a0 I also added the ability for the socket to be rebonded right away if the application is terminated unexpectedly.\u00a0 This should speed up Sensor Command restarts after remote upgrades.\u00a0 \u00a0<\/p>\n\n\n\n<p>I have now set up a Pi + Goal Zero Sherpa 50 with a solar panel keeping it charged in the window.\u00a0 This should give me a good idea if it will work as a self-sustaining power system for off the grid sensors.\u00a0 I&#8217;m told windows can block\u00a0a lot of sun rays, making solar charging less efficient, so if it works there, it will work even better outside.\u00a0 I still have to figure out how to keep the snow off the solar, but I do have an idea&#8230; angled setups and mirrors would probably allow it.\u00a0 Multiple mirrors set up in different spots could also help with &#8220;temporary intensive charging&#8221;, to help give it a boost at certain times, which could help during long dark periods&#8230; I&#8217;m just not sure how long they will be effective before I have to adjust the positions of the mirrors, due to sun path changes through the seasons.\u00a0\u00a0<\/p>\n\n\n\n<p>Feeling pretty good about the progress again.\u00a0 It was nice to take a bit of a break, but I would like to try and do at least a bit of programing every 2nd day to maintain forward momentum.\u00a0\u00a0<\/p>\n\n\n\n<p>Hope everyone had a great weekend!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I have re-visited my Sensor Readings Report code and changed it to create all the readings in a table for lining up.\u00a0 I also put each sensor into its own bordered box to help separate sensors.\u00a0 While I was doing &hellip;<\/p>\n<p class=\"read-more\"><a href=\"https:\/\/dragonwarz.net\/?p=578\">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-578","post","type-post","status-publish","format-standard","hentry","category-random"],"_links":{"self":[{"href":"https:\/\/dragonwarz.net\/index.php?rest_route=\/wp\/v2\/posts\/578","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=578"}],"version-history":[{"count":1,"href":"https:\/\/dragonwarz.net\/index.php?rest_route=\/wp\/v2\/posts\/578\/revisions"}],"predecessor-version":[{"id":579,"href":"https:\/\/dragonwarz.net\/index.php?rest_route=\/wp\/v2\/posts\/578\/revisions\/579"}],"wp:attachment":[{"href":"https:\/\/dragonwarz.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=578"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dragonwarz.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=578"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dragonwarz.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=578"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}