Spanish Total.js
Slovenčina
Dokumentácia Pre AI agentov
Obsah

Keep every reading of a device in a report

Store each message of a driver in its own table and list it in a report.

.md Web

Táto stránka ešte nie je preložená. Čítaš originál.

The statistics of a sensor keep the minimum, maximum and count of each interval. When you need every single reading, for example to check a device, let the driver write it to its own storage table and read the table in a report.

  1. Ask the author of the driver to add a storage table and to insert each reading into it, as described in Storage. For example, a table readings with the columns sn and temperature.
  2. Install the new version with Edit source-code. The platform creates the table.
  3. Find the name of the table with a report preview. Open Reports, select Create, write this query and select Preview data from SQL command:
SELECT table_name FROM information_schema.tables WHERE table_schema = 'storage'
  1. Replace the query with one that reads the table, using the name you found:
SELECT sn, temperature, dtcreated FROM storage.db1yr6f1treadings ORDER BY dtcreated DESC
  1. Set Map fields to sn=Serial number, temperature=Temperature, dtcreated=Received, give the report a name and select SUBMIT.

The report lists every reading with the time it arrived. Download it as CSV or XLSX from the report.

Vyrobené v Európe