Raspberry Pi node.js server and client code for Smart House