Skip to content
This repository was archived by the owner on Jun 28, 2022. It is now read-only.

Latest commit

 

History

History
24 lines (15 loc) · 1.18 KB

File metadata and controls

24 lines (15 loc) · 1.18 KB

apstatus

A lightweight node.js & react.js application for monitoring apartment status using the Raspberry Pi. Currently supports temperature and humidity readings.

Prerequisites

Installation

  1. Run npm install node-dht-sensor to install sensor module. Omitted from requirements for development purposes. More information here.
  2. Run npm install to install server dependencies.

Usage

Run sudo npm start, and access the application on port 8080. The server needs root access in order to get readings from the sensor.

Note that the default configuration uses a DHT22 connected via GPIO4, this can be configured in sensor.js by editing the line dhtSensor.initialize(22, 4);.

Known issues

The default repositories on Raspbian may have an outdated version of node.js. The easiest way of solving this is installing node from the Adafruit repo.