node package manager



Library for accessing various sensors via the bcm2835 library.

The first sensor which I have implemented is the AM2302, to see how this is attached to the Raspberry Pi take a look at my blog post Raspberry Pi Temperature and Humidity Project Construction

Once you have your sensor assembled and attached to the Raspberry Pi you can install node and try it out.

Getting Started

As this is a native node.js module you will first need to setup your pi with the necessary tools.

Firstly install build essential and git.

sudo apt-get build-essential

Then download node and build it.

tar cvzf v0.8.16.tar.gz
cd node-0.8.16
sudo make install

Download and install the bcm2835 library.

cd bcm2835-1.14
sudo make install

Now Install the module with: npm install raspberrysensor

var raspberrysensor = require('raspberrysensor');
raspberrysensor.humidity(function(err, result){

This will output something like.



In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using grunt.

Release History

0.1.0 Initial release.

0.1.1 Fixed documentation.


Copyright (c) 2012 Mark Wolfe
Licensed under the MIT license.