multi-input-parser
v1.0.2
Published
get multi-input payload with several array and calculate simple statistics indicators then retur and result payload object
Downloads
2
Readme
multi-input-parser for node-red
Requirements and OS
- Linux
- Windows
- MAC OS
Dependencies
- simple-statistics 5.2.1
Install
cd $home/.node-red
npm install multi-input-parser --save
Configuration
- Add this line multiInput:require("multi-input-parser") in settings.js file like this :
functionGlobalContext: {
// os:require('os'),
// octalbonescript:require('octalbonescript'),
// jfive:require("johnny-five"),
// j5board:require("johnny-five").Board({repl:false})
multiInput:require("multi-input-parser")
}
* Call this in function node like this
```javascript
// .......
var fields={};
var sStat=context.global.get('multiInput');
// ....
fields = sStat.parseJson(msg.payload);
//...