SlideShare a Scribd company logo
#2: Visualize Your Smart City
- Build a Real-Time Smart City Dashboard for SensorThings API
Dr. Steve Liang, Ph.D., P.Eng.
Founder and CEO, SensorUp Inc.
Associate Professor, University of Calgary
Click here for webinar recording
Click here for source codes
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 Press Release
News - We are setting up a
SensorThings for Taiwan’s LASS, a very
large air quality monitoring network.
News - Calgary air quality update
http://example.sensorup.com/display/v1.0/Datastreams(4207)/Observations?
$expand=Datastream&$filter=phenomenonTime%20lt%202016-08-09T02:00:00Z
Hailstorm
What’s going
on here?
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)
๏ Creating a Chart for a Datastream with multiple requests
๏ Creating a Chart for a Datastream with a single request
๏ Create a Map showing the Location of the Thing/Datastream
๏ Create a simple dashboard
๏ Putting them all together into a single page
Why build your IoT application
with open standards?
IoT System
#1
IoT System
#2
IoT System
#3
IoT System
#N…
Write N times different
but similar codes!!
Wait.. how about
version updates?
Write N x M times,
where M is the average
number of updatesWrite an application for
proprietary IoT APIs
Why build your IoT application
with open standards?
IoT System
#1
IoT System
#2
IoT System
#3
IoT System
#N…
Write 1 time and use N
times.
Wait.. how about
version updates?
OGC standards are
stable and future proof.Write an application for
open standard IoT API
Today we will use SensorUp’s air quality
monitoring system in Calgary as an example.
http://example.sensorup.com/v1.0
What do you need?
Any text editor
A modern browser
(Chrome in this webinar)
A JSON viewer plugin
(JSONView in this
webinar)
IMPORTANT
We are using Highstock.js today.
Highstock/Highchart is open source
and free for non-commercial uses. But
it is NOT free for commercial uses.
Acknowledgement
Thanks to James Badger
for preparing today’s
tutorials’ source codes.
James and I are writing a
book on SensorThings API
and IoT/Smart Cities.
Please stay tuned!
The data model
AirBox
The Air in My
Backyard
• Plant Tower G3
• DHT22
• Particulate Matter 2.5
• Relative Humidity
• Air Temperature
My Backyard
#1 Create a Chart for a Datastream
๏ What information do we need to create a chart?
time series
(observations)
chart title
y-axis label
tooltip
#1 Create a Chart for a Datastream
๏ What do we need from SensorThings?
๏ Chart title
๏ Datastream’s description
๏ Time series
๏ Observations’ result and phenomenonTime
๏ Y-axis label
๏ unitOfMeasurement - symbol and name
#1 Create a Chart for a Datastream
๏ Chart title - Datastream’s description
๏ Datastreams(id)/description
๏ Time series - Observations’ result and phenomenonTime
๏ Datastreams(id)/Observations
๏ Y-axis label - unitOfMeasurement - symbol and name
๏ Datastreams(id)/unitOfMeasurement
#1 Create a Chart for a Datastream
๏ Send the first request for Datastream
๏ Datastreams(id)/description
#1 Create a Chart for a Datastream
๏ Send the second request for the time series -
Observations’ result and phenomenonTime
๏ Datastreams(id)/Observations
๏ $orderby and $top
#1 Create a Chart for a Datastream
๏ Y-axis label - unitOfMeasurement - symbol and name
๏ Datastreams(id)/unitOfMeasurement
#2 Create a Chart for a Datastream
with a single request
๏ Get all the required information with a single request
๏ Datastreams(id)?$expand=Observations
#3 Create a map showing the Thing/
Location
๏ Get a Datastream’s Thing’s Location
๏ Datastreams(id)?$expand=Thing/Locations
๏ Oh, we also need the Observations
๏ Datastreams(id)?
$expand=Observations,Thing/Locations
#3 Create a map showing the Thing/
Location
Prepare the map
#3 Create a map showing the Thing/
Location
๏ Datastreams(id)?
$expand=Observations,Thing/Locations
#4 Create a simple dashboard
๏ Display two widgets, one with the latest Observation and
the other one with the previous Observation
#4 Create a simple dashboard
๏ Display two widgets, one with the latest Observation and the other
one with the previous Observation
๏ What information do we need in this case?
๏ result
๏ phenomenonTime
๏ and we only need the latest result!
๏ Datastreams(id)/Observations?$top=1&$select=
result,phenomenonTime,id
#4 Create a simple dashboard
๏ Display two widgets, one with the latest Observation and
the other one with the previous Observation
#5 Putting everything together
Visualize Your Smart City: Build a Real-Time Smart City Dashboard for SensorThings API
Many of you just want a Charting
API that works….
Available here, Free for non-commercial uses
Display a Thing’s Datastreams
Which dashboard widget you like?
One line of code to switch between chart, table, gauge
, speedometer, and NVD3 chart.
Data Table for SensorThings
Display a Datastream from t1 to t2
SensorThings HCDT
๏ Available before August 18th 2016.
๏ Library/SDK
๏ Developer Documentation
๏ Interactive Tutorials
๏ Examples
If you think it’s good….
We have something even better!!
To Be Announced soon!
GIST
https://github.com/SensorUp/Webinars/
tree/master/2016-08-11-Visualize-Your-
Smart-Cities
Next Week
Analyze Your Smart City: Build Sensor
Analytics with SensorThings API

More Related Content

PDF
Smart Citizen Workshop - Cybera Summit 2016, Banff, Canada
PDF
Open IoT Made Easy - Introduction to OGC SensorThings API
PDF
SensorThings API Webinar - #2 of 4 - IoT Data Modeling with Open Standards
PDF
Sense Your Smart City: Connect Environmental Sensors to SensorThings API
PDF
Comparison between OGC Sensor Observation Service and SensorThings API
PDF
SensorThings API webinar-#4-Connect Your Sensor
PDF
SensorThings API Webinar - #1 of 4 - Introduction
PDF
Analyze Your Smart City: Build Sensor Analytics with OGC SensorThings API
Smart Citizen Workshop - Cybera Summit 2016, Banff, Canada
Open IoT Made Easy - Introduction to OGC SensorThings API
SensorThings API Webinar - #2 of 4 - IoT Data Modeling with Open Standards
Sense Your Smart City: Connect Environmental Sensors to SensorThings API
Comparison between OGC Sensor Observation Service and SensorThings API
SensorThings API webinar-#4-Connect Your Sensor
SensorThings API Webinar - #1 of 4 - Introduction
Analyze Your Smart City: Build Sensor Analytics with OGC SensorThings API

What's hot (20)

PDF
Challenges and Opportunities of the IoT Data and Service Interoperability
PDF
Arctic Web Map, PolarMap.js, Arctic Sensor Web, and Arctic Citizen Sensors
PDF
Sensor thingsapi webinar-#3-rest-for-iot-api-20151210
PDF
OGC SensorThings API - a very short introduction for ITU-T
PDF
MQTT and SensorThings API MQTT Extension
PDF
Discussion materials for the Internet of Things and Blockchain
PDF
OGC SensorThings API for Location Aware Sensing System (LASS) 2017 User Confe...
PDF
Discussion materials for Internet of Things and Smart Cities - Vespucci 2016 ...
PDF
Edge Computing and OGC SensorThings API
PDF
Actionable Insights from Multi-sensor IoT Systems using the OGC SensorThings ...
DOC
Resume - technical - template 3_27_16
PPTX
Open Stack and SDN
PPTX
A Standardized Encoding to Exchange Citizen Science Data - ESCA 2015
PPTX
Using Enterprise Search at the city of Antibes
PPT
Scripting Things - Creating the Internet of Things with Perl
PDF
Open Cloud -- Future of Cloud Computing
PDF
Top-Down Approach to Monitoring
PDF
Building an Artificial Intelligence mobile application with GeneXus - Angelo ...
PDF
IoT and Big data with R
PDF
Using R for the internet of things
Challenges and Opportunities of the IoT Data and Service Interoperability
Arctic Web Map, PolarMap.js, Arctic Sensor Web, and Arctic Citizen Sensors
Sensor thingsapi webinar-#3-rest-for-iot-api-20151210
OGC SensorThings API - a very short introduction for ITU-T
MQTT and SensorThings API MQTT Extension
Discussion materials for the Internet of Things and Blockchain
OGC SensorThings API for Location Aware Sensing System (LASS) 2017 User Confe...
Discussion materials for Internet of Things and Smart Cities - Vespucci 2016 ...
Edge Computing and OGC SensorThings API
Actionable Insights from Multi-sensor IoT Systems using the OGC SensorThings ...
Resume - technical - template 3_27_16
Open Stack and SDN
A Standardized Encoding to Exchange Citizen Science Data - ESCA 2015
Using Enterprise Search at the city of Antibes
Scripting Things - Creating the Internet of Things with Perl
Open Cloud -- Future of Cloud Computing
Top-Down Approach to Monitoring
Building an Artificial Intelligence mobile application with GeneXus - Angelo ...
IoT and Big data with R
Using R for the internet of things
Ad

Viewers also liked (17)

PDF
ISO Smart City Infrastucture Frameworkv2
PPTX
Disability and Smart Cities
PDF
Rapid Response Linked Data
PDF
Work on Linked Data for the Internet of Things
PDF
How autonomous vehicles work
PPTX
Smart gym 360º presentación
PPT
Presentación Comercial Zino3
PDF
Citizen Sensing with the SenosrThings API
PDF
PPTX
Hotel always open to guests' needs: the complete access control solutions wit...
PPTX
City Next for Partners
PPT
project report on FITNESS HUB
PPTX
Riku Oja - Crowdsourcing smart city data in Helsinki - Mindtrek 2016
PPTX
Torri Martin - SmartATL: Smart City Strategy - GCS16
PDF
The Smart City in 3 questions: Why, What  and How to succeed its implementat...
PDF
EU FP7 CityPulse Project
PPTX
Smart Cities, Urban Development & Strategic Road Development Plan
ISO Smart City Infrastucture Frameworkv2
Disability and Smart Cities
Rapid Response Linked Data
Work on Linked Data for the Internet of Things
How autonomous vehicles work
Smart gym 360º presentación
Presentación Comercial Zino3
Citizen Sensing with the SenosrThings API
Hotel always open to guests' needs: the complete access control solutions wit...
City Next for Partners
project report on FITNESS HUB
Riku Oja - Crowdsourcing smart city data in Helsinki - Mindtrek 2016
Torri Martin - SmartATL: Smart City Strategy - GCS16
The Smart City in 3 questions: Why, What  and How to succeed its implementat...
EU FP7 CityPulse Project
Smart Cities, Urban Development & Strategic Road Development Plan
Ad

Similar to Visualize Your Smart City: Build a Real-Time Smart City Dashboard for SensorThings API (20)

PPT
Geo-Django Python
PDF
Azure tales: a real world CQRS and ES Deep Dive - Andrea Saltarello
PDF
Testing Big in JavaScript
PPTX
The Internet of Things: Patterns for building real world applications
PDF
AppSec Pipelines and Event based Security
PDF
The Fine Art of Time Travelling - Implementing Event Sourcing - Andrea Saltar...
PDF
Internet of Things: Patterns For Building Real World Applications
PPT
Daniel Egan Msdn Tech Days Oc Day2
PDF
IRJET- Machine Learning for Weather Prediction and Forecasting for Local Weat...
PDF
The what why and how of web analytics testing
PDF
OpenTelemetry Introduction
PPTX
Full-stack Web Development with MongoDB, Node.js and AWS
PDF
Corey.Berry.Portfolio.2016
PDF
INTERFACE, by apidays - The Evolution of Data Movement.pdf
PDF
Cytoscape: Now and Future
PDF
Analysing Water Quality of an Area - II
PDF
PredictionIO - Building Applications That Predict User Behavior Through Big D...
PPTX
Performance trends and alerts with ThingSpeak IoT
PPT
Io t technologies_ppt-2
PDF
Anaconda and PyData Solutions
Geo-Django Python
Azure tales: a real world CQRS and ES Deep Dive - Andrea Saltarello
Testing Big in JavaScript
The Internet of Things: Patterns for building real world applications
AppSec Pipelines and Event based Security
The Fine Art of Time Travelling - Implementing Event Sourcing - Andrea Saltar...
Internet of Things: Patterns For Building Real World Applications
Daniel Egan Msdn Tech Days Oc Day2
IRJET- Machine Learning for Weather Prediction and Forecasting for Local Weat...
The what why and how of web analytics testing
OpenTelemetry Introduction
Full-stack Web Development with MongoDB, Node.js and AWS
Corey.Berry.Portfolio.2016
INTERFACE, by apidays - The Evolution of Data Movement.pdf
Cytoscape: Now and Future
Analysing Water Quality of an Area - II
PredictionIO - Building Applications That Predict User Behavior Through Big D...
Performance trends and alerts with ThingSpeak IoT
Io t technologies_ppt-2
Anaconda and PyData Solutions

Recently uploaded (20)

PDF
Smart Home Technology for Health Monitoring (www.kiu.ac.ug)
PPTX
Internet Safety for Seniors presentation
PPT
415456121-Jiwratrwecdtwfdsfwgdwedvwe dbwsdjsadca-EVN.ppt
PPTX
Power Point - Lesson 3_2.pptx grad school presentation
PDF
The Evolution of Traditional to New Media .pdf
PDF
FINAL CALL-6th International Conference on Networks & IOT (NeTIOT 2025)
PDF
BIOCHEM CH2 OVERVIEW OF MICROBIOLOGY.pdf
PDF
Introduction to the IoT system, how the IoT system works
PDF
simpleintnettestmetiaerl for the simple testint
PPTX
APNIC Report, presented at APAN 60 by Thy Boskovic
PPTX
artificialintelligenceai1-copy-210604123353.pptx
PDF
Exploring VPS Hosting Trends for SMBs in 2025
PDF
Alethe Consulting Corporate Profile and Solution Aproach
PPTX
Database Information System - Management Information System
PPT
12 Things That Make People Trust a Website Instantly
PDF
Alethe Consulting Corporate Profile and Solution Aproach
DOC
Rose毕业证学历认证,利物浦约翰摩尔斯大学毕业证国外本科毕业证
PDF
The Ikigai Template _ Recalibrate How You Spend Your Time.pdf
PDF
Uptota Investor Deck - Where Africa Meets Blockchain
PDF
Session 1 (Week 1)fghjmgfdsfgthyjkhfdsadfghjkhgfdsa
Smart Home Technology for Health Monitoring (www.kiu.ac.ug)
Internet Safety for Seniors presentation
415456121-Jiwratrwecdtwfdsfwgdwedvwe dbwsdjsadca-EVN.ppt
Power Point - Lesson 3_2.pptx grad school presentation
The Evolution of Traditional to New Media .pdf
FINAL CALL-6th International Conference on Networks & IOT (NeTIOT 2025)
BIOCHEM CH2 OVERVIEW OF MICROBIOLOGY.pdf
Introduction to the IoT system, how the IoT system works
simpleintnettestmetiaerl for the simple testint
APNIC Report, presented at APAN 60 by Thy Boskovic
artificialintelligenceai1-copy-210604123353.pptx
Exploring VPS Hosting Trends for SMBs in 2025
Alethe Consulting Corporate Profile and Solution Aproach
Database Information System - Management Information System
12 Things That Make People Trust a Website Instantly
Alethe Consulting Corporate Profile and Solution Aproach
Rose毕业证学历认证,利物浦约翰摩尔斯大学毕业证国外本科毕业证
The Ikigai Template _ Recalibrate How You Spend Your Time.pdf
Uptota Investor Deck - Where Africa Meets Blockchain
Session 1 (Week 1)fghjmgfdsfgthyjkhfdsadfghjkhgfdsa

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

  • 1. #2: Visualize Your Smart City - Build a Real-Time Smart City Dashboard for SensorThings API Dr. Steve Liang, Ph.D., P.Eng. Founder and CEO, SensorUp Inc. Associate Professor, University of Calgary Click here for webinar recording Click here for source codes
  • 2. 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
  • 3. 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
  • 4. News - SensorThings API Press Release
  • 5. News - We are setting up a SensorThings for Taiwan’s LASS, a very large air quality monitoring network.
  • 6. News - Calgary air quality update http://example.sensorup.com/display/v1.0/Datastreams(4207)/Observations? $expand=Datastream&$filter=phenomenonTime%20lt%202016-08-09T02:00:00Z Hailstorm What’s going on here?
  • 7. 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
  • 8. Today’s learning outcomes ๏ Review of SensorThings entities (ISO 19156 O&M) ๏ Creating a Chart for a Datastream with multiple requests ๏ Creating a Chart for a Datastream with a single request ๏ Create a Map showing the Location of the Thing/Datastream ๏ Create a simple dashboard ๏ Putting them all together into a single page
  • 9. Why build your IoT application with open standards? IoT System #1 IoT System #2 IoT System #3 IoT System #N… Write N times different but similar codes!! Wait.. how about version updates? Write N x M times, where M is the average number of updatesWrite an application for proprietary IoT APIs
  • 10. Why build your IoT application with open standards? IoT System #1 IoT System #2 IoT System #3 IoT System #N… Write 1 time and use N times. Wait.. how about version updates? OGC standards are stable and future proof.Write an application for open standard IoT API
  • 11. Today we will use SensorUp’s air quality monitoring system in Calgary as an example. http://example.sensorup.com/v1.0
  • 12. What do you need? Any text editor A modern browser (Chrome in this webinar) A JSON viewer plugin (JSONView in this webinar)
  • 13. IMPORTANT We are using Highstock.js today. Highstock/Highchart is open source and free for non-commercial uses. But it is NOT free for commercial uses.
  • 14. Acknowledgement Thanks to James Badger for preparing today’s tutorials’ source codes. James and I are writing a book on SensorThings API and IoT/Smart Cities. Please stay tuned!
  • 15. The data model AirBox The Air in My Backyard • Plant Tower G3 • DHT22 • Particulate Matter 2.5 • Relative Humidity • Air Temperature My Backyard
  • 16. #1 Create a Chart for a Datastream ๏ What information do we need to create a chart? time series (observations) chart title y-axis label tooltip
  • 17. #1 Create a Chart for a Datastream ๏ What do we need from SensorThings? ๏ Chart title ๏ Datastream’s description ๏ Time series ๏ Observations’ result and phenomenonTime ๏ Y-axis label ๏ unitOfMeasurement - symbol and name
  • 18. #1 Create a Chart for a Datastream ๏ Chart title - Datastream’s description ๏ Datastreams(id)/description ๏ Time series - Observations’ result and phenomenonTime ๏ Datastreams(id)/Observations ๏ Y-axis label - unitOfMeasurement - symbol and name ๏ Datastreams(id)/unitOfMeasurement
  • 19. #1 Create a Chart for a Datastream ๏ Send the first request for Datastream ๏ Datastreams(id)/description
  • 20. #1 Create a Chart for a Datastream ๏ Send the second request for the time series - Observations’ result and phenomenonTime ๏ Datastreams(id)/Observations ๏ $orderby and $top
  • 21. #1 Create a Chart for a Datastream ๏ Y-axis label - unitOfMeasurement - symbol and name ๏ Datastreams(id)/unitOfMeasurement
  • 22. #2 Create a Chart for a Datastream with a single request ๏ Get all the required information with a single request ๏ Datastreams(id)?$expand=Observations
  • 23. #3 Create a map showing the Thing/ Location ๏ Get a Datastream’s Thing’s Location ๏ Datastreams(id)?$expand=Thing/Locations ๏ Oh, we also need the Observations ๏ Datastreams(id)? $expand=Observations,Thing/Locations
  • 24. #3 Create a map showing the Thing/ Location Prepare the map
  • 25. #3 Create a map showing the Thing/ Location ๏ Datastreams(id)? $expand=Observations,Thing/Locations
  • 26. #4 Create a simple dashboard ๏ Display two widgets, one with the latest Observation and the other one with the previous Observation
  • 27. #4 Create a simple dashboard ๏ Display two widgets, one with the latest Observation and the other one with the previous Observation ๏ What information do we need in this case? ๏ result ๏ phenomenonTime ๏ and we only need the latest result! ๏ Datastreams(id)/Observations?$top=1&$select= result,phenomenonTime,id
  • 28. #4 Create a simple dashboard ๏ Display two widgets, one with the latest Observation and the other one with the previous Observation
  • 31. Many of you just want a Charting API that works…. Available here, Free for non-commercial uses
  • 32. Display a Thing’s Datastreams
  • 33. Which dashboard widget you like? One line of code to switch between chart, table, gauge , speedometer, and NVD3 chart.
  • 34. Data Table for SensorThings
  • 35. Display a Datastream from t1 to t2
  • 36. SensorThings HCDT ๏ Available before August 18th 2016. ๏ Library/SDK ๏ Developer Documentation ๏ Interactive Tutorials ๏ Examples
  • 37. If you think it’s good…. We have something even better!! To Be Announced soon!
  • 39. Next Week Analyze Your Smart City: Build Sensor Analytics with SensorThings API