Sense Your Smart City: Connect Environmental Sensors to SensorThings API

28
#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

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

Page 1: 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

Page 2: Sense Your Smart City: Connect Environmental Sensors to SensorThings API

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

Page 3: Sense Your Smart City: Connect Environmental Sensors to SensorThings API

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

Page 4: Sense Your Smart City: Connect Environmental Sensors to SensorThings API

News - SensorThings API Published by OGC

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

Page 5: Sense Your Smart City: Connect Environmental Sensors to SensorThings API

News - SensorThings API Compliance Test Published

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

Page 6: Sense Your Smart City: Connect Environmental Sensors to SensorThings API

News - SensorUp is the Official SensorThings Reference Implementation

Page 7: Sense Your Smart City: Connect Environmental Sensors to SensorThings API

News - SensorUp joins ESRI Startup Programme

Page 8: Sense Your Smart City: Connect Environmental Sensors to SensorThings API

News - We are working with the LASS community in Taiwan

Page 9: Sense Your Smart City: Connect Environmental Sensors to SensorThings API

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

Page 10: Sense Your Smart City: Connect Environmental Sensors to SensorThings API

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

Page 11: Sense Your Smart City: Connect Environmental Sensors to SensorThings API

Why build your IoT application with open standards?

Page 12: Sense Your Smart City: Connect Environmental Sensors to SensorThings API

DISCLAIMER

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

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

Page 13: Sense Your Smart City: Connect Environmental Sensors to SensorThings API

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.

Page 14: Sense Your Smart City: Connect Environmental Sensors to SensorThings API

What do you need?

Postman - sending HTTP requests

+

Hive MQ - receive MQTT notifications

Arduino IDE + LinkIt ONE board

Page 15: Sense Your Smart City: Connect Environmental Sensors to SensorThings API

Steps

Register the monitoring

device

Device publish observation

readings

1 2

Receive notifications

Receive latest observations

Page 16: Sense Your Smart City: Connect Environmental Sensors to SensorThings API

prepare the data model

LinkIt ONE

A section of a river

Water Temperature Probe

Water Temperature

A section of a river

Page 17: Sense Your Smart City: Connect Environmental Sensors to SensorThings API

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

Page 18: Sense Your Smart City: Connect Environmental Sensors to SensorThings API

Register a Thing

Deep Insert: check out our first webinar series for details

Thing

Location

Page 19: Sense Your Smart City: Connect Environmental Sensors to SensorThings API

Create a Datastream

Change the id to the Thing you just created

Page 20: Sense Your Smart City: Connect Environmental Sensors to SensorThings API

Device Location and Feature of InterestFeature of Interest

(a polygon)

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

Page 21: Sense Your Smart City: Connect Environmental Sensors to SensorThings API

Step 2

Register the monitoring

device

Device publish observation

readings

1 2

Receive notifications

Receive latest observations

Page 22: Sense Your Smart City: Connect Environmental Sensors to SensorThings API

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

Page 23: Sense Your Smart City: Connect Environmental Sensors to SensorThings API

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

sdk_intro/index.gsp

Page 25: Sense Your Smart City: Connect Environmental Sensors to SensorThings API

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

Page 26: Sense Your Smart City: Connect Environmental Sensors to SensorThings API

Our Arduino SDK available soon

Page 27: Sense Your Smart City: Connect Environmental Sensors to SensorThings API

GIST

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

Page 28: Sense Your Smart City: Connect Environmental Sensors to SensorThings API

Next Week

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