This is a simple node app containing a backend and a portal, for displaying IoT devices
-
Download the content from Git:
git clone git://github.com/mposzywak/smarthouse
-
Enter the created directory and install node.js packages using npm:
cd smarthouse npm install
-
Start the node application:
node ./iotpi.js
The server is listening by default on port 10080
The following settings can be adjusted before running the application:
config.cloud.enabled = - decides whether operating mode is "raspy" or "cloud"
To start simulation of the device open another terminal and execute:
cd scripts ./devsim.sh