Meteos

Get a list of the meteos (anemos, radiations cell) in the plant with the data of the current time.

You can enter a range of dates to get the data for that period.

/v1/<plant>/meteos/<id_meteo>/?start=XXX&end=XXX

Arguments

  • plant [*]: Name of the plant where the meteo are located.
  • id_meteo: (Optional) ID meteo. If you enter the id of a meteo only show the data of that meteo.
  • 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.
  • end: (Optional) (yyyy-mm-dd hh:ii:ss) End date of search interval.
    Can not be greater than the current date or the difference
    between dates can not be greater than 32 days

Response

JSON object with the result. May return the following errors:

  • 404 Not found : You do not have access to the required resource or no exits
  • 400 Wrong inverter id: The id format is incorrect
  • 400 Bad Dates: Dates entered are incorrect
  • 204 No data found: The data entered have not produced any results

Example

Get all inverters data (last quarter) in DonBenito plant

GET /v1/DonBenito2/meteos/ HTTP/1.1
Host: apiexternal.mvscada.com
MV-API-Key: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
Content-Type: application/json

Response

{
    "plant": "DonBenito2",
    "id_meteo": "all",
    "start": "2017-04-10 17:45:00",
    "end": "",
    "meteos": [
        {
            "dir3": null,
            "dir2": null,
            "dir1": null,
            "temp_mod2": null,
            "datetime": "2017-04-10 17:45:00",
            "id": "EPPC31-SON1",
            "temp_mod1": 58.9,
            "plant": "DonBenito2",
            "temp_mod3": null,
            "temp_amb1": 30.1,
            "temp_amb2": null,
            "temp_amb3": null,
            "radiac1": 1017,
            "radiac3": null,
            "radiac2": null,
            "temp_aux2": null,
            "temp_aux3": null,
            "temp_aux1": null,
            "alarma": 0,
            "anemo1": null,
            "anemo2": null,
            "anemo3": null
        },
        {
            "datetime": "2017-04-10 17:45:00",
            "id": "EPPC51-SON1",
            ...
            "anemo3": null
        },
        {...}
    ]
}

Other examples

Get the last data of all meteos on the plant 'DonBenito2'

/v1/DonBenito2/meteos/

Get all datas of all meteos between requested dates

/v1/DonBenito2/meteos/?start=2017-03-30 08:00:00&end=2017-03-31 08:00:00

Get the data of the requested meteo in the requested date

/v1/DonBenito2/meteos/son001/?start=2017-03-30 08:00:00

Get all datas of the requested meteo between requested dates

/v1/DonBenito2/meteos/son001/?start=2017-03-30 08:00:00&end=2017-03-31 08:00:00