Spanish Total.js
Italiano
Documentazione Per agenti IA
Indice

Open data API

The public JSON addresses of published devices, sensors, zones, data views and reports, and the panel page.

.md Sito web

Questa pagina non è ancora tradotta. Stai leggendo l’originale.

In questa pagina

Admin publishes the data you mark with Publish a value to an API endpoint (or Publish to API endpoint for a sensor) at public addresses. They need no sign-in and answer with JSON. An item that is not published answers 404.

All addresses start with the address of Admin, for example https://iot.example.com. Times are in UTC.

Devices

GET /opendata/devices/?id=<device id>

The device id is shown in the device detail. The answer has the device, its driver, its position, its custom attributes and configuration, and items with each sensor:

{
    "id": "JasoWV1cL61f",
    "driverid": "demoweather",
    "driver": "Demo weather station",
    "sn": "WS-0001",
    "lat": 48.7363,
    "lng": 19.1462,
    "locality": "City park",
    "attrs": {},
    "items": [
        { "id": "demoweather_temperature", "name": "Temperature", "format": "{0} °C", "decimals": 1, "value": 19.9, "type": "number", "isonline": true, "stats": "minutely", "dtvalue": "2026-11-20T06:10:58.000Z", "raw": "19.9" }
    ]
}

Sensors

GET /opendata/sensors/?id=<device id><sensor id>

The full address of a published sensor is shown under the sensor in the device detail. The answer has the sensor, its device and driver, its last value, the raw text of the value, isonline and dtvalue, the time of the value.

Zones

GET /opendata/zones/?id=<zone id>

The answer has the zone with its area (the points of the polygon), its position, picture and custom attributes, and items with the sensors of the zone and their last values. Inactive zones are not available.

Data views

GET /opendata/dataviews/?id=<data view id>

The answer has the result in value, the operation, format and decimals, and items with the value of each sensor:

{
    "id": "JassHN1c261f",
    "name": "Average temperature",
    "format": "{0} °C",
    "operation": "avg",
    "decimals": 1,
    "value": 19.75,
    "items": [
        { "driverid": "demoweather", "deviceid": "JasoWV1cL61f", "sensorid": "demoweather_temperature", "value": 19.5, "dtvalue": "2026-11-20T06:10:18.000Z" }
    ]
}

Reports

GET /opendata/reports/?id=<report id>

The answer has the report with its fields and the rows of its query in items. Copy the address with Copy API endpoint in the report menu.

Panels

GET /opendata/panels/?id=<panel id>

This address is the web page of a panel, not JSON. It shows the last content and updates when new content arrives. See Panels.

Fatto in Europa