Develop a monitoring dashboard using IoT Studio

Updated at:
Copy as MD

IoT Studio is an IoT development platform. Use the web application editor in IoT Studio to build a monitoring dashboard that displays data from your devices.

Procedure

  1. Log on to the IoT Studio console. In the upper-left corner of the page, select an instance. In the left-side navigation pane, click Project management. On the Project management page, create a standard project. For more information, see Projects.
    After you create the project, you are automatically directed to its page.
  2. In the left-side navigation pane of the project, click Products then click Associate product to associate your existing weather monitoring product with the project. For more information, see Associate a product with a standard project.
  3. In the left-side navigation pane, click Devices then click Associate device to associate the source device with this project. For more information, see Associate a device with a standard project.
  4. In the left-side navigation pane, click Homepage. On the Web app tab, click New to create a new web application. For more information, see Create a web application.
  5. In the web application editor, build a real-time weather data monitoring dashboard.
    1. Select Create page, and configure display settings for the dashboard, such as the page title and background color. In the left-side navigation pane, click the 组件 icon and choose Components.
    2. From the component list, drag a rectangle component onto the canvas and configure its style. For more information, see Rectangle.
    3. From the component list, drag a text component and place it over the rectangle component. Then, configure the data source of the text component to the temperature property of the weather monitoring device. For more information, see Text.
      After configuration, the text component displays the temperature value from the weather monitoring device.
    4. Drag another text component from the component list, place it over the rectangle component, and set its text to Temperature (°C). This text serves as the component's title.
    5. Select the three configured components, right-click, and choose Group.
    6. Duplicate the group based on the number of properties you want to display.
      Duplicating a component group also copies the display settings and data source configurations of its components.
    7. Right-click each duplicated component group and choose Ungroup.
      All configurations in a duplicated component group are identical. You must ungroup the components to reconfigure their data sources and other settings.
    8. Set the data source of each text component to a different property of the product, and update the corresponding property names and units.
      If needed, you can add other components to the page, such as an image component. For more information, see Usage of basic components.
      The following shows an example of the dashboard. The dashboard displays real-time data from the weather monitoring device in a card-based layout, including parameters such as temperature (°C), humidity (%), atmospheric pressure (hPa), altitude (m), x/y/z-axis acceleration (mg), running speed (km/h), longitude (°), latitude (°), battery voltage (mV), and gas resistance.
    9. After you finish configuring all components, click 预览 Preview at the top of the page to preview and test the application page.
  6. In the web application editor, create a new blank page to build a chart that visualizes property data.
    In the following steps, you will create a temperature chart as an example.
    1. In the left-side navigation pane, click the 页面 icon, choose Pages, then click the + icon to add a new blank page.
    2. In the left-side navigation pane, click the 组件 icon and choose Components. Drag a real-time chart component onto the canvas and configure its data source as the temperature property of the weather monitoring device. For more information, see real-time chart (legacy).
    3. Configure the display style of the chart.
      Adjust the chart's size and coordinates, specify whether to show the time range picker, and set the series name to Temperature.
      Note If you select the checkbox for Time range picker, the chart displays a time range picker. After publishing the application, you can select a time range to view the corresponding temperature data.
    4. After configuration, click 预览 Preview at the top of the page to preview and test the application page.
  7. Click 发布 Publish at the top of the page to publish the application.

Next steps

After publishing the application, go to 设置 App settings in the left-side navigation pane to enable token-based authentication or bind a custom domain name to the application.

For more detailed instructions on web visualization development, see Web Visualization Development.