Update a reading in a meter

This EndPoint can be used to insert a reading into a given meter.

Input parameters

Parameter

Type

Required

Description

id

Text

Yes

Code of the asset associated with the meter.

Body parameters

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

Reading value

serial

Text

Yes

Meter serial

Output parameters

Parameter

Type

Description

meter

Text

Meter information:

ParameterType of fieldDescription
counter_offset_valueIntegerBase value
counter_valueIntegerAccumulated value
max_valueTextMaximum value
min_valueTextMinimum value
monthly_average_dataTextEstimated monthly average
last_dataTextLast reading
tasks

Text

Information on the task that was triggered by the reading

Example:

Request: (PUT)https://app.fracttal.com/api/meter_reading/HCY1-P1

{"date":"2016-12-07T20:00:00-03","value":2050, "serial":"112"}
{
  "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": "TAREA ANUAL DE MANTENIMIENTO"
      }
    ]
  },
  "total": 0
}

Test It

Language