![Page 1: Sense Your Smart City: Connect Environmental Sensors to SensorThings API](https://reader031.vdocuments.mx/reader031/viewer/2022030305/58715c8b1a28ab8e5b8b6983/html5/thumbnails/1.jpg)
#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](https://reader031.vdocuments.mx/reader031/viewer/2022030305/58715c8b1a28ab8e5b8b6983/html5/thumbnails/2.jpg)
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](https://reader031.vdocuments.mx/reader031/viewer/2022030305/58715c8b1a28ab8e5b8b6983/html5/thumbnails/3.jpg)
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](https://reader031.vdocuments.mx/reader031/viewer/2022030305/58715c8b1a28ab8e5b8b6983/html5/thumbnails/4.jpg)
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](https://reader031.vdocuments.mx/reader031/viewer/2022030305/58715c8b1a28ab8e5b8b6983/html5/thumbnails/5.jpg)
News - SensorThings API Compliance Test Published
https://github.com/opengeospatial/ets-sta10
![Page 6: Sense Your Smart City: Connect Environmental Sensors to SensorThings API](https://reader031.vdocuments.mx/reader031/viewer/2022030305/58715c8b1a28ab8e5b8b6983/html5/thumbnails/6.jpg)
News - SensorUp is the Official SensorThings Reference Implementation
![Page 7: Sense Your Smart City: Connect Environmental Sensors to SensorThings API](https://reader031.vdocuments.mx/reader031/viewer/2022030305/58715c8b1a28ab8e5b8b6983/html5/thumbnails/7.jpg)
News - SensorUp joins ESRI Startup Programme
![Page 8: Sense Your Smart City: Connect Environmental Sensors to SensorThings API](https://reader031.vdocuments.mx/reader031/viewer/2022030305/58715c8b1a28ab8e5b8b6983/html5/thumbnails/8.jpg)
News - We are working with the LASS community in Taiwan
![Page 9: Sense Your Smart City: Connect Environmental Sensors to SensorThings API](https://reader031.vdocuments.mx/reader031/viewer/2022030305/58715c8b1a28ab8e5b8b6983/html5/thumbnails/9.jpg)
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](https://reader031.vdocuments.mx/reader031/viewer/2022030305/58715c8b1a28ab8e5b8b6983/html5/thumbnails/10.jpg)
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](https://reader031.vdocuments.mx/reader031/viewer/2022030305/58715c8b1a28ab8e5b8b6983/html5/thumbnails/11.jpg)
Why build your IoT application with open standards?
![Page 12: Sense Your Smart City: Connect Environmental Sensors to SensorThings API](https://reader031.vdocuments.mx/reader031/viewer/2022030305/58715c8b1a28ab8e5b8b6983/html5/thumbnails/12.jpg)
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](https://reader031.vdocuments.mx/reader031/viewer/2022030305/58715c8b1a28ab8e5b8b6983/html5/thumbnails/13.jpg)
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](https://reader031.vdocuments.mx/reader031/viewer/2022030305/58715c8b1a28ab8e5b8b6983/html5/thumbnails/14.jpg)
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](https://reader031.vdocuments.mx/reader031/viewer/2022030305/58715c8b1a28ab8e5b8b6983/html5/thumbnails/15.jpg)
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](https://reader031.vdocuments.mx/reader031/viewer/2022030305/58715c8b1a28ab8e5b8b6983/html5/thumbnails/16.jpg)
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](https://reader031.vdocuments.mx/reader031/viewer/2022030305/58715c8b1a28ab8e5b8b6983/html5/thumbnails/17.jpg)
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](https://reader031.vdocuments.mx/reader031/viewer/2022030305/58715c8b1a28ab8e5b8b6983/html5/thumbnails/18.jpg)
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](https://reader031.vdocuments.mx/reader031/viewer/2022030305/58715c8b1a28ab8e5b8b6983/html5/thumbnails/19.jpg)
Create a Datastream
Change the id to the Thing you just created
![Page 20: Sense Your Smart City: Connect Environmental Sensors to SensorThings API](https://reader031.vdocuments.mx/reader031/viewer/2022030305/58715c8b1a28ab8e5b8b6983/html5/thumbnails/20.jpg)
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](https://reader031.vdocuments.mx/reader031/viewer/2022030305/58715c8b1a28ab8e5b8b6983/html5/thumbnails/21.jpg)
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](https://reader031.vdocuments.mx/reader031/viewer/2022030305/58715c8b1a28ab8e5b8b6983/html5/thumbnails/22.jpg)
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](https://reader031.vdocuments.mx/reader031/viewer/2022030305/58715c8b1a28ab8e5b8b6983/html5/thumbnails/23.jpg)
Prepare your dev environmenthttps://labs.mediatek.com/site/global/developer_tools/mediatek_linkit/
sdk_intro/index.gsp
![Page 24: Sense Your Smart City: Connect Environmental Sensors to SensorThings API](https://reader031.vdocuments.mx/reader031/viewer/2022030305/58715c8b1a28ab8e5b8b6983/html5/thumbnails/24.jpg)
Let’s take a look at the Arduino code
Click here to GIST
![Page 25: Sense Your Smart City: Connect Environmental Sensors to SensorThings API](https://reader031.vdocuments.mx/reader031/viewer/2022030305/58715c8b1a28ab8e5b8b6983/html5/thumbnails/25.jpg)
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](https://reader031.vdocuments.mx/reader031/viewer/2022030305/58715c8b1a28ab8e5b8b6983/html5/thumbnails/26.jpg)
Our Arduino SDK available soon
![Page 27: Sense Your Smart City: Connect Environmental Sensors to SensorThings API](https://reader031.vdocuments.mx/reader031/viewer/2022030305/58715c8b1a28ab8e5b8b6983/html5/thumbnails/27.jpg)
GIST
https://gist.github.com/liangsteve/16ec7e024d2eff0c266e9c5e8495dbaa
![Page 28: Sense Your Smart City: Connect Environmental Sensors to SensorThings API](https://reader031.vdocuments.mx/reader031/viewer/2022030305/58715c8b1a28ab8e5b8b6983/html5/thumbnails/28.jpg)
Next Week
Visualize Your Smart City: Build a Real-Time Smart City Dashboard for SensorThings API