Home Automation with Node.js and MQTT
summary
A runnable home alarm that uses Node and MQTT as the glue, with Raspberry Pi relays, cheap $3–$4 433 MHz sensors, a USB camera and a DIY IR illuminator, runs in Docker and publishes to a mosca broker secured with TLS and certs. Code uses the mqtt npm package, websockets for the GUI and Twilio for SMS. MQTT messages can be as small as two bytes and inexpensive 433 MHz devices repeat each packet ~10 times to cope with collisions.
AI-written summary · about
