Ninja Blocks driver for The Thing System
This driver requires newer APIs an only runs on Ninja Blocks greater than version 1.1.5. As of December 5, 2013 this means you need to run on the develop branch. See Ninja Blocks post about setting up a development environment.
Here's what I did for my Ninja Block
ssh to ninja block
$ sudo stop ninjablock $ cd /opt $ mv ninja ninja-original $ git clone git://github.com/ninjablocks/client.git ninja $ git checkout develop $ ./bin/install.sh $ sudo start ninjablock
If you'd rather not upgrade your ninjablock, you can check out this node script that polls the ninja cloud https://gist.github.com/don/7815374.
ssh to your ninja block
$ cd /opt/ninja/drivers $ git clone https://github.com/don/ninja-thing.git
Restart the Ninja Block
$ sudo stop ninjablock $ sudo start ninjablock
After the driver is installed, you should see the Ninja Block Temperature and Humidity Sensors in The Thing System.
(c) 2013 Don Coleman