The project aims to provide low & high level APIs for managing the Zigate USB TTL key (cf. zigate.fr) in node.js
This project is still under active development ; not very usable yet. It's mostly for developpers which want to have a look / contribute.
This project is composed of two main parts, representing two level of abstraction of the Zigate key:
The Zigate.Driver is a 'lower level' abstraction of the Zigate key ; it manages the connexion to the serial port of the ZiGate and provides utility functions to connect/disconnect to the Zigate key, build & send requests and parse & be notified of responses.
The Zigate.Coordinator, an higher abstraction on top of the Zigate.Driver class ; it provides additionnal features:
For the moment, no npm repository ; fetch directly from git
npm install git+https://git@github.com/nouknouk/node-zigate.git
This module depends on node module 'serialport', which is based on a native addon (compiled by node-gyp). Therefore, some build tools must be present on your machine, to make the installation successfull.
The test sample:
git clone https://github.com/nouknouk/node-zigate.git
cd node-zigate
npm install
npm test/test-driver
let's have a look at the wiki of node-zigate !