Unknown macro: {next_previous_links}
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 7 Next »

Introduction

This sample demonstrates an analysis if data that are collected on the usage of smart home appliances.

Prerequisites

Set up the general prerequisites required for WSO2 DASbefore you start.

Building the sample

Follow the steps below to build the sample.

Uploading the Carbon Application

Follow the steps below to upload the Carbon Application (c-App) file of this sample. For more information, see Carbon Application Deployment for DAS.

  1. Log in to the DAS management console using the following URL: https://<DAS_HOST>:<DAS_PORT>/carbon/
  2. Click Main, and then click Add in the Carbon Applications menu.
  3. Click Choose File, and upload the <DAS_HOME>/samples/capps/Smart_Home.car file as shown below.
    adding the new C-App
  4.  Click Main, then click Carbon Applications, and then click List view, to see the uploaded Carbon application as shown below. 
    list of all available C-Apps

Executing the sample

Follow the steps below to execute the sample.

Running the data publisher

Navigate to <DAS_HOME>/samples/smart-home/ directory in a new CLI tab, and execute the following command to run the data publisher: ant

This reads the <DAS_HOME>/samples/smart-home/resources/access.log file, and sends each log line as an event to the event stream which is deployed through the above C-App.

Viewing the output

You may use the Data Explorer or the Analytics Dashboard of the WSO2 DAS Management Console to browse published sample events.

Using the Data Explorer 

Follow the steps below to use the Data Explorer to view the output. 

  1. Log in to the DAS management console if you are not already logged in.
  2. Click Main, and then click Data Explorer in the Interactive Analytics menu.
  3. Select ORG_WSO2_SAMPLE_SMART_HOME_DATA for the Table Name as shown below.
    select the data source
  4. Click Search. You view the published data as shown below.
    data published to WSO2 DAS

Using the Analytics Dashboard

Follow the steps below to use the Analytics Dashboard to view the output. 

  1. Log in to the DAS management console if you are not already logged in.
  2. Click Main, and then click Analytics Dashboard in the Dashboard menu.
  3. Log in to the Analytics Dashboard using admin/admin credentials.
  4. You view the Smart Home Dashboard which is already deployed through the C-App as shown below.
    smart home dashboard
  5. Click View option of the Dashboard. It opens the Smart Home Dashboard with three gadgets in a new tab of your Web browser as shown below.
    gadgets in the Dashboard
  • No labels