get-powerconsumption-{zoneCode} 2018-10-05T16:31:07+08:00

GET /service/facilities/power_consumption/{zoneCode}/records

Return all reading records of power meters under specified zone. It also supports search in a time range.

Resource URL

https://api.data.um.edu.mo/service/facilities/power_consumption/v1.0.0/{zoneCode}/records

Resource Information

Response formatJSON
Requires authorization?Yes
Rate limited?Yes

Parameters

ParameterRelated FieldRequiredDescriptionTypeFilter TypeExample
zoneCodezoneCoderequiredZone ID, please refer to List of Zone IDs for detailspathsimpleE1-E2
date_fromrecordDatetimeoptionalDatetime, in UTC+08:00 (inclusive)queryrange2018-03-23T15:00:00
date_torecordDatetimeoptionalDatetime, in UTC+08:00 (inclusive)queryrange2018-03-23T15:15:00

Example Request

Example to retrieve all power meter reading records under zone E1-E2 begin from 2018-03-23 15:00:00 to 2018-03-23 15:15:00:

https://api.data.um.edu.mo/service/facilities/power_consumption/v1.0.0/E1-E2/records?date_from=2018-03-23T15:00:00&date_to=2018-03-23T15:15:00

Example Response

Top 100 records will be returned.

{
  "_embedded": [
    {
      "_id": "5ab9edfae7940a931af3a68d",
      "meterCode": "2A01_1",
      "recordDatetime": "2018-03-23T15:15:00+08:00",
      "zoneCode": "E1-E2",
      "readings": {
        "kwh": 80917,
        "i1": 0,
        "i2": 0,
        "i3": 0
      }
    },
    {
      "_id": "5ab9edfae7940a931af3a688",
      "meterCode": "2A02_1",
      "recordDatetime": "2018-03-23T15:15:00+08:00",
      "zoneCode": "E1-E2",
      "readings": {
        "kwh": 10326608,
        "kvarh": 712081,
        "pf": 967,
        "freq": 5002,
        "i1": 555,
        "i2": 474,
        "i3": 393,
        "v1": 2307,
        "v2": 2303,
        "v3": 2306,
        "thd_i1": 228,
        "thd_i2": 248,
        "thd_i3": 282,
        "thd_v1": 19,
        "thd_v2": 18,
        "thd_v3": 17
      }
    },
    {
      "_id": "5ab9edfae7940a931af3a683",
      "meterCode": "2A03_1",
      "recordDatetime": "2018-03-23T15:15:00+08:00",
      "zoneCode": "E1-E2",
      "readings": {
        "kwh": 8,
        "i1": 0,
        "i2": 0,
        "i3": 0
      }
    },
--> Skipped data, too much data for displaying on web page
    {
      "_id": "5ab9cb57e7940a931af0e3f8",
      "meterCode": "1A03_6",
      "recordDatetime": "2018-03-23T15:00:00+08:00",
      "zoneCode": "E1-E2",
      "readings": {
        "kwh": 7750612
      }
    }
  ],
  "_returned": 66
}