Skip to content

leopiel/bme-280-visualizer

Repository files navigation

BME-280 visualizer

NodeJS program for visualizing bme-280 sensor data. Meant for use with raspberry-pi.

Running program

The server can be started with:

npm install && node index.js

After that it starts reading sensor data and writes it to sensor_log.json from which it's being passed to front-end. The front-end is accessible from port 3001.

To keep the program running in the background one can use pm2 or something similar. Inside project folder run:

npm install -g pm2 && npm install && pm2 start index.js

Config

Config can be found in config.js and contains following options:

NAME DEFAULT DESCRIPTION
SERVER_PORT 3001 The port for the nodejs server. The front-end is accessible from root path "...:3001/"
DATA_TTL one week The period of time for which the data is kept. Older data will be deleted.
READ_SENSOR_DATA_INTERVAL 30 minutes The interval for reading the sensor data and storing it to sensor_log.json
I2C_ADDRESS 0x76 The i2c address from which the bme-280 data is being read

About

Simple data visualizer for bme-280 temperature and humidity data. Meant for use with raspberry-pi.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •