zenomodule

0.1.6 • Public • Published

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.

Package Sidebar

Install

npm i zenomodule

Weekly Downloads

2

Version

0.1.6

License

MIT

Unpacked Size

12.2 kB

Total Files

7

Last publish

Collaborators

  • zenophakhawat