Report
Build tables from SQL queries, preview them, download them and publish them.
Questa pagina non è ancora tradotta. Stai leggendo l’originale.
In questa pagina
A report is a table built from an SQL query on the database of the platform. You can preview it, copy it, download it and publish it as JSON.

Create a report
- Open Reports and select Create.
- Fill in the Name.
- Write the SQL query in the editor. Only queries that read data are accepted.
- Select Preview data from SQL command to check the result.
- In Map fields, give the columns readable names, separated by commas:
column=Label, column=Label. - Set the Icon, Color, Category and Note if you like.
- Select SUBMIT.

- Convert date and time to local time shows the dates in the time of the browser. Without it, dates are in UTC.
- Publish a value to an API endpoint makes the report available as JSON. See Open data API.
A simple query to start with lists the last value of every sensor:
SELECT device, sensor, value, dtvalue FROM view_sensor ORDER BY device, sensorOpen a report
Select a report to open its data. From there you can copy the data to the clipboard or download it as CSV or XLSX.

The report menu
Select ... on a report:

- Preview opens the data.
- Copy API endpoint copies the address of the published report.
- Update changes the report, Clone creates a copy and Remove deletes it.