Skip to Content

Visualize your IoT Data with SAP Analytics Cloud

Introduction

At the upcoming “DSAG (German SAP User Group) Jahreskongress 2016” I have the chance to present how easily you can work in hybrid (cloud-to-on Premise) SAP landscapes. 

In this blog i will show you how easily you can visualize your SAP HCP IoT Data with SAP Analytics Cloud (SAC) and formerly known as SAP BusinessObjects Cloud (BOC).

Since the July release the OData adapter was introduced in SAP Analytics Cloud What’s New in SAP Analytics Cloud and SAP Digital Boardroom – July/August 2016

Please check also this nice blogs, which has me inspired to show the possibility to watch your IoT data in SAP Analytics Cloud: 

The Easiest Way to Stream your iPhone’s Sensor Data to HANA Cloud Platform

From Wroclaw to Berlin and back: IoT analysis with SAP Lumira via jdbc

From Wroclaw to Berlin and back with SensorPhone and SAP HCP IoT

Additional my previous blogs about SAP HCP IoT in combination with SAP HCP Integration Service (Data Services): 

Use SAP HCP IoT Services and HCP Integration Services (HCI-DS) to get your Sensor Data – Part 1

Use SAP HCP IoT Services and HCP Integration Services (HCI-DS) to get your Sensor Data – Part 2

Use SAP HCP IoT Services and HCP Integration Services (HCI-DS) to get your Sensor Data – Part 3

Let´s start:

To fetch your IoT data open the URL from your BOC tenant:

boc_01.PNG

And create a new connection to your SAP HCP data source:

boc_02.PNG

 

Click the + button and add a new “Import Data Connection” and choose OData as type:

boc_03.PNG

boc_04.PNG

Provide/Select the following details:

  • Connection Name: <your connection name>
  • Description: <your description>
  • Data Source Type: <OData Services>
  • URL: https://<host>/com.sap.iotservices.mms/v1/api/http/app.svc
  • User: <your_suser>
  • pw: <suser_pw>

Acquire and Model your HCP IoT Data

Switch in the SAC to the Modeler and define a new model.

Choose “Get data from an app”:

boc_05.PNG

In the next step choose OData Services as source:

 

boc_06.PNG

 

Define your Data Model and create a new query:

 

boc_07.PNG

Enter a name and a description for your query and select your HCP IoT table which you want to use:

 

boc_08.PNG

In the upcoming next screen build your query and select the required fields, in my example i use C_TIMESTAMP, C_LATITUDE and C_LONGITUDE.

Futhermore i define i filter that i only want to get my favorite data.

 

boc_09.PNG

After you start the import, you are able to see your data as selected:

 

boc_10.PNG

 

 

Convert your Data:

For my sceanario i need to transform my data, this is required because i want to use the coordinates in a SAC for Geo Map.

 

  1. Duplicate the C_ALTITUDE column because i wnat to use this later for my location identifier
  2. create the required location based on the C_LATITUDE and C_LONGITUDE:

 

boc_11.PNG

 

boc_12.PNG

 

As result you get a new colum from type location:

boc_14.PNG

 

The last step in the SAC modeler is to save the model with a name of you choice and press “Create Model”:

 

boc_16.PNG

In the overview you can now see your created model:

 

boc_17.PNG

Create your Story

 

Now it´s time to visualize your IoT data, for this switch to the Stories perspective in SAC and create a new story (select Add Canvas):

 

boc_19.PNG

In the next upcoming screen choose “Chart” as object:

 

boc_20.PNG

 

Select your previously created data model as source:

 

boc_21.PNG

 

Afterwards you can now create your visualization:

 

boc_22.PNG

 

Add a Geo Map:

 

boc_23.PNG

boc_24.PNG

Now we need to create a new layer:

 

  1. click on the “Add Layer”
  2. select your data source
  3. select you location dimension and optional change the color, the map etc.:

boc_25.PNG

 

As result you can now see your IoT data:

 

boc_26.PNG

 

You can now scroll into your map and get more details for a specific selection.

Fo example here you can see there was a traffic jam:

 

boc_27.PNG

 

Conclusion

 

I think you can see how easily you can work with your IoT Data and with SAP HCP and SAP Analytics Cloud.

 

Stay tuned in the next blog I will show you how can you fetch the SAP HCP IoT data via SAP HCP Integration Services and push this to an SAP Gateway OData service to store my data in an OnPremise HANA DB.

 

Additionally  … sorry it´s composed in German ;o) our session about this stuff:

 

Hinweis_DSAG_awe_16_08_01 (002).jpg

 

Cheers,

Fabian

15 Comments
You must be Logged on to comment or reply to a post.