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.
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.
- 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
readingswith the columnssnandtemperature. - Install the new version with Edit source-code. The platform creates the table.
- 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'- 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- 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.