Skip to content

mposzywak/smarthouse

Repository files navigation

Overview

This is a simple node app containing a backend and a portal, for displaying IoT devices

Installation

  1. Download the content from Git:

    git clone git://github.com/mposzywak/smarthouse

  2. Enter the created directory and install node.js packages using npm:

    cd smarthouse npm install

  3. Start the node application:

    node ./iotpi.js

The server is listening by default on port 10080

Configuration

The following settings can be adjusted before running the application:

config.cloud.enabled = - decides whether operating mode is "raspy" or "cloud"

Device Simulation

To start simulation of the device open another terminal and execute:

cd scripts ./devsim.sh