TC2.16 - IOT Application Creation, using personal devices and exploiting city devices

×

Warning message

You can't delete this newsletter because it has not been sent to all its subscribers.

Test Case Title

TC2.16 - IOT Application Creation, using personal devices and exploiting city devices

Goal

Developing IOT Application that can read data provided by personal devices (like sigfox) or city sensor (like raspberry

Once the data are read they are showed in two dashboard gauge chart

Can develop a dashboard

Can exploit private data from an external provider

Prerequisites

A simple skill for using IOT application.

A Sigfox sensor already registered on the Sigfox site.

Using a PC or Mobile with a web browser.

The following functionalities are available only for specific Snap4city users with specific privileges.

Expected successful result

Gauge charts on a dashboard to show the value of the sensors.

Steps

 

 

Example 1: Use a Personal Device

Suppose you have a personal sensor type SigFox and want to configure it to see the data sent by that sensor on a dashboard.

The sensor must first be registered on the official SigFox portal and once this has been done the resulting ID of the set of registered sensors on that site must be copied.

The sensor id must be inserted in the configuration of the "Sigfox" node, which has been dragged and dropped from the S4C menu.

Example Flow: Import "TC2.16 - IOT Application Creation, using personal devices" with the steps described in TC2.13 (on cloud) or import it from a file (if you have not an IOT Application on cloud)

The relative path that is shown on a yellow background is important because it is used to define the callback to call to have the data on this node coming directly from the portal sigfox

Once you have created and deployed the node you must go and insert the callback on the sigfox portal:

Clicking on the top right “new” button it is possible to create a new callback with this information:

After entering the data visible above and pressing ok, a line like this must appear on the main page of the callbacks

If you have more than one device registered with sigfox, you can filter it through the "sigfox device filter" node.

Inserting the id of the sensor desired in the configuration tab

Connecting the last node to a “Gauge Chart” node:

It is possible to see the data of the sigfox sensor in the dashboard just created:

Example 2:  Use a city sensor

 

It is also possible to access the data of public sensors distributed in the city with the node “IoT Directory”.

In the configuration tab of this node the user can search a sensor based on his name or his value and the research can be parametric or map based

 

Selected the desired device and clicking on the done button. A popup is showed to the user representing an import of a flow that read the data from the sensor and provide them in the output of the node created in the flow where the iot directory nod is deployed:

Created flow:

Created node

This node can be used to read the data collected by the city sensor.