https://github.com/igorkulman/rpi-thermometer
WebUI for a Raspberry Pi thermometer
https://github.com/igorkulman/rpi-thermometer
javascript raspberry-pi raspberry-pi-thermometer sensor temperature thermometer webui
Last synced: 11 months ago
JSON representation
WebUI for a Raspberry Pi thermometer
- Host: GitHub
- URL: https://github.com/igorkulman/rpi-thermometer
- Owner: igorkulman
- License: mit
- Created: 2013-12-06T18:33:59.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2017-10-08T11:54:49.000Z (over 8 years ago)
- Last Synced: 2025-04-12T10:55:37.109Z (about 1 year ago)
- Topics: javascript, raspberry-pi, raspberry-pi-thermometer, sensor, temperature, thermometer, webui
- Language: JavaScript
- Size: 300 KB
- Stars: 49
- Watchers: 6
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
WebUI for a Raspberry Pi thermometer
===============
WebUI for a Raspberry Pi thermometer writen in Node.js, measurring the temperature in the room.

### 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
```bash
sudo modprobe w1-gpio
sudo modprobe w1-therm
```
then determine the device id of your sensor (28-000004e23e98 in my case)
```bash
ls /sys/bus/w1/devices/
```
open config.json and set the deviceId variable to your device id
```javascript
var deviceId="28-000004e23e98";
```
and run the server
```bash
node server.js
```

### 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.
