{"id":5888,"date":"2018-01-12T15:53:56","date_gmt":"2018-01-12T23:53:56","guid":{"rendered":"https:\/\/www.bigtreestech.com\/wp2013\/?p=5888"},"modified":"2018-01-13T12:43:47","modified_gmt":"2018-01-13T20:43:47","slug":"getting-close-2","status":"publish","type":"post","link":"https:\/\/www.bigtreestech.com\/wp2013\/getting-close-2\/","title":{"rendered":"Getting Close!"},"content":{"rendered":"<p>I started the morning writing a test script and starting the debug process which I expected to go quickly.\u00a0 About 4 hours later I had the software working the way I expected it to run.\u00a0 Most of the problems I encountered stemmed from my very rusty familiarity with the Python language and its use.<\/p>\n<p>For anyone out there thinking about building one of these contraptions, bear in mind that the MaxSonarTTY.py file is intended to be imported, not run as a stand alone script.\u00a0 It contains the function &#8220;measure(portName)&#8221; that does all the heavy lifting and returns a measurement from the sensor.\u00a0 The trouble that I ran into (silly me) was mostly because initially I was trying to call MaxSonarTTY directly through pysftp rather than calling a script that actually used the measure function correctly.<\/p>\n<div id=\"attachment_5889\" style=\"width: 1034px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/www.bigtreestech.com\/wp2013\/wp-content\/uploads\/2018\/01\/ptzcamB1.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-5889\" class=\"wp-image-5889 size-large\" src=\"https:\/\/www.bigtreestech.com\/wp2013\/wp-content\/uploads\/2018\/01\/ptzcamB1-1024x768.jpg\" alt=\"\" width=\"1024\" height=\"768\" srcset=\"https:\/\/www.bigtreestech.com\/wp2013\/wp-content\/uploads\/2018\/01\/ptzcamB1-1024x768.jpg 1024w, https:\/\/www.bigtreestech.com\/wp2013\/wp-content\/uploads\/2018\/01\/ptzcamB1-300x225.jpg 300w, https:\/\/www.bigtreestech.com\/wp2013\/wp-content\/uploads\/2018\/01\/ptzcamB1-768x576.jpg 768w, https:\/\/www.bigtreestech.com\/wp2013\/wp-content\/uploads\/2018\/01\/ptzcamB1-400x300.jpg 400w, https:\/\/www.bigtreestech.com\/wp2013\/wp-content\/uploads\/2018\/01\/ptzcamB1-150x113.jpg 150w, https:\/\/www.bigtreestech.com\/wp2013\/wp-content\/uploads\/2018\/01\/ptzcamB1-500x375.jpg 500w, https:\/\/www.bigtreestech.com\/wp2013\/wp-content\/uploads\/2018\/01\/ptzcamB1.jpg 1280w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><p id=\"caption-attachment-5889\" class=\"wp-caption-text\">Me scoping out where to mount the snow depth sensor.<\/p><\/div>\n<p>The next step will be to install the new service into the WeeWX program that I use for the current weather station data and hopefully start collecting real snow depth data before snow actually comes our way.\u00a0 To do that I have run a direct bury Ethernet cable from inside where the snow measurement Raspberry Pi is located out to the snow pole.\u00a0 Tomorrow I plan on building the mount, soldering up the sensor to the outside end of the cable, and begin testing with whole &#8220;real&#8221; setup.<\/p>\n<p>I am waiting on a couple answers regarding the service installation before I proceed with that.\u00a0 If\u00a0 all goes well, I hope to have the service up and running by the end of the weekend.\u00a0 To start with, once I&#8217;m satisfied that things are working, I will probably create a new menu item on the BigTreesTech home page much like the Detailed Weather Information that I added recently.\u00a0 Eventually I hope to have the snow measurement data presented right along with all the other weather data.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I started the morning writing a test script and starting the debug process which I expected to go quickly.\u00a0 About 4 hours later I had the software working the way I expected it to run.\u00a0 Most of the problems I &hellip; <a class=\"more-link\" href=\"https:\/\/www.bigtreestech.com\/wp2013\/getting-close-2\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"footnotes":""},"categories":[259],"tags":[],"class_list":["post-5888","post","type-post","status-publish","format-standard","hentry","category-snow-depth-project"],"_links":{"self":[{"href":"https:\/\/www.bigtreestech.com\/wp2013\/wp-json\/wp\/v2\/posts\/5888","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bigtreestech.com\/wp2013\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bigtreestech.com\/wp2013\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bigtreestech.com\/wp2013\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bigtreestech.com\/wp2013\/wp-json\/wp\/v2\/comments?post=5888"}],"version-history":[{"count":1,"href":"https:\/\/www.bigtreestech.com\/wp2013\/wp-json\/wp\/v2\/posts\/5888\/revisions"}],"predecessor-version":[{"id":5890,"href":"https:\/\/www.bigtreestech.com\/wp2013\/wp-json\/wp\/v2\/posts\/5888\/revisions\/5890"}],"wp:attachment":[{"href":"https:\/\/www.bigtreestech.com\/wp2013\/wp-json\/wp\/v2\/media?parent=5888"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bigtreestech.com\/wp2013\/wp-json\/wp\/v2\/categories?post=5888"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bigtreestech.com\/wp2013\/wp-json\/wp\/v2\/tags?post=5888"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}