Skip to content
WebUI for a Raspberry Pi thermometer
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
public
views
.gitignore
LICENSE
README.md
config.json
fake.data
package.json
server.js
start.sh

README.md

WebUI for a Raspberry Pi thermometer

WebUI for a Raspberry Pi thermometer writen in Node.js, measurring the temperature in the room.

Raspberry Pi with the sensor

Hardware

  • Raspberry Pi
  • DS18B20 temperature sensor
  • RRU 4K7 resistor

Software

  • RaspBMC or Raspbian
  • Node.js

Drivers

  • w1-gpio
  • w1-therm

Thermometer usage

First, load the drivers

sudo modprobe w1-gpio  
sudo modprobe w1-therm

then determine the device id of your sensor (28-000004e23e98 in my case)

ls /sys/bus/w1/devices/   

open config.json and set the deviceId variable to your device id

var deviceId="28-000004e23e98";

and run the server

node server.js

Raspberry Pi temperature

Recording and showing temperature

You can use the /measure endpoint to measure the current temperature and automatically write it to a sqlite3 db file. I suggest you add it to cron.

If you want to see the recorder temeprature chart, visist the /history endpoint.

Raspbery Pi temperature history

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.