Embed a Dashboard Snapshot in a Report
Embed the preconfigured Environmental Monitor dashboard into a report. All widgets on this dashboard use the Entity from dashboard state alias — they display values from the entity set as the datasource in the Dashboard component.
Step 1. Preparation
Section titled “Step 1. Preparation”- Prepare a device that sends
temperatureandhumiditytelemetry to ThingsBoard. If you don’t have a real device, use the Rule Engine to simulate telemetry in real time. - Download the environmental_monitor_dashboard.json and import it into your ThingsBoard instance, or use an existing dashboard.
Step 2. Add the component
Section titled “Step 2. Add the component”- Go to Reporting ⇾ Templates.
- Open an existing report template or create a new one.
- Drag the Dashboard component into the content area.
Step 3. Configure the data source
Section titled “Step 3. Configure the data source”- In the Datasource section, select the device whose data should appear in the dashboard.
- In the Target dashboard section, choose Environmental Monitor.
- Click Save.
Step 4. Save the report template
Section titled “Step 4. Save the report template”Update the file name pattern so that exported reports are easy to identify. For example:
environmental-monitor-report-%d{yyyy-MM-dd_HH:mm:ss}Save the template.
Step 5. Test
Section titled “Step 5. Test”Click Generate test report to verify the configuration. The report includes a snapshot of the Environmental Monitor dashboard with data from the selected device.