1.0.4 • Published 6 years ago
feed_1888 v1.0.4
Gateway from NETPIE to CU-BEMS Storage
Installation
npm install feed_1888
Usage
void feed_1888.fw = function(NameFeed,APIkey,granularity,granularity_unit,since,since_unit,valuename,PointID)
- NameFeed
string
- name of the feed - APIkey
string
- apikey for authorization - granularity
number
- precision level of data point - granularityunit
string
_ - can be minute, hour, day, month, year - since
number
- peroid of time until present - sinceunit
string
_ - can be minute, hour, day, month, year - valuename
string
- name of the feed field - PointID
string
- url in 161.200.90.122(FIAP Storage)
Example
var feed_write = require('feed_1888'); //request feed_1888 module
var FeedName = 'Feedname'; //this value must be the same as Feed name in NETPIE FEED
var APIkey = 'APIkey'; //this value is generated by netpie
var granularity = '5';
var granularity_unit = 'second';
var since = '24';
var since_unit = 'hours';
var valuename = 'FeedName'; //this input must be the same as field in NETPIE FEED
var PointID = 'PointID'; //URL Point id in FIAP Storage
feed_write.fw(FeedName,APIkey,granularity,granularity_unit,since,since_unit,valuename,PointID);
Developer
- Tanakorn Siributdha 573021792
- Faculty of Engineering , Chulalongkorn University
- 4/23/2018