Create a Dashboard Using Data from AnythingDB

  1. From the left menu, click Real Time Visualization > Workbooks.
  2. Select the desired folder. By default, a root folder with your username is present.
  3. Click New Workbook.


  4. Create a Data Table by clicking the + icon. Data tables define the queries and source data repository definitions to retrieve data.


    Figure 1.
  5. Under Data Table Settings, enter a title and click the check mark to save it. Enter a description, if desired.
  6. With Data Sources highlighted, under File/URL, select SmartWorks IoT.
  7. Enter the following:
    1. Client ID: from the App created in Create an App.
    2. Client Secret: from the App created in Create an App.
    3. Grant Type: type of App created in Create an App. In this case, use client credentials.
    4. Scope: from the App created. Choose Thing to retrieve the Thing status of a category, and Data to retrieve the data stored at the Raw History section.
    5. URL: to make the request:
      To retrieve the Things status of a Category:
      https://api.swx.altairone.com/spaces/YourSpaceID/categories/YourCategoryName/things-status
      to retrieve the data stored at the Raw History section for different things:
      https://api.swx.altairone.com/spaces/YourSpaceID/ data/?source[]=FirstThingUID&source[]=SecondThingUID
    1. Record path: Choose Data.
  8. Click Generate Columns, and then click Refresh Preview.
    The columns are populated and the requested data is displayed.


    Figure 2.
  9. Click Save.
  10. Click Back to return to the Edit Dashboard view.