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.
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.
wgettar cvzf v0.8.16.tar.gzcd node-0.8.16./configuresudo make install
Download and install the bcm2835 library.
wgetcd bcm2835-1.14./configuresudo make install
Now Install the module with:
npm install raspberrysensor
var raspberrysensor = ;raspberrysensor;
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.
0.1.0 Initial release.
0.1.1 Fixed documentation.
Copyright (c) 2012 Mark Wolfe
Licensed under the MIT license.