Skip to main content

Statistics of the average temperature, maximum temperature and minimum temperature of each day in the past 7 days

Scenario

This case describes how to configure the data source to display the average temperature, maximum temperature, and minimum temperature of each day for the past seven days. After the data source configuration is completed, the data is generally displayed using charts or table components.

Prerequisites

  1. The model has been created on the M-IoT platform;
  2. The temperature sensor has collected temperature data to the M-IoT platform;

Implementation steps

In Admin mode, click the Data Sources submenu under Development Management in the left menu.

⚠️ Notes:The model in this case is named demo, which contains the temperature indicator set_T. The parameter configuration is configured according to the content circled in red

This case uses device data source as an example

  1. Select Device Data Source, click Add to enter the configuration interface, and click OK after the configuration is completed. Device data source configuration interface
  • Time dimension: Click the radio button after the time dimension to display the time dimension parameters
  • Time period: Statistics for the past 7 days
  • Collection cycle: once a day
  • Collection start and collection interval: Count the temperature from 0:00 to 24:00 every day. Fill in according to the actual situation. For example, if the effective statistical time is from 8:00 am to 18:00 pm every day, fill in 8 and 10 respectively.
  • Parameters: Click the Add Parameter button to add three parameters, namely:
    1. Temperature settings, aggregation mode averages.
    2. Temperature setting, maximum value of polymerization mode.
    3. Temperature setting, minimum value for polymerization mode.
  1. On the data source publishing page, select Object Array for Output Type and click OK. Device data source configuration interface

⚠️ The difference between Device Page and Dashboard Page is that the Dashboard Page can be configured with multiple models, while the Device Page can only be configured with one model.