zenomodule
v0.1.6
Published
This module actually created by Zeno. The original module still be zenomodule.
Downloads
6
Maintainers
Readme
Zeno Module - The module for good searching algorithm from XML. Mostly integrate with Line Development.
The function for line bot communication
const gonoz = require("zenomodule");
XML = JSON.parse(JSON string); // you can import XML from XML file using another module.
texts = 'This is sample message'; // you can import msg from LINE application.
status = 'normal'; // the status can be normal, train, trainQuestion, trainAnswer.
var answer = gonoz.getAnswer(XML, texts, status); // getAnswer will return the answer analyzed from XML.
var body = gonoz.getLinebody(answer); // getLinebody will return the body used to reply command.
The function for LoRa device communication provided by CAT Telecommunication
var access_token = 'xxxxxxxxxx'; // declare the access_token.
var DevEUI = 'yyyyy'; // declare the device EUI.
var payload = 'zzz'; // declare the payload structure.
gonoz.payloadPost(access_token, DevEUI, payload); // payloadPost will sending payload to the LoRa device.
Before installing, download and install Node.js. Node.js 6.4.0 or higher is required.
Installation is done using the
npm install
command:
$ npm install zenomodule
Follow my github for more information.