https://github.com/don/ninja-nfc
NFC driver for Ninja Blocks
https://github.com/don/ninja-nfc
Last synced: 10 months ago
JSON representation
NFC driver for Ninja Blocks
- Host: GitHub
- URL: https://github.com/don/ninja-nfc
- Owner: don
- Created: 2013-04-26T02:50:01.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2013-04-26T02:50:29.000Z (about 13 years ago)
- Last Synced: 2025-07-06T11:41:28.012Z (11 months ago)
- Language: JavaScript
- Size: 105 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
NFC driver for Ninja Blocks
Emits a Ninja Block event with the NFC tag's UID after reading a NFC tag.
This was developed with a [SCL3711 NFC Reader](http://www.identivenfc.com/en/nfc-readers/contactless-mobile-reader-scl3711.htm) on a Mac emulating the Ninja Block.
It requires [libnfc](http://nfc-tools.org/) and the [nfc npm package](https://npmjs.org/package/nfc).
On Mac use Homebrew
$ brew install libnfc
Theoretically this should work on Linux with apt-get install libnfc.
Use Node 0.8.x. The nfc npm was not working with Node 0.10.4.
Have your Mac emulate a Ninja Block server. Follow these instructions http://nodeph.ninjablocks.com/#drivers
Install the ninja-nfc driver
$ cd client/drivers
$ git clone git@github.com/don/ninja-nfc.git
Troubleshooting
If the ninja dashboard reports no drivers, something broke. Something was flaky on my mac. It didn't like when I killed the ninja client. Swapping the NFC reader from one USB port to the other seemed to fix this.
Future:
* Get this working Ninja Hardware (as soon as it arrives)
* Get the NDEF message from the tag