<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
    <channel>
        <title>Rust on feldspaten</title>
        <link>https://feldspaten.org/tags/rust/</link>
        <description>Recent content in Rust on feldspaten</description>
        <generator>Hugo -- gohugo.io</generator>
        <language>en-us</language>
        <lastBuildDate>Wed, 02 Dec 2026 11:45:23 +0100</lastBuildDate><atom:link href="https://feldspaten.org/tags/rust/index.xml" rel="self" type="application/rss+xml" /><item>
            <title>A hopelessly overengineerd bathroom ventilation button</title>
            <link>https://feldspaten.org/2026/12/02/bathroom-ventilation-button/</link>
            <pubDate>Wed, 02 Dec 2026 11:45:23 +0100</pubDate>
            <guid>https://feldspaten.org/2026/12/02/bathroom-ventilation-button/</guid>
            <description>&lt;p&gt;&lt;a class=&#34;link&#34; href=&#34;https://codeberg.org/grisu48/bathroom-ventilation&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;I&amp;rsquo;ve build a hopelessly overengineered button to turn on the bathroom ventilation&lt;/a&gt;.&#xA;The project runs as a Rust application deployed in a multi-node k3s cluster in my home lab and it&amp;rsquo;s awesome. The whole stuff could also&#xA;have been a 10 line python script or probably a simple configuration either in zigbee2mqtt or in Home Assistant. I know.&#xA;That&amp;rsquo;s missing the point!&lt;/p&gt;&#xA;&lt;p&gt;Our bathroom ventilation is turned on/off via a Zigbee linked smartplug which I control via mqtt provided by zigbee2mqtt.&#xA;I needed to do this because the cord to turn this on/off manually broke at some point last year, and this appeared like an&#xA;elegant drop-in solution with one advantage: We could turn this on/off via a button.&lt;/p&gt;&#xA;&lt;p&gt;I use one of those &lt;a class=&#34;link&#34; href=&#34;https://sonoff.tech/en-nl/products/sonoff-zigbee-wireless-switch-snzb-01p&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;SNZB-01P Sonoff Zigbee buttons&lt;/a&gt;, glued&#xA;to the bathroom wall at a convenient place. A first protoype was written in python and worked pretty well. Task accomplished.&lt;/p&gt;&#xA;&lt;p&gt;Well &amp;hellip; Fast forward about a year and the Python script transformed into a Rust application (for the game!), and now it&amp;rsquo;s being&#xA;deployed to my Kuberentes cluster, because I&amp;rsquo;m deprecating the host where this was running before. So, yeah, this runs now&#xA;in k3s.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img class=&#34;gallery-image&#34; data-flex-basis=&#34;577px&#34; data-flex-grow=&#34;240&#34; height=&#34;637&#34; loading=&#34;lazy&#34; sizes=&#34;(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px&#34; src=&#34;https://feldspaten.org/2026/12/02/bathroom-ventilation-button/Deployment.png&#34; srcset=&#34;https://feldspaten.org/2026/12/02/bathroom-ventilation-button/Deployment_hu_c3bee96b771d6930.png 800w, https://feldspaten.org/2026/12/02/bathroom-ventilation-button/Deployment.png 1532w&#34; width=&#34;1532&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;From here there are still many more steps to take the project to a full glory:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Add a seccomp profile&lt;/li&gt;&#xA;&lt;li&gt;Make the application run well in parallel, such that I can have redundancy&lt;/li&gt;&#xA;&lt;li&gt;Add more sophisticated logging&lt;/li&gt;&#xA;&lt;li&gt;Build an oracle, which feels when the ventilation &amp;ldquo;is needed&amp;rdquo; and turns it on&lt;/li&gt;&#xA;&lt;li&gt;Build a blackforest cherry cake reminder 1 week before my birthday&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;It&amp;rsquo;s all fun until it doesn&amp;rsquo;t work &amp;hellip; Then I probably will revert back to that silly old Python script ;-)&lt;/p&gt;&#xA;</description>
        </item></channel>
</rss>
