Measure data request

<< Click to Display Table of Contents >>

Navigation:  Help > Troubleshooting > Previous Manuals > E-SM-RMS-WEB > Application Programming Interface (API) > Read Data from RMS using JSON API >

Measure data request

As soon as the token is available, user can request measure data from RMS.

 

Parameters:

Key


ID

Measure point ID

From

Oldest Value

(ISO8601 Format)

To

Newest Value

(ISO8601 Format)

Count

Maximum number of measured values

(May not exceed 50'000)

Order

Asc = Sort ascending

Desc = Sort descending

Token

Valid authorization token

 

 

ISO 8601 Date format:

Local and Timezone:        2018-02-25T09:01:30+01:00

UTC:                                2018-02-25T09:01:30Z

 

Example Request:

Request

URL: API/DataHistory.ashx (HTTP POST)

{

 ID: 1234,

 From: 2018-02-25T09:01:30+01:00,

 To: 2018-02-26T09:01:30+01:00,

 Count: 500,

 Order: Asc,

 Token: xxxxxxxxxxxxxxxxxx.xxxxxxxxxxxxxxxxx.xxxxxxxxxxxxxxxxxx

}

Response from server

{

 Status: OK

 ID: 1234,

 Name: Measurepoint-Name,

 Parameter: Temperature,

 Unit: °C,

 Data:

 [{

   Time: 2018-02-25T09:01:30+01:00,

   Value: 23.12

 },

 {

   Time: 2018-02-25T09:02:30+01:00,

   Value: 23.14

 }]

}