A home automation server and framework for the raspberry pi running on node.js