9 comments

  • unsolved7346 minutes ago
    Iroh is probably one of the best shots we have at making IoT finally secure with the built-in endpoint-to-endpoint encryption. The only thing that is missing is an embedded QUIC stack, the setup described in this article sees a little bit too hacky (4 MiB of PSRAM, really?).
  • Liftyee1 hour ago
    While this is neat, it strikes me as the software developer's idea of a "smart fan". The engineer in me says that an actual "smart fan" would be one whose blades are designed to produce maximum airflow with minimum noise (variable pitch? avoiding turbulence?)
    • lilhenry20 minutes ago
      He’s using a noctua fan which are pretty much the quietest pc fans you can buy while still moving large amounts of air
  • cold_pizz440 minutes ago
    Related to <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=48872120">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=48872120</a>
  • Alien1Being9 hours ago
    I use a inexpensive 36 AUD Tapo infrared hub to control my fan reliably.<p>It links to my Google Home installation and responds to voice commands.<p><a href="https:&#x2F;&#x2F;us.store.tapo.com&#x2F;products&#x2F;tapo-h110-smart-ir-iot-hub" rel="nofollow">https:&#x2F;&#x2F;us.store.tapo.com&#x2F;products&#x2F;tapo-h110-smart-ir-iot-hu...</a><p>Someone with too much time on their hands might benefit from the iroh solution....
  • devttyeu3 hours ago
    Any plans to standardize Iroh IoT protocols, e.g. Matter over Iroh &#x2F; Some other standard that would be plug-able to things like Home Assistant?
  • shermantanktop12 hours ago
    This is interesting as an example of just how complicated and elaborate a toolchain you can use to build something dead simple.<p>There’s a lot that comes for free by adding all these libraries and crates and steps. But from what I can tell it comes down to:<p>let _ = if fan_on { fan.set_high() } else { fan.set_low() };
    • klooj12 hours ago
      iroh is a peer to peer networking technology so the project example of controlling a fan isn&#x27;t so much about the fan but rather that it&#x27;s controllable from anywhere through an esp32 microcontroller that can maintain a resilient connection endpoint even through power cycles and so on. I think iroh was posted about on HN a few weeks ago and I had a similar reaction of like...what in the world is this blog post even saying haha. But I found their docs page and found it pretty fascinating learning! <a href="https:&#x2F;&#x2F;docs.iroh.computer&#x2F;what-is-iroh" rel="nofollow">https:&#x2F;&#x2F;docs.iroh.computer&#x2F;what-is-iroh</a>
      • aquariusDue4 hours ago
        Works on Android too when developing Dart applications and making use of flutter_rust_bridge though it&#x27;s a bit of an involved setup to be honest.<p>I really hope more people will play around with iroh and build stuff especially because in the last year some things have been renamed in the API to be more clear and other stuff has been simplified e.g. see this blog post <a href="https:&#x2F;&#x2F;www.iroh.computer&#x2F;blog&#x2F;iroh-0-94-0-the-endpoint-takeover" rel="nofollow">https:&#x2F;&#x2F;www.iroh.computer&#x2F;blog&#x2F;iroh-0-94-0-the-endpoint-take...</a>
      • rwmj9 hours ago
        I use a fan with an on&#x2F;off button.
        • kaashif4 hours ago
          I think it&#x27;s great someone is working on a fun little project such as a smart fan but let&#x27;s not kid ourselves, it&#x27;s not supposed to be practical! I don&#x27;t think anyone would claim that.<p>It&#x27;s a demo of how easy it is to make even an ESP32 device available globally with iroh.
        • dtj11235 hours ago
          Can&#x27;t help but read this in the voice of Homer Simpson.
        • cinntaile7 hours ago
          That&#x27;s very much not a smart fan. Not really relevant.
          • rwmj7 hours ago
            Pretty relevant because I&#x27;ve never seen the reason for &quot;smart&quot; gadgets at all. Physical switches are simply better.
            • kennywinker6 hours ago
              90% of smart devices are for novelty, or for you to spend more time setting up and maintaining their automations than they save you in being automated.<p>But that 10% is magic. A fan that switches on when air quality falls below a threshold? Not that useful in a living room, but in a workshop setting - especially a shared workshop setting? Awesome. Just awesome.<p>A well defined use case, in the right setting, and smart stuff can be genuinely very useful. Usually that’s not how they’re used - i know, because of the 15-20 smart things i have only one or two are genuinely useful.
              • embedding-shape5 hours ago
                &gt; A fan that switches on when air quality falls below a threshold? Not that useful in a living room,<p>Why wouldn&#x27;t that be useful? People be surprised how poor their air quality generally are inside, unless they already measure it, making it better sounds useful in oh so many ways.<p>&gt; i know, because of the 15-20 smart things i have only one or two are genuinely useful.<p>What are those things? I have about 70-80 &quot;smart things&quot; by now, but every single one is genuinely useful, otherwise I wouldn&#x27;t install them in the first place. Lots of open&#x2F;closed sensors, soil moisture, temperature+pm2.5 sensors, water taps and so on.
            • quickthrowman10 minutes ago
              You can have the best of both worlds with a hand-off-auto switch.
            • miki1232114 hours ago
              The reason is UI.<p>There&#x27;s only a limited number of features that you can pack into a few buttons and a 7-segment display. If you want to sell outside the US and need to support the long-tail of non-English languages, preferably without per-country product variants, you can&#x27;t even label the buttons any more, you have to rely on simple pictograms and icons.<p>If there&#x27;s a $1 microcontroller in your device (and there often is), you&#x27;re very tempted to implement lots of features which cost you almost nothing, but that kind of UI just doesn&#x27;t really let you do so. Sure, you could add a proper touch screen with a localizable UI stack, with reflowable text and support for displaying Kanji and RTL languages, but that&#x27;s often more expensive (and less practical) than slapping on a BLE or WiFi chip.
            • bloppe7 hours ago
              If your fan isn&#x27;t Byzantine fault tolerant, you&#x27;re irrelevant
              • quickthrowman9 minutes ago
                The example in the OP doesn’t even appear to check to prove the fan is running so it’s not exactly fault tolerant, it doesn’t know if the enable&#x2F;disable commands worked or not.<p>If you are turning a motor on and off you almost always want to know if it is actually on or off, the OP example appears to lack that but maybe they can grab the status from the relay.
            • kelnos6 hours ago
              I have lots of smart gadgets that also have physical switches. It&#x27;s convenient to be able to control them in more than one way, from more than one location.<p>Anyway, why are you commenting here if you&#x27;re not into this sort of thing? Feels like you&#x27;re just trying to stir up an argument.
            • victorbjorklund6 hours ago
              And some people don’t see any reason for the internet and just wanna use phones and physical mail. To each their own.
            • embedding-shape6 hours ago
              &gt; Physical switches are simply better<p>Pff, assuming that everyone have arms and hands much?<p>Also I don&#x27;t see the point of a fan, I live right next to the ocean, if you want moving air, why don&#x27;t you just open a window?! Talk about useless invention
              • rwmj6 hours ago
                I do have working arms and hands, so for the lights and fans in my house I don&#x27;t need to assume otherwise.
    • miki1232114 hours ago
      The hard part isn&#x27;t controlling the fan, it&#x27;s controlling the fan from anywhere, without a central server in the way.<p>Sure, you could probably make this much smaller if you invented a specialized p2p fan control protocol, but that&#x27;s a lot of work.
      • quickthrowman3 minutes ago
        The simple way to do this is a dumb thermostat wired through a relay coil that enables a fan. It doesn’t give you remote access to change the setpoint but that’s all this setup does. Something like this has a setpoint you change once and then leave it.<p>For specific applications like transfer fans for a server room with a small amount of heat to react, you can buy an all-in-one thermostatically controlled fan: <a href="https:&#x2F;&#x2F;acinfinity.com&#x2F;room-to-room-fan-8-with-temperature-controller-two-way-reversible-airflow&#x2F;?srsltid=AfmBOorGpCdI0HYS8Pw3eW8wmzEYRLUaCNXMpDxAtiFwaQi6vHHwOzBq" rel="nofollow">https:&#x2F;&#x2F;acinfinity.com&#x2F;room-to-room-fan-8-with-temperature-c...</a>
  • skybrian12 hours ago
    It&#x27;s unclear to me why they needed to compile Rust to WebAssembly to write a website. It looks like iroh has a JavaScript API:<p><a href="https:&#x2F;&#x2F;docs.iroh.computer&#x2F;languages&#x2F;javascript" rel="nofollow">https:&#x2F;&#x2F;docs.iroh.computer&#x2F;languages&#x2F;javascript</a><p>Edit: actually, that&#x27;s a Node.js-specific API. For browsers, it seems like they should have a platform-independent JavaScript&#x2F;TypeScript API that includes a WebAssembly file (if needed) instead of expecting you to compile WebAssembly yourself.
    • nine_k12 hours ago
      Not touching JavaScript might be a reason enough. (Though I bet it has a <i>Typescript</i> API, and Typescript is great.)
      • croes9 hours ago
        Typescript is nothing without JavaScript
        • roblabla7 hours ago
          With that logic, C is nothing without assembly.
          • embedding-shape6 hours ago
            Does C also have a compiler that turns C code into assembly before the real runtime does its work? Never done much C development in the past, didn&#x27;t get the impression it worked like that.
            • OJFord4 hours ago
              &gt; Does C also have a compiler that turns C code into assembly<p>Yes, that&#x27;s &#x27;a C compiler&#x27;, like gcc.<p>&gt; before the real runtime does its work<p>Sort of, the <i>program</i> is &#x27;the runtime&#x27;, but this is backwards, languages that have &#x27;a runtime&#x27; get the name from it running <i>at</i> runtime to compile&#x2F;interpret source or byte code. In C what runs at runtime is just your program, whatever you compiled. (Maybe it&#x27;s an interpreter though!)
              • embedding-shape2 hours ago
                I mean, once you split that sentence into pieces and answer them individually, of course it stops making sense. It&#x27;s the whole &quot;+ chuck the results into a runtime&quot; that makes it make sense (or not) as a comparison against &quot;TS &gt; JS &gt; V8&#x2F;SpiderMonkey&quot;
            • messe5 hours ago
              &gt; Does C also have a compiler that turns C code into assembly before the real runtime does its work?<p>What do you think ahead of time compilation is?
            • throawayonthe2 hours ago
              a c compiler turns c code into assembly which is then consumed by an assembler(?)
            • IceDane5 hours ago
              You can output assembly with any toolchain, yes. But there&#x27;s no runtime, at least if you mean in the sense that the code is executed by a runtime.
          • croes3 hours ago
            Typescripts add another layer on top of that
  • sunshine-o6 hours ago
    iroh is very interesting and in many way it could get traction for IoT.<p>Now I am not sure it is feasible but it would be interesting to have it available in esphome. I feel this is really where real adoption happens.
  • Teknomadix9 hours ago
    Why.
    • gurjeet8 hours ago
      In hacker culture, the correct question is &quot;Why not?&quot;<p>Somebody wanted to do something, and they did it; it doesn&#x27;t have to be any more complicated than that :-)<p>&gt; Don&#x27;t be curmudgeonly. Thoughtful criticism is fine, but please don&#x27;t be rigidly or generically negative.<p>Sincerely, HN Guidelines Police :-)<p><a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;newsguidelines.html">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;newsguidelines.html</a>
    • kennywinker7 hours ago
      To demonstrate the potential of iroh to enable accessing stuff across complex network structures for iot type use cases
    • Frenchgeek9 hours ago
      Because Uncle Iroh needs more fans maybe? (should have been a tea kettle)