Get data from a single device string.
You can enter a range of dates to get the data for that period.
/v2/strings/<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 string data (last quarter) in for device_id 5
GET /v2/strings/5 HTTP/1.1
Host: apiexternal.mvscada.com
MV-API-Key: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
Content-Type: application/json
{
"plant": "XXXXXXXX",
"devices_id": XXXX,
"start": "2025-04-25 11:15:00",
"end": "",
"strings": [
{
"data_strings_datetime": "2025-04-25 11:15:00",
"data_strings_status": "ok",
"data_strings_alarm": 0,
"data_strings_V1": 612.34,
"data_strings_power": 12.5,
"data_strings_st01": 3.2,
"data_strings_st02": 3.1,
...
"data_strings_st32": null,
"data_strings_st_sum": 45.6,
"data_strings_T1": 24.1,
"data_strings_T2": 23.8,
"devices_id": 5
},
{...}
]
}
Get all datas of a string between requested dates
/v2/strings/<dev-id>/?start=2025-04-25 00:00:00&end=2025-04-25 11:15:00