Example: marketing

RTDMS REST API - Central Pollution Control Board

RTDMS rest API Version RTDMS rest API version 1 API to upload data of a station EndPoint Method Header Note:- Here industryId and stationId corresponding to industryId and stationId available in vendor system. Request Json Example JSON Response 2 API to upload Data of an Industry EndPoint Note:- Here industryId corresponding to industryId available in vendor system. Method Header Request Json Example Json Response 3 API to Upload Correction EndPoint Note:- Here industryId and stationId corresponding to industryId and stationId available in vendor system.

RTDMS REST API v e rsi o n 1 . 0 REST API v1.0 RTDMS REST API communication requires a valid token for authentication of user. This token

Tags:

  Rest, Rtdms rest api, Rtdms

Information

Domain:

Source:

Link to this page:

Please notify us if you found a problem with this document:

Other abuse

Transcription of RTDMS REST API - Central Pollution Control Board

1 RTDMS rest API Version RTDMS rest API version 1 API to upload data of a station EndPoint Method Header Note:- Here industryId and stationId corresponding to industryId and stationId available in vendor system. Request Json Example JSON Response 2 API to upload Data of an Industry EndPoint Note:- Here industryId corresponding to industryId available in vendor system. Method Header Request Json Example Json Response 3 API to Upload Correction EndPoint Note:- Here industryId and stationId corresponding to industryId and stationId available in vendor system.

2 Method Header Request Json Response 4 API to upload daily SMS count EndPoint Method Header Note:- Here Industry_Id refers the actual Industry Id available at vendor system. Request Json Example JSON Response 5 Annexure Parameter Keys Units Common Status Codes in Response JSON Throttling 2015 LogicLadder 1 RTDMS rest API version rest API logicladder team. access to your data. 1 API to upload data of a station stationcanhavemultipledevicesinstalledto recorddifferentenvironmentparameters(cod , bod, tss, pH, flow, Sox, Nox, PM etc).

3 EndPoint :8080 <industryId>/station/<stationId>/data Method Request should be through POST method. Header encoded. The header format should be: <industryId>/station/<stationId>/data :8080 Authorization: Basic <token> Note:-HereindustryIdandstationIdcorrespo ndingtoindustryIdandstationIdavailablein vendor system. Request Json Note:- When device is in Calibration mode or Zero Calibration mode then vendor should capture and push one data point at every 30 sec. Thejsonshouldprovideanarrayofdataobject, specifictoeachdeviceinstalledatastation.

4 The request json to be posted would be : 2015 LogicLadder 2 RTDMS rest API version [ { "deviceId": "xxxx", "params": [ { "parameter": "xxxx", "value": xxxx , "unit": "xxx", "timestamp": xxxx, "flag": "U|C|M|F|Z|D" } ], "diagnostics": [ { "diagParam": "xxxx", "value": xxxx, "timestamp": xxxx } ] } ] Table : Single station data upload json fields. Parameters Data Type Description deviceId String Anidthatuniquelyidentifiesadevice installed at a station.

5 Params Array Arrayofparametersforwhichdatais dataspecifictothedeviceid mentionedabove,theindustryidand station id present in the request. : [{ parameter : cod , value :190, unit : mg/l timestamp :1441686170004 flag : U }, { 2015 LogicLadder 3 RTDMS rest API version parameter : bod , value :28, unit : mg/l timestamp :1441686170004 flag : U }] params: parameter String bepickedfromtheparametertablein theannexure( ).Ifa parameterisnotavailableinthelist, please inform cpcb/logicladder.

6 Params: value Decimal Value of parameter in decimal. params: unit String Unitinwhichdeviceisrecordingthe parameter. Unit should be pickedfromtheunittableinthe annexure( ).Ifaunitisnot availablepleaseinform cpcb/logicladder. params: timestamp long Epoch/Unix/Posixtimeinmilliseconds :00:00 CoordinatedUniversalTime(UTC), Thursday, 1 January 1970 params: flag String Diagnosticflagsassociatedwith andwhendifferentvendorsflagsare unified. Possible values of flag: U:usable C:calibration M:Maintenance F:Faulty Z:Zero D:Calibration Drift diagnostics Array Arrayofdiagnosticinformationofthe device.

7 [{ 2015 LogicLadder 4 RTDMS rest API version diagParam : humidityAlert , value : 0, timestamp :1441686170004 }, { diagParam : deviceTemperature , value : 49, timestamp :1441686170004 }] diagnostics: diagParam String Name of diagnostic parameter. diagnostics: value Decimal Valueofdiagnosticparameterin decimal. diagnostics: timestamp long Epoch/Unix/Posixtimeinmilliseconds :00:00 CoordinatedUniversalTime(UTC), Thursday, 1 January 1970 Example JSON [ { "deviceId": "sn-123-d-56", "params": [ { "parameter": "cod", "value": 198 , "unit": "mg/l", "timestamp": 1441686170004, "flag": "U" }, { "parameter": "bod", "value": 28 , "unit": "mg/l", "timestamp": 1441686170004, "flag": "U" } ], 2015 LogicLadder 5 RTDMS rest API version "diagnostics": [ { "diagParam".]]}}

8 "humidityAlert", "value": 0, "timestamp": 1441686170004 }, { "diagParam": "devTemperature", "value": 49, "timestamp": 1441686170004 } ] }, { "deviceId": "sn-124-d-58", "params": [ { "parameter": "ph", "value": , "unit": ", "timestamp": 1441686170004 "flag": "U", }, ] "diagnostics": [ { "diagParam": "devTemperature", "value": 49, "timestamp": 1441686170004 } ] } ] Response Success: If data uploaded successfully HTTP STATUS200 OK { 2015 LogicLadder 6 RTDMS rest API version "msg" :"success" , status : 1 } Failure: If data upload fails HTTP STATUS other than 200 { "msg": "failed", "status": 0, "invalidIndustries": { "industries": [{ "industryId": "abc" }] }, "invalidStations": { "industries": [{ "industryId": "abc", "stations": [{ "stationId": "xyz" }] }] }, "invalidDevices": { "industries": [{ "industryId": "abc", "stations".}

9 [{ "stationId": "xyz", "devices": [{ "serialNo": "xyz" }] }] }] }, "invalidParameters": { "industries": [{ "industryId": "abc", "stations": [{ "stationId": "xyz", "devices": [{ 2015 LogicLadder 7 RTDMS rest API version "serialNo": "xyz", "parameters": [{ "parameter": "abc" }] }] }] }] }, "invalidUnits": { "industries": [{ "industryId": "abc", "stations": [{ "stationId": "xyz", "devices": [{ "serialNo": "xyz", "parameters": [{ "parameter": "abc", "unit": "mg/L" }] }] }] }] } } For status codes please refer Annexure (Table ) 2 API to upload Data of an Industry parameters (cod, bod, tss, pH, flow, Sox, Nox, PM etc).

10 EndPoint :8080 <industryId>/data Note:- Here industryId corresponding to industryId available in vendor system. Method Request should be through POST method. 2015 LogicLadder 8 RTDMS rest API version Header Base64 encoded. The header format should be: <industryId>/data :8080 Authorization: Basic <token> Request Json Note:- When device is in Calibration mode or Zero Calibration mode then vendor should capture and push one data point at every 30 sec. The request accepts an array of stations with its data.


Related search queries