https://github.com/don/ninja-thing
Send temperature and humidity data from Ninja Blocks to The Thing System via TSRP
https://github.com/don/ninja-thing
Last synced: 10 months ago
JSON representation
Send temperature and humidity data from Ninja Blocks to The Thing System via TSRP
- Host: GitHub
- URL: https://github.com/don/ninja-thing
- Owner: don
- License: other
- Created: 2013-12-05T21:33:22.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2014-01-05T04:54:02.000Z (over 12 years ago)
- Last Synced: 2025-02-15T20:57:06.801Z (over 1 year ago)
- Language: JavaScript
- Size: 348 KB
- Stars: 7
- Watchers: 6
- Forks: 1
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
## Ninja Blocks driver for The Thing System
Send temperature and humidity data from [Ninja Blocks](http://ninjablocks.com/pages/home) to [The Thing System](http://thethingsystem.com/) via [TSRP](http://thethingsystem.com/dev/Thing-Sensor-Reporting-Protocol.html).
### Prerequisite
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](http://ninjablocks.com/blogs/how-to/7195176-hack-like-a-ninja-blocks-developer).
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.
### Installing
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
License [BSD](LICENSE.txt)