Get data from a single device meter.
You can enter a range of dates to get the data for that period.
/v1/meters/<dev-id>/?start=XXX&end=XXX
dev_id [*]: Device id number
start: (Optional) (yyyy-mm-dd hh:ii:ss) Start date of search interval.
If you only enter the start date it will show the reading of that moment.
JSON object with the result. May return the following errors:
Get all meters data (last quarter) in for device_id 5
GET /v1/meters/5 HTTP/1.1
Host: apiexternal.mvscada.com
MV-API-Key: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
Content-Type: application/json
{
"plant": "XXXXXXXX",
"start": "2017-04-10 17:30:00",
"end": "",
"meters": [
{
"inst_id": "XXXXXXX_01",
"reactivaq1": 5814,
"reactivaq2": 1857,
"reactivaq3": 107887,
"reactivaq4": 40606,
"datetime": "2017-04-10 17:30:00",
"activa_consumida": 7604,
"activa_generada": 1999475
},
{
"inst_id": "XXXXXXX_01",
"reactivaq1": 5814,
"reactivaq2": 1857,
"reactivaq3": 107887,
"reactivaq4": 40606,
"datetime": "2017-04-10 17:45:00",
"activa_consumida": 7604,
"activa_generada": 1999485
},
{...}
]
}
Get all datas of all meters between requested dates
/v1/meters/<dev-id>/?start=2017-03-30 08:00:00&end=2017-03-31 08:00:00