| ▲ | An iroh powered smart fan(iroh.computer) | ||||||||||||||||
| 65 points by surprisetalk 4 days ago | 9 comments | |||||||||||||||||
| ▲ | Alien1Being 8 minutes ago | parent | next [-] | ||||||||||||||||
I use a inexpensive 36 AUD Tapo infrared hub to control my fan reliably. It links to my Google Home installation and responds to voice commands. https://us.store.tapo.com/products/tapo-h110-smart-ir-iot-hu... Someone with too much time on their hands might benefit from the iroh solution.... | |||||||||||||||||
| ▲ | shermantanktop 4 hours ago | parent | prev | next [-] | ||||||||||||||||
This is interesting as an example of just how complicated and elaborate a toolchain you can use to build something dead simple. 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: let _ = if fan_on { fan.set_high() } else { fan.set_low() }; | |||||||||||||||||
| |||||||||||||||||
| ▲ | skybrian 3 hours ago | parent | prev | next [-] | ||||||||||||||||
It's unclear to me why they needed to compile Rust to WebAssembly to write a website. It looks like iroh has a JavaScript API: https://docs.iroh.computer/languages/javascript Edit: actually, that's a Node.js-specific API. For browsers, it seems like they should have a platform-independent JavaScript/TypeScript API that includes a WebAssembly file (if needed) instead of expecting you to compile WebAssembly yourself. | |||||||||||||||||
| |||||||||||||||||
| ▲ | Teknomadix 32 minutes ago | parent | prev [-] | ||||||||||||||||
Why. | |||||||||||||||||
| |||||||||||||||||