Sense Your Smart City: Connect Environmental Sensors to SensorThings API

Post on 08-Jan-2017

249 views 2 download

Transcript of Sense Your Smart City: Connect Environmental Sensors to SensorThings API

#1: Sense Your Smart City - Connect Environmental Sensors to SensorThings API

Dr. Steve Liang, Ph.D., P.Eng. Founder and CEO, SensorUp Inc. Associate Professor, University of Calgary

Click here for webinar recording

About Dr. Steve Liang๏Associate Professor, Geomatics Engineering, Uni. Calgary

๏AITF-Microsoft Industry Research Chair on Open Sensor Web (2011~2014)

๏Chair OGC SensorThings API Standard Working Group

๏Rapporteur, ITU-T SG12/11 on Internet of Things Test Specifications

๏Founder and CEO, SensorUp Inc

About SensorUp๏We are a leader in Sensor Web

and IoT Platforms.

๏We offer innovative and comprehensive SensorThings solutions.

๏We are proud member of Eclipse and Open Geospatial Consortium

News - SensorThings API Published by OGC

http://docs.opengeospatial.org/is/15-078r6/15-078r6.html

News - SensorThings API Compliance Test Published

https://github.com/opengeospatial/ets-sta10

News - SensorUp is the Official SensorThings Reference Implementation

News - SensorUp joins ESRI Startup Programme

News - We are working with the LASS community in Taiwan

What will be covered in this webinar series

Sense Your Smart City: Connect Environmental Sensors to SensorThings API

Visualize Your Smart City: Build a Real-Time Smart City Dashboard for SensorThings API

Analyze Your Smart City: Build Sensor Analytics with SensorThings API

Build Interoperable Smart City Applications Effortlessly

Today’s learning outcomes๏Review of SensorThings entities (ISO 19156 O&M)

๏Register an environmental sensing device

๏Publish real-time readings to SensorThings

๏Arduino environment

๏ LinkIt ONE IoT board

๏ using both HTTP and MQTT

Why build your IoT application with open standards?

DISCLAIMER

Today’s webinar is about the underlying API and data model.

Today’s is NOT about an end-to-end solution.

Let’s say we want to monitor how warm (or cold) is a certain section of a river.

so we know when will be a good time to go rafting.

What do you need?

Postman - sending HTTP requests

+

Hive MQ - receive MQTT notifications

Arduino IDE + LinkIt ONE board

Steps

Register the monitoring

device

Device publish observation

readings

1 2

Receive notifications

Receive latest observations

prepare the data model

LinkIt ONE

A section of a river

Water Temperature Probe

Water Temperature

A section of a river

How to know a new Thing joining…

Let’s subscribe Thing entities first, so that we can receive notifications when a new Thing is created.

Host: scratchpad.sensorup.com Port: 1883 or 9001 Subscription topic: v1.0/Things

Register a Thing

Deep Insert: check out our first webinar series for details

Thing

Location

Create a Datastream

Change the id to the Thing you just created

Device Location and Feature of InterestFeature of Interest

(a polygon)

The target of this sensor is this section of the river.

Step 2

Register the monitoring

device

Device publish observation

readings

1 2

Receive notifications

Receive latest observations

Hardware you need

$59 USD $8.9 USD $14.9 USDSwiss army knife of IoT (wifi, GPRS, Bluetooth, battery)

Save your time. No need to solder.

Linkit ONE Grove shield for Arduino Temperature and Humidity sensor

Prepare your dev environmenthttps://labs.mediatek.com/site/global/developer_tools/mediatek_linkit/

sdk_intro/index.gsp

Some useful dev toolsSensorThings Scratchpad (for connecting your IoT device)https://scratchpad.sensorup.com/scratchpad-register.html

http://scratchpad.sensorup.com/OGCSensorThings/display/v1.0

SensorThings Example (for app development)http://example.sensorup.com/v1.0

Our Arduino SDK available soon

GIST

https://gist.github.com/liangsteve/16ec7e024d2eff0c266e9c5e8495dbaa

Next Week

Visualize Your Smart City: Build a Real-Time Smart City Dashboard for SensorThings API