{"id":2464,"date":"2022-08-31T20:16:18","date_gmt":"2022-09-01T00:16:18","guid":{"rendered":"https:\/\/matthannan.net\/blog\/?p=2464"},"modified":"2022-08-31T20:20:22","modified_gmt":"2022-09-01T00:20:22","slug":"what-i-did-on-my-mid-summer-vacation-day-5","status":"publish","type":"post","link":"https:\/\/matthannan.net\/blog\/what-i-did-on-my-mid-summer-vacation-day-5\/","title":{"rendered":"What I Did on My Mid-Summer Vacation: Day 5"},"content":{"rendered":"\n<p>Forecast for the day is a heat advisory. If we haven&#8217;t already been under one, having one today was really bad news. I took advantage of not being able to work out in the yard to get caught up on the checking account and paying the couple of bills that were sitting on my desk. Old guys have a weird sense of fun.<\/p>\n\n\n\n<p>Once this was done, I wondered what else I would do with my time, so I busted up a loveseat hide-a-bed that we moved from Attleboro to here and had it in the basement. We did not always have a dehumidifier running down there, so Jenny is convinced that it is now a gigantic mushroom. Happy wife, happy life, so I dismantled what I could with it in the basement, depositing the metal guts into the dumpster. Then, with Jenny&#8217;s help, we moved the carcass up the outside stairs to the backyard for the night.<\/p>\n\n\n\n<p>While working in the basement on that, I reminded myself that I have wanted to get the basement temperature and humidity readings from the Raspberry Pi 3B+ that is down there collecting that data for both an old school Flask web site and a more new school Grafana dashboard. What I really want is this data in Home Assistant. I had set up an ESP8266 with an DTH22 sensor on it, but this gave not the best accuracy, and was just redundant, as I already had a solution in place. I just needed to figure out how to fling this data to the Home Assistant server, which is ironically not 6 inches away from the Raspberry Pi with the better sensor on it.<\/p>\n\n\n\n<p>Ente<a href=\"https:\/\/mqtt.org\/\" target=\"_blank\" rel=\"noopener\">r MQTT<\/a>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/matthannan.net\/blog\/wp-content\/uploads\/2022\/08\/mqtt-publish-subscribe-3.png?w=640&#038;ssl=1\" alt=\"\"\/><figcaption>Image from mqtt.org. Thanks!<\/figcaption><\/figure>\n\n\n\n<p>I had good success with sending the temperature, but getting both temp and humidity sent in a single message put me straight into the &#8220;advanced&#8221; end of the pool. This caused me to relearn all about MQTT and, in particular, the <a href=\"https:\/\/pypi.org\/project\/paho-mqtt\/\" target=\"_blank\" rel=\"noopener\">paho-mqtt Python library<\/a> that I was using. Much more research was needed, but that would have to wait.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/i0.wp.com\/matthannan.net\/blog\/wp-content\/uploads\/2022\/08\/Aug3_weather.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"640\" height=\"382\" data-attachment-id=\"2467\" data-permalink=\"https:\/\/matthannan.net\/blog\/what-i-did-on-my-mid-summer-vacation-day-5\/aug3_weather\/\" data-orig-file=\"https:\/\/i0.wp.com\/matthannan.net\/blog\/wp-content\/uploads\/2022\/08\/Aug3_weather.png?fit=1645%2C982&amp;ssl=1\" data-orig-size=\"1645,982\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"Aug3_weather\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/matthannan.net\/blog\/wp-content\/uploads\/2022\/08\/Aug3_weather.png?fit=640%2C382&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/matthannan.net\/blog\/wp-content\/uploads\/2022\/08\/Aug3_weather.png?resize=640%2C382&#038;ssl=1\" alt=\"\" class=\"wp-image-2467\" srcset=\"https:\/\/i0.wp.com\/matthannan.net\/blog\/wp-content\/uploads\/2022\/08\/Aug3_weather.png?resize=1024%2C611&amp;ssl=1 1024w, https:\/\/i0.wp.com\/matthannan.net\/blog\/wp-content\/uploads\/2022\/08\/Aug3_weather.png?resize=300%2C179&amp;ssl=1 300w, https:\/\/i0.wp.com\/matthannan.net\/blog\/wp-content\/uploads\/2022\/08\/Aug3_weather.png?resize=768%2C458&amp;ssl=1 768w, https:\/\/i0.wp.com\/matthannan.net\/blog\/wp-content\/uploads\/2022\/08\/Aug3_weather.png?resize=1536%2C917&amp;ssl=1 1536w, https:\/\/i0.wp.com\/matthannan.net\/blog\/wp-content\/uploads\/2022\/08\/Aug3_weather.png?w=1645&amp;ssl=1 1645w, https:\/\/i0.wp.com\/matthannan.net\/blog\/wp-content\/uploads\/2022\/08\/Aug3_weather.png?w=1280&amp;ssl=1 1280w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p> <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Forecast for the day is a heat advisory. If we haven&#8217;t already been under one, having one today was really bad news. I took advantage of not being able to work out in the yard to get caught up on &hellip; <a href=\"https:\/\/matthannan.net\/blog\/what-i-did-on-my-mid-summer-vacation-day-5\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":2496,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[5],"tags":[638,609,651,326,653],"class_list":["post-2464","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-geek","tag-dumpster","tag-home-assistant","tag-mqtt","tag-raspberrypi","tag-summer-vacation"],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/matthannan.net\/blog\/wp-content\/uploads\/2022\/08\/mqtt-publish-subscribe-3.png?fit=1024%2C320&ssl=1","jetpack_shortlink":"https:\/\/wp.me\/p2NxlE-DK","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"jetpack-related-posts":[{"id":2450,"url":"https:\/\/matthannan.net\/blog\/what-i-did-on-my-mid-summer-vacation-day-3\/","url_meta":{"origin":2464,"position":0},"title":"What I Did on My Mid-Summer Vacation: Day 3","author":"matthannan","date":"5 August 2022","format":false,"excerpt":"If I had a late start yesterday, I was even more delayed on the third day. First, I was informed that \"the family\" had decided that they wanted ad-blocking turned back on on the pfSense firewall. I was told to turn this off several months ago. Of course, nothing is\u2026","rel":"","context":"In &quot;Geek&quot;","block_context":{"text":"Geek","link":"https:\/\/matthannan.net\/blog\/category\/geek\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/matthannan.net\/blog\/wp-content\/uploads\/2022\/08\/IMG_20220801_120145-scaled.jpg?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/matthannan.net\/blog\/wp-content\/uploads\/2022\/08\/IMG_20220801_120145-scaled.jpg?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/matthannan.net\/blog\/wp-content\/uploads\/2022\/08\/IMG_20220801_120145-scaled.jpg?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/matthannan.net\/blog\/wp-content\/uploads\/2022\/08\/IMG_20220801_120145-scaled.jpg?resize=700%2C400&ssl=1 2x, https:\/\/i0.wp.com\/matthannan.net\/blog\/wp-content\/uploads\/2022\/08\/IMG_20220801_120145-scaled.jpg?resize=1050%2C600&ssl=1 3x, https:\/\/i0.wp.com\/matthannan.net\/blog\/wp-content\/uploads\/2022\/08\/IMG_20220801_120145-scaled.jpg?resize=1400%2C800&ssl=1 4x"},"classes":[]},{"id":1814,"url":"https:\/\/matthannan.net\/blog\/build-a-raspberry-pi-webcam-server-in-minutes\/","url_meta":{"origin":2464,"position":1},"title":"Build a Raspberry Pi Webcam Server in Minutes","author":"matthannan","date":"9 May 2020","format":false,"excerpt":"I have this up and running with the official Pi NoIR v2.1 camera module. I purchased it from these guys, as Bezos has enough money already. This camera will soon be moved to the basement Pi to try and revive the OpenCV oil tank monitor project. That will free up\u2026","rel":"","context":"In &quot;Geek&quot;","block_context":{"text":"Geek","link":"https:\/\/matthannan.net\/blog\/category\/geek\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/matthannan.net\/blog\/wp-content\/uploads\/2020\/05\/noIR.png?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/matthannan.net\/blog\/wp-content\/uploads\/2020\/05\/noIR.png?resize=350%2C200 1x, https:\/\/i0.wp.com\/matthannan.net\/blog\/wp-content\/uploads\/2020\/05\/noIR.png?resize=525%2C300 1.5x"},"classes":[]},{"id":2567,"url":"https:\/\/matthannan.net\/blog\/summer-vacation-2023\/","url_meta":{"origin":2464,"position":2},"title":"Summer Vacation 2023","author":"matthannan","date":"19 May 2023","format":false,"excerpt":"Legoland in Upstate New York. Definitely a good time. The park was much larger than expected, and it is built on the side of a mountain, so it was easy getting to the lower level early in the day, but oh so rough coming back up at the end! By\u2026","rel":"","context":"In &quot;Life&quot;","block_context":{"text":"Life","link":"https:\/\/matthannan.net\/blog\/category\/life\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/matthannan.net\/blog\/wp-content\/uploads\/2023\/05\/IMG_20230518_115714-scaled.jpg?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/matthannan.net\/blog\/wp-content\/uploads\/2023\/05\/IMG_20230518_115714-scaled.jpg?resize=350%2C200 1x, https:\/\/i0.wp.com\/matthannan.net\/blog\/wp-content\/uploads\/2023\/05\/IMG_20230518_115714-scaled.jpg?resize=525%2C300 1.5x, https:\/\/i0.wp.com\/matthannan.net\/blog\/wp-content\/uploads\/2023\/05\/IMG_20230518_115714-scaled.jpg?resize=700%2C400 2x, https:\/\/i0.wp.com\/matthannan.net\/blog\/wp-content\/uploads\/2023\/05\/IMG_20230518_115714-scaled.jpg?resize=1050%2C600 3x, https:\/\/i0.wp.com\/matthannan.net\/blog\/wp-content\/uploads\/2023\/05\/IMG_20230518_115714-scaled.jpg?resize=1400%2C800 4x"},"classes":[]},{"id":90,"url":"https:\/\/matthannan.net\/blog\/weekend-house-work\/","url_meta":{"origin":2464,"position":3},"title":"Weekend House Work","author":"matthannan","date":"24 January 2011","format":false,"excerpt":"Last weekend I installed the sheetrock on some framing I installed at the bottom of the basement stairs. Hate to admit it, but T@# was right. There is not a damn thing that is square or level in this house! Not stopping at that, I started 'rocking up sections of\u2026","rel":"","context":"In &quot;Life&quot;","block_context":{"text":"Life","link":"https:\/\/matthannan.net\/blog\/category\/life\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2438,"url":"https:\/\/matthannan.net\/blog\/what-i-did-on-my-mid-summer-vacation-day-2\/","url_meta":{"origin":2464,"position":4},"title":"What I Did on My Mid-Summer Vacation: Day 2","author":"matthannan","date":"5 August 2022","format":false,"excerpt":"Definitely feeling my age, I got started on Day 2. The day's goal was to clear the platform and assess the leveling situation. Stretch goal was to get the three 4\" x 4\" x 12' pressure-treated beams on site. Of course, there were delays in getting out in the cool\u2026","rel":"","context":"In &quot;Life&quot;","block_context":{"text":"Life","link":"https:\/\/matthannan.net\/blog\/category\/life\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/matthannan.net\/blog\/wp-content\/uploads\/2022\/08\/IMG_20220730_172837-1-scaled.jpg?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/matthannan.net\/blog\/wp-content\/uploads\/2022\/08\/IMG_20220730_172837-1-scaled.jpg?resize=350%2C200 1x, https:\/\/i0.wp.com\/matthannan.net\/blog\/wp-content\/uploads\/2022\/08\/IMG_20220730_172837-1-scaled.jpg?resize=525%2C300 1.5x, https:\/\/i0.wp.com\/matthannan.net\/blog\/wp-content\/uploads\/2022\/08\/IMG_20220730_172837-1-scaled.jpg?resize=700%2C400 2x, https:\/\/i0.wp.com\/matthannan.net\/blog\/wp-content\/uploads\/2022\/08\/IMG_20220730_172837-1-scaled.jpg?resize=1050%2C600 3x, https:\/\/i0.wp.com\/matthannan.net\/blog\/wp-content\/uploads\/2022\/08\/IMG_20220730_172837-1-scaled.jpg?resize=1400%2C800 4x"},"classes":[]},{"id":92,"url":"https:\/\/matthannan.net\/blog\/fun-at-home-depot-and-finding-cthulhu-sleeping-in-the-basement-window\/","url_meta":{"origin":2464,"position":5},"title":"Fun at Home Depot and finding Cthulhu dreaming in the basement window","author":"matthannan","date":"1 February 2011","format":false,"excerpt":"After a week away, I came back to the door and rehung the latch side. It is not 100%, but I am much happier with it. It closes. I then sealed off the kitteh excape root and called for my test subject to be released into the room. 15 minutes\u2026","rel":"","context":"In &quot;Life&quot;","block_context":{"text":"Life","link":"https:\/\/matthannan.net\/blog\/category\/life\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/matthannan.net\/blog\/wp-json\/wp\/v2\/posts\/2464","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/matthannan.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/matthannan.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/matthannan.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/matthannan.net\/blog\/wp-json\/wp\/v2\/comments?post=2464"}],"version-history":[{"count":6,"href":"https:\/\/matthannan.net\/blog\/wp-json\/wp\/v2\/posts\/2464\/revisions"}],"predecessor-version":[{"id":2498,"href":"https:\/\/matthannan.net\/blog\/wp-json\/wp\/v2\/posts\/2464\/revisions\/2498"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/matthannan.net\/blog\/wp-json\/wp\/v2\/media\/2496"}],"wp:attachment":[{"href":"https:\/\/matthannan.net\/blog\/wp-json\/wp\/v2\/media?parent=2464"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/matthannan.net\/blog\/wp-json\/wp\/v2\/categories?post=2464"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/matthannan.net\/blog\/wp-json\/wp\/v2\/tags?post=2464"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}