Using this EndPoint you can insert a reading into a given meter.
EndPoint : https://app.fracttal.com/api/meter_reading/:id
PUT Method
Input Parameters
Parameter | Field type | Required | Description |
id | Text | Yes | Code of the asset associated with the meter. |
Body Parameters
Field | Field type | Required | Description |
date | Text | Yes | Date of reading. Formato: 'YYYY-MM-DDTHH:MM:SS-UTC' Ejemplo:'2016-07-12T20:00:00-03' |
value | Real | Yes | Value of the reading |
serial | Text | Yes | Meter Serial |
Output parameters
Parámetro | Tipo de campo | Descripción |
meter | Text | Meter Information Parameter / Field type / Description counter_offset_value / Integer / Base value counter_value / Integer / Accumulated value max_value / Text / Maximum value min_value / Integer / Minimum value monthly_average_data / Text / Average monthly estimate last_data / Text / Last reading |
tasks | Text | Task information that was triggered by the reading |
Example:
Example Request:
https://app.fracttal.com/api/meter_reading/HCY1-P1
Body:
{"date":"2016-12-07T20:00:00-03","value":2050, "serial":"112"}
Example Response:
{
"success": true,
"message": "200",
"data": {
"meter": {
"counter_offset_value": 2011,
"counter_value": 4061,
"max_value": null,
"min_value": null,
"monthly_average_data": 62,
"last_data": {
"date": "2016-12-07T00:00:00+00:00",
"value": 2050,
"accumulated_value": 4061
}
},
"tasks": [
{
"task": " ANNUAL MAINTENANCE TASK "
}
]
},
"total": 0
}