Skip to content

About

Node module for fetching data from the DS18B20 temperature sensor on Raspberry Pi

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rpi-temp-module

Node module for fetching data from the DS18B20 temperature sensor on Raspberry Pi. For real world usage see the Raspberry Pi thermometer project.

Raspberry Pi setup

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/   

You will need to provide the device id as a parameter when using the module.

Installation

npm install rpi-temp-module --save

Usage

var rpiTemp = require('rpi-temp-module');

rpiTemp.getTemperature("28-000004e23e98", funciton(value) {    
    console.log("Temperature: "+value+"C");    
});    

Tests

npm test

About

Node module for fetching data from the DS18B20 temperature sensor on Raspberry Pi

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages