<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Posts on AndyHacks</title><link>https://www.andyhacks.com/posts/</link><description>Recent content in Posts on AndyHacks</description><generator>Hugo</generator><language>en</language><lastBuildDate>Sun, 17 Sep 2023 21:26:12 +0000</lastBuildDate><atom:link href="https://www.andyhacks.com/posts/feed.xml" rel="self" type="application/rss+xml"/><item><title>Being a Beginner: Running your first Half Marathon</title><link>https://www.andyhacks.com/2023/09/17/being-a-beginner-running-your-first-half-marathon/</link><pubDate>Sun, 17 Sep 2023 21:26:12 +0000</pubDate><guid isPermaLink="false">https://andyhacks.com/?p=3168</guid><description>&lt;p>In March 2023 I ran the Cambridge Half Marathon. It was my first half marathon. I wanted to do something worthwhile and that was bigger than myself. I raised almost £1000 for Mind in the process, and also improved my mental health by having a non-work goal to strive for.&lt;/p>
&lt;p>I&amp;rsquo;m still firmly middle-to-back of the pack when it comes to racing, but I did beat my own goal by achieving a time of 1 hour, 47 minutes, and 48 seconds (my target was to beat 1:55:00).&lt;/p></description></item><item><title>Smart under-cupboard kitchen lighting</title><link>https://www.andyhacks.com/2021/10/07/smart-under-cupboard-kitchen-lighting/</link><pubDate>Thu, 07 Oct 2021 22:43:52 +0000</pubDate><guid isPermaLink="false">https://hackingathome.wordpress.com/?p=2857</guid><description>&lt;p>Our kitchen is almost 10 years old now. When we first had it designed and installed, I totally underestimated how important good task lighting was, but thankfully the designer knew better and included a set of under-cabinet lights to illuminate the work surfaces. The lamps in these faded, were replaced and the replacements starting failing, so now it&amp;rsquo;s time to take on installing some nice smart lighting to make things even more functional.&lt;/p></description></item><item><title>Everything you need to know about integrating Google Sign-in with your Web App</title><link>https://www.andyhacks.com/2020/04/25/everything-you-need-to-know-about-google-sign-in-for-web-apps/</link><pubDate>Sat, 25 Apr 2020 14:52:14 +0000</pubDate><guid isPermaLink="false">https://hackingathome.wordpress.com/?p=2688</guid><description>&lt;p>Investigating Google Sign-In led me down a rabbit hole of trying to understand authentication with Google, how it fits with standards such as OpenID Connect (OIDC) and OAuth 2.0, and how best to integrate it into a web app that has a JavaScript frontend and backend API.  This article is the result of that research.&lt;/p>
&lt;p>On the face of it, integrating with Google Sign-In is trivial: there&amp;rsquo;s a &lt;a href="https://developers.google.com/identity/sign-in/web">Google page that tells you how to do it&lt;/a>.  But I believe in understanding the tools you&amp;rsquo;re using rather than just pasting code from random websites, especially when it comes to security-related functions.  I wanted to understand what was happening under the hood and be sure that I wasn&amp;rsquo;t inadvertently introducing security holes into my app.  So I created a simple sample app that has just enough function to demonstrate how to safely integrate sign-in to your app.&lt;/p></description></item><item><title>Heating season 2019 is here!</title><link>https://www.andyhacks.com/2019/12/27/heating-season-2019-is-here/</link><pubDate>Fri, 27 Dec 2019 22:54:58 +0000</pubDate><guid isPermaLink="false">https://hackingathome.wordpress.com/?p=2629</guid><description>&lt;p>Having just got back from a holiday in Switzerland (which was awesome) we got home to a slightly chilly house, and so turned the heating back on.  Although I&amp;rsquo;ve not posted here for a while, work has continued over on the Github repository for Boiler.io and there are a few new features that I&amp;rsquo;ve added that are worth mentioning.  I&amp;rsquo;ve also replaced the crusty jQuery-based UI with a nice React application.  It&amp;rsquo;d be great to hear from you if you&amp;rsquo;re interested in running open source heating software.&lt;/p></description></item><item><title>Getting Started with Z-Wave</title><link>https://www.andyhacks.com/2017/12/30/getting-started-with-z-wave/</link><pubDate>Sat, 30 Dec 2017 22:11:41 +0000</pubDate><guid isPermaLink="false">https://hackingathome.wordpress.com/?p=2317</guid><description>&lt;figure>
&lt;img loading="lazy" src="https://www.andyhacks.com/wp-content/uploads/2017/12/emon%5Fand%5Fzwave.jpg?w=1024"
alt="emon\_and\_zwave" width="1024"/> &lt;figcaption>
&lt;p>emon_and_zwave&lt;/p>
&lt;/figcaption>
&lt;/figure>
&lt;p>Having recently acquired a couple of &lt;a href="http://amzn.to/2CgnUQy">Aeotec MultiSensor 6&lt;/a> devices, I decided to investigate how to make them easy to use via MQTT so I could use them from &lt;a href="https://github.com/adpeace/boilerio">BoilerIO&lt;/a> (my IoT heating control) and EmonCMS (the energy/home monitoring system from &lt;a href="https://openenergymonitor.org/">OpenEnergyMonitor.org&lt;/a>).&lt;/p>
&lt;p>In this article I present the beginnings of a Z-Wave to MQTT bridge as well as discuss the basics of Z-Wave to help you get started with it.&lt;/p>
&lt;p>If you want to get straight to the code, jump to the &lt;a href="#impatient">section on the MQTT bridge&lt;/a>, &lt;a href="https://github.com/adpeace/zwave-mqtt-bridge">check out the code on Github&lt;/a>, or run &lt;code>pip install zwave-mqtt-bridge&lt;/code>.&lt;/p></description></item><item><title>Power Usage of Virgin TiVo, V6 TV box, and SuperHub</title><link>https://www.andyhacks.com/2017/11/02/power-usage-of-virgin-tivo-v6-tv-box-and-superhub/</link><pubDate>Thu, 02 Nov 2017 19:28:50 +0000</pubDate><guid isPermaLink="false">https://hackingathome.wordpress.com/?p=2082</guid><description>&lt;p>&lt;img alt="IMG_2468" loading="lazy" src="https://www.andyhacks.com/wp-content/uploads/2017/11/img_2468.jpg">&lt;/p>
&lt;p>Modern devices such as TVs tend to be able to run in standby mode quite efficiently, which means the common advice about &lt;a href="https://www.uswitch.com/energy-saving/guides/standby-savers/">turning them off completely&lt;/a> is becoming less relevant.  However, retaining the overall aim of reducing your overall energy footprint, new always-on devices such as modems, routers, set top-boxes that have a recording facility, etc., are more relevant targets as they are still active even when you&amp;rsquo;re not using them directly.&lt;/p></description></item><item><title>Controlling your heating from anywhere</title><link>https://www.andyhacks.com/2017/09/10/controlling-your-heating-from-anywhere/</link><pubDate>Sun, 10 Sep 2017 16:57:28 +0000</pubDate><guid isPermaLink="false">https://hackingathome.wordpress.com/?p=1549</guid><description>&lt;p>&lt;img alt="IMG_2272" loading="lazy" src="https://www.andyhacks.com/wp-content/uploads/2017/09/img_2272.jpg">&lt;/p>
&lt;p>Previously we &lt;a href="https://hackingathome.wordpress.com/2017/04/07/boiler-control-to-maintain-a-set-temperature/">discussed the algorithms&lt;/a> that can be used to control a domestic heating system, &lt;a href="https://hackingathome.wordpress.com/2017/06/11/the-boilerio-software-thermostat/">built a simple UI&lt;/a> to schedule the temperature changes, and &lt;a href="https://hackingathome.wordpress.com/2017/01/14/danfoss-wireless-thermostat-hacking-part-one/">reverse-engineered a pre-existing RF relay&lt;/a> to control the boiler.  So far the web service that provides the UI has been deployed on a PC at home but, since you&amp;rsquo;re most likely to want to override your heating controls when you&amp;rsquo;re unexpectedly arriving home early or late, we need a site that can be reached from anywhere.&lt;/p></description></item><item><title>The BoilerIO Software Thermostat</title><link>https://www.andyhacks.com/2017/06/11/the-boilerio-software-thermostat/</link><pubDate>Sun, 11 Jun 2017 23:42:46 +0000</pubDate><guid isPermaLink="false">https://hackingathome.wordpress.com/?p=1174</guid><description>&lt;p>It&amp;rsquo;s time to step up from command-line control of the heating system I&amp;rsquo;ve been working on to having a weekly schedule and temporary override function available through a UI, making the system practical on a day-to-day basis.&lt;/p>
&lt;p>&lt;a href="https://youtu.be/uCpQMBQ1SC0">https://youtu.be/uCpQMBQ1SC0&lt;/a>&lt;/p>
&lt;p>As always, code described here is &lt;a href="https://github.com/adpeace/boilerio">available on github&lt;/a> under an MIT license.&lt;/p>
&lt;h1 id="overview">Overview&lt;/h1>
&lt;p>The scheduler chooses a target heating temperature throughout the day and needs to be usable by someone non-technical to show the state of the system, provide a means to enter and edit a schedule, and provide a means to change the target temperature for a fixed period of time.&lt;/p></description></item><item><title>Boiler Control to Maintain a Set Temperature</title><link>https://www.andyhacks.com/2017/04/07/boiler-control-to-maintain-a-set-temperature/</link><pubDate>Fri, 07 Apr 2017 00:22:45 +0000</pubDate><guid isPermaLink="false">https://hackingathome.wordpress.com/?p=572</guid><description>&lt;p>I wanted to be able to control my home&amp;rsquo;s heating from a computer.  This post discusses the next phase in that project: a control layer that maintains a specified room temperature using a temperature sensor and the boiler control built in previous articles.&lt;/p>
&lt;p>I published the &lt;a href="https://github.com/adpeace/boilerio.git">boilerio repository&lt;/a> on github that contains the code to do this.&lt;/p>
&lt;p>Note that neither the code nor the article come with any warranty: please be careful if you&amp;rsquo;re using it as you could damage your heating system or create a safety hazard.&lt;/p></description></item><item><title>Danfoss Wireless Thermostat Hacking – Part Two</title><link>https://www.andyhacks.com/2017/02/07/danfoss-wireless-thermostat-hacking-part-two/</link><pubDate>Tue, 07 Feb 2017 12:34:44 +0000</pubDate><guid isPermaLink="false">https://hackingathome.wordpress.com/?p=253</guid><description>&lt;p>&lt;div style="position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;">
&lt;iframe allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share; fullscreen" loading="eager" referrerpolicy="strict-origin-when-cross-origin" src="https://www.youtube.com/embed/ivicZezegk0?autoplay=0&amp;amp;controls=1&amp;amp;end=0&amp;amp;loop=0&amp;amp;mute=0&amp;amp;start=0" style="position: absolute; top: 0; left: 0; width: 100%; height: 100%; border:0;" title="YouTube video">&lt;/iframe>
&lt;/div>
&amp;amp;feature=youtu.be&amp;amp;w=600&lt;/p>
&lt;p>I&amp;rsquo;ve been trying to take over control of my home&amp;rsquo;s central heating using a combination of software and commodity hardware such as the Arduino and Raspberry Pi.  &lt;a href="https://hackingathome.wordpress.com/2017/01/14/danfoss-wireless-thermostat-hacking-part-one/">Part one&lt;/a> of this series looked at how my existing RF thermostats worked and showed it should be possible to emulate them so that the receiver (which has relays that turn heating zones on/off) already connected to the boiler could be used by my own control system.  I currently have two Danfoss TP7000-RF wireless thermostats (one per zone) and a Danfoss RX2 receiver.&lt;/p></description></item><item><title>Danfoss Wireless Thermostat Hacking – Part One</title><link>https://www.andyhacks.com/2017/01/14/danfoss-wireless-thermostat-hacking-part-one/</link><pubDate>Sat, 14 Jan 2017 22:44:09 +0000</pubDate><guid isPermaLink="false">https://hackingathome.wordpress.com/?p=17</guid><description>&lt;p>&lt;img alt="tp7000rf" loading="lazy" src="https://www.andyhacks.com/wp-content/uploads/2017/01/tp7000rf.jpg">&lt;/p>
&lt;p>I wanted to control my central heating system using a Raspberry Pi and Arduino micro-controllers to provide better control, flexibility, and a fun home automation project.&lt;/p>
&lt;p>We originally chose wireless thermostats when we replaced the heating system in our home, but their user interface is not great and they are fiddly to use.  &amp;ldquo;Smart&amp;rdquo; thermostats were starting to come onto the market showing a glimpse of what could be done.&lt;/p></description></item></channel></rss>