SlideShare una empresa de Scribd logo
1 de 31
Descargar para leer sin conexión
Open Sensor 

Networks
Just van den Broecke
Just Objects B.V.
https://justobjects.nl
Info Kenniskring - Ruimteschepper

Warehouse of Innovation
Eindhoven 11 dec, 2018
Met dank aan
ABOUT
Independent Open
Source Geospatial
Professional
justobjects.nl
Member of the
OpenGeoGroep (NL)
www.opengeogroep.nl
Chair 

OSGeo.nl
1. Intro
Air Quality Sensor Projects
• 2014/2015 - SOSPilot - Geonovum en RIVM

RIVM LML Data via OGC Sensor Observation Service (SOS)

http://sensors.geonovum.nl 

• 2015-2017 - Smart Emission Nijmegen - Consortium

Burgers meten zelf luchtkwaliteit en geluid, opbouw SE Platform

http://smartemission.ruhosting.nl 

• 2017-2018 - Smart Emission - Consolidatie en Opschaling

Smart City Living Lab (meerdere steden),

Green Challenge Nijmegen, AirSensEUR (EU JRC)

SE Platform Migratie naar PDOK - Kadaster

https://data.smartemission.nl 

• 2018- AirSensEUR - Open HW Sensor Box - European Commission JRC

deploy 5 AirSensEUR Boxes, connect to Smart Emission Platform

https://justobjects.nl/emit-5
Inclusive Citizen Sensing
▪ Citizen-sensor-networks for fine-grained
measurements, with new low-cost sensing devices
▪ Transparency and democracy of pollution
monitoring, ‘making the externalities (e.g. noise, air
pollution) visible’
▪ Cost-effective environmental monitoring with 

Open Source, Open Data, Open Standards (APIs)
Smart Emission Nijmegen
Which type of low cost sensors to deploy?
Quality and Price
Number of sensors applied in a city
Smart Emission
“Jose”
Aireas
“Airbox”
“Smart Citizen Kit”
RIVM National
AQ Stations
Smart Emission Nijmegen
Smart Emission Nijmegen
Smart Emission
Platform
Smart Emission
Platform
WMS WFS SOS STA
Client
Apps/Viewers
web-APIs
sensors
Collector APIs
SE Platform - The Big Picture
Dataflow
Smart 

Emission
Platform
WMS WFS SOS STA
CityGIS Data
Collector
Intemo Data
Collector
InfluxDB Data
Collector
RIVM LML
SOSInfluxDB
HTTP
Whale
API
Harvesters
ETL
LML
Influx
HTTP
Sensors
API
API
Outbound
Inbound
Dataflow
SE Platform - Dataflow and APIs
Whale
API
Decoupling

Push/Pull:

Data Collectors
+Harvesters
MQTTMQTT
Viewers talk to (OGC) APIs
https://data.smartemission.nl (data platform)
Heron
Viewer
Smart
App
52North
SOS Viewer
Grafana
Extern
Viewers
https://data.smartemission.nl/waalkade/
Thoughts
All Data 

is 

Spatio-Temporal
Spatial Temporal
Geo IoT
Internet
of
Silos
Convenience
over 

Freedom
Open APIs & Tech
for Spatio-temporal
to the Rescue?
Spatio-temporal DB:
PostgreSQL with

PostGIS+TimescaleDB
OGC SensorThings
API
Other Talk
OGC SensorThings API
Showcase Modern Standard
(REST) API-based: HTTP Verbs
Data Model is First Class Citizen
Multiple FOSS Implementations
Linked Data, Paging, OData
Pub/Sub via MQTT
GOST
SOS-Killer?
(Geo)JSON Encoding
SensorThings API - Model
SensorThings API - Example SE Entity Mapping
STA Entity Real World Entity Instance
Thing Vogelhut Natuurmon. Vogelhut #234
Location Plaats Vogelhut Mosselseweg 64, 1245AF Otterlo
Sensor Verrekijker Swarovski Swarovision 1900 10x40
ObservedProperty Diersoort Vogels
Observation Aantal + Tijd 1 op 2018-12-11T18:09:05
Datastream (Verbindt T, S, OP en O)
FeatureOfInterest Soort en Locatie Vogel Merel op 4.9344, 52.567
SensorThings API - Not just Sensor Devices
Geodan GOST - Open Source STA in GoLang
https://github.com/gost
Fun PoC 

Bridging IoT with Geo:
TheThingsNetwork to
SensorThings API
Setup
GOST
API
Dataflow
GOST
Dashboard
Node-Red
ThingsNode
MQTT MQTT
STA
Process
MQTTBridge
ttn2sta
PySense +
LoPy
Docker


Postman
ProvisioningAny LoRa/TTN Device
Docker Containers
Steps
• Install ThingsNode as TTN App and Device as usual
• Test MQTT uplink: 

$ mosquitto_sub -h eu.thethings.network -t ‘+/devices/+/ up'-u
'mythingsnode1' -P ‘ttn-account-v2.*****’ -v
• Install SensorThings Geodan GOST Stack

$ wget https://raw.githubusercontent.com/gost/

docker-compose/master/docker-compose.yml

$ docker-compose up
• Postman: provision STA Entities, Examples: 

https://github.com/gost/workshops/tree/master/
2017_foss4g_boston
• Node-Red (or regular Python): develop MQTT Bridge

MQTT from TTN: 

https://www.thethingsnetwork.org/docs/applications/mqtt/

MQTT to STA: see “GOST FOSS4G Boston” workshop above

ttn2sta: copy TTN Payload data to STA result and 

result- and/or phenomenonTime

TTN to STA Mapping
All the Code needed!
STA Observations
▪ All Entities (root)

http://localhost:8080/v1.0
▪ All Observations from all Things (paged)

http://localhost:8080/v1.0/Observations
▪ All Observations Thing with id=3

http://localhost:8080/v1.0/Things(3)?$expand=Datastreams/Observations
▪ Last Observation Thing(3)

http://localhost:8080/v1.0/Things(3)?$expand=Datastreams/Observations($top=1)
▪ All Observations after Dec 11, 2018 20:57 UTC

http://localhost:8080/v1.0/Observations?$filter=resultTime%20gt
%20%272018-12-11T20:57:00.000Z%27
▪ Etc, more examples:

https://smartplatform.readthedocs.io/en/latest/cookbook.html
STA REST/OData Queries
Links
https://data.smartemission.nl (data platform)
https://github.com/smartemission (source code)
https://smartplatform.readthedocs.io (documentation)
https://smartplatform.readthedocs.io/en/latest/evolution.html (SensorSDI)
https://geoforum.nl/c/datasets/sensordata (support and comms)
https://en.wikipedia.org/wiki/SensorThings_API (SensorThings API, STA)
https://www.gostserver.xyz/ (Geodan STA Open Source Implementation)
https://justobjects.nl/category/smartemission/ (Just’s Blog)
https://airsenseur.org/ (EU AirSensEUR)
We would like to acknowledge for their valuable input:
All partners of the Smart Emission Consortium
Dank U!

Más contenido relacionado

La actualidad más candente

La actualidad más candente (20)

Design Beautiful REST + JSON APIs
Design Beautiful REST + JSON APIsDesign Beautiful REST + JSON APIs
Design Beautiful REST + JSON APIs
 
Learning postgresql
Learning postgresqlLearning postgresql
Learning postgresql
 
Android CTS training
Android CTS trainingAndroid CTS training
Android CTS training
 
Cdn
CdnCdn
Cdn
 
Tech Job Conference: Software Engineer @Criteo
Tech Job Conference: Software Engineer @CriteoTech Job Conference: Software Engineer @Criteo
Tech Job Conference: Software Engineer @Criteo
 
How YugaByte DB Implements Distributed PostgreSQL
How YugaByte DB Implements Distributed PostgreSQLHow YugaByte DB Implements Distributed PostgreSQL
How YugaByte DB Implements Distributed PostgreSQL
 
Introduction to CNI (Container Network Interface)
Introduction to CNI (Container Network Interface)Introduction to CNI (Container Network Interface)
Introduction to CNI (Container Network Interface)
 
Git flow
Git flowGit flow
Git flow
 
Going to the Grid: Tabular Form Edition (Oracle APEX Editable Interactive Grids)
Going to the Grid: Tabular Form Edition (Oracle APEX Editable Interactive Grids)Going to the Grid: Tabular Form Edition (Oracle APEX Editable Interactive Grids)
Going to the Grid: Tabular Form Edition (Oracle APEX Editable Interactive Grids)
 
Implementación de autenticación federada con WSO2 Identity Server 5.1
Implementación de autenticación federada con WSO2 Identity Server 5.1Implementación de autenticación federada con WSO2 Identity Server 5.1
Implementación de autenticación federada con WSO2 Identity Server 5.1
 
Apache Flink Adoption at Shopify
Apache Flink Adoption at ShopifyApache Flink Adoption at Shopify
Apache Flink Adoption at Shopify
 
Presentation linux on power
Presentation   linux on powerPresentation   linux on power
Presentation linux on power
 
Docker and kubernetes_introduction
Docker and kubernetes_introductionDocker and kubernetes_introduction
Docker and kubernetes_introduction
 
ClickHouse Intro
ClickHouse IntroClickHouse Intro
ClickHouse Intro
 
What's new in Gerrit Code Review 3.0
What's new in Gerrit Code Review 3.0What's new in Gerrit Code Review 3.0
What's new in Gerrit Code Review 3.0
 
Learn REST in 18 Slides
Learn REST in 18 SlidesLearn REST in 18 Slides
Learn REST in 18 Slides
 
Kubernetes Webinar - Using ConfigMaps & Secrets
Kubernetes Webinar - Using ConfigMaps & Secrets Kubernetes Webinar - Using ConfigMaps & Secrets
Kubernetes Webinar - Using ConfigMaps & Secrets
 
Gitlab, GitOps & ArgoCD
Gitlab, GitOps & ArgoCDGitlab, GitOps & ArgoCD
Gitlab, GitOps & ArgoCD
 
A Gentle Introduction To Docker And All Things Containers
A Gentle Introduction To Docker And All Things ContainersA Gentle Introduction To Docker And All Things Containers
A Gentle Introduction To Docker And All Things Containers
 
Openstack Instance Resize
Openstack Instance ResizeOpenstack Instance Resize
Openstack Instance Resize
 

Similar a Open Sensor Networks with LoRa TTN and SensorThings API

Open IoT Made Easy - Introduction to OGC SensorThings API
Open IoT Made Easy - Introduction to OGC SensorThings APIOpen IoT Made Easy - Introduction to OGC SensorThings API
Open IoT Made Easy - Introduction to OGC SensorThings API
SensorUp
 
The Road to Internet of Things
The Road to Internet of ThingsThe Road to Internet of Things
The Road to Internet of Things
Daeyoung Kim
 

Similar a Open Sensor Networks with LoRa TTN and SensorThings API (20)

Open Sensor Networks
Open Sensor NetworksOpen Sensor Networks
Open Sensor Networks
 
Just's Career Highlights - Version 2
Just's Career Highlights - Version 2Just's Career Highlights - Version 2
Just's Career Highlights - Version 2
 
Sensor SDI in PDOK with Smart Emission Platform
Sensor SDI in PDOK with Smart Emission PlatformSensor SDI in PDOK with Smart Emission Platform
Sensor SDI in PDOK with Smart Emission Platform
 
Open IoT Made Easy - Introduction to OGC SensorThings API
Open IoT Made Easy - Introduction to OGC SensorThings APIOpen IoT Made Easy - Introduction to OGC SensorThings API
Open IoT Made Easy - Introduction to OGC SensorThings API
 
Smart Emission Data Platform
Smart Emission Data PlatformSmart Emission Data Platform
Smart Emission Data Platform
 
SenseBox
SenseBoxSenseBox
SenseBox
 
Sensor Web and IoT and the role of Geography (English translation)
Sensor Web and IoT and the role of Geography (English translation)Sensor Web and IoT and the role of Geography (English translation)
Sensor Web and IoT and the role of Geography (English translation)
 
X-GSN in OpenIoT SummerSchool
X-GSN in OpenIoT SummerSchoolX-GSN in OpenIoT SummerSchool
X-GSN in OpenIoT SummerSchool
 
Node-RED Interoperability Test
Node-RED Interoperability TestNode-RED Interoperability Test
Node-RED Interoperability Test
 
OVERVIEW OF ICT LAB RESEARCH
OVERVIEW OF ICT LAB RESEARCHOVERVIEW OF ICT LAB RESEARCH
OVERVIEW OF ICT LAB RESEARCH
 
Global Azure Bootcamp 2016 - Real-world Internet of Things Backend with Azure...
Global Azure Bootcamp 2016 - Real-world Internet of Things Backend with Azure...Global Azure Bootcamp 2016 - Real-world Internet of Things Backend with Azure...
Global Azure Bootcamp 2016 - Real-world Internet of Things Backend with Azure...
 
FIWARE IoT Proposal & Community
FIWARE IoT Proposal & CommunityFIWARE IoT Proposal & Community
FIWARE IoT Proposal & Community
 
Athens IoT meetup #7 - Create the Internet of your Things - Laurent Ellerbach...
Athens IoT meetup #7 - Create the Internet of your Things - Laurent Ellerbach...Athens IoT meetup #7 - Create the Internet of your Things - Laurent Ellerbach...
Athens IoT meetup #7 - Create the Internet of your Things - Laurent Ellerbach...
 
SensorWeb SOS Pilot RIVM/Geonovum - Status
SensorWeb SOS Pilot RIVM/Geonovum - StatusSensorWeb SOS Pilot RIVM/Geonovum - Status
SensorWeb SOS Pilot RIVM/Geonovum - Status
 
TDC2016POA | Trilha Pyhton - Python para Internet of Things
TDC2016POA | Trilha Pyhton -  Python para Internet of ThingsTDC2016POA | Trilha Pyhton -  Python para Internet of Things
TDC2016POA | Trilha Pyhton - Python para Internet of Things
 
20180227 international elevator & escalator expo 2018 mumbai fujitec tomooka ...
20180227 international elevator & escalator expo 2018 mumbai fujitec tomooka ...20180227 international elevator & escalator expo 2018 mumbai fujitec tomooka ...
20180227 international elevator & escalator expo 2018 mumbai fujitec tomooka ...
 
Sense Your Smart City: Connect Environmental Sensors to SensorThings API
Sense Your Smart City: Connect Environmental Sensors to SensorThings APISense Your Smart City: Connect Environmental Sensors to SensorThings API
Sense Your Smart City: Connect Environmental Sensors to SensorThings API
 
The Road to Internet of Things
The Road to Internet of ThingsThe Road to Internet of Things
The Road to Internet of Things
 
20131031 giis 2013 keynote r.giaffreda
20131031 giis 2013 keynote r.giaffreda20131031 giis 2013 keynote r.giaffreda
20131031 giis 2013 keynote r.giaffreda
 
IoT Standardisatie werkgroepbijeenkomst 4 juni 2014
IoT Standardisatie werkgroepbijeenkomst 4 juni 2014IoT Standardisatie werkgroepbijeenkomst 4 juni 2014
IoT Standardisatie werkgroepbijeenkomst 4 juni 2014
 

Más de Just van den Broecke

Más de Just van den Broecke (20)

Just's Career Highlights - Version 1
Just's Career Highlights - Version 1Just's Career Highlights - Version 1
Just's Career Highlights - Version 1
 
osgeonl-opening-foss4gnl-2018
osgeonl-opening-foss4gnl-2018osgeonl-opening-foss4gnl-2018
osgeonl-opening-foss4gnl-2018
 
Stetl-engine-nlextract-smartem
Stetl-engine-nlextract-smartemStetl-engine-nlextract-smartem
Stetl-engine-nlextract-smartem
 
OSGeo.nl-NewYearsParty-2018-Opening
OSGeo.nl-NewYearsParty-2018-OpeningOSGeo.nl-NewYearsParty-2018-Opening
OSGeo.nl-NewYearsParty-2018-Opening
 
Opening OSGeo.nl Day 2017
Opening OSGeo.nl Day 2017Opening OSGeo.nl Day 2017
Opening OSGeo.nl Day 2017
 
De Levenscyclus van Open Geodata met Open Source Tools
De Levenscyclus van Open Geodata met Open Source ToolsDe Levenscyclus van Open Geodata met Open Source Tools
De Levenscyclus van Open Geodata met Open Source Tools
 
NLExtract Project - OGT Award Pitch GeoBuzz 2016
NLExtract Project - OGT Award Pitch GeoBuzz 2016NLExtract Project - OGT Award Pitch GeoBuzz 2016
NLExtract Project - OGT Award Pitch GeoBuzz 2016
 
Smart Emission - Citizens measuring Air Quality - Overview
Smart Emission - Citizens measuring Air Quality - OverviewSmart Emission - Citizens measuring Air Quality - Overview
Smart Emission - Citizens measuring Air Quality - Overview
 
Geospatial ETL with Stetl - GeoPython 2016
Geospatial ETL with Stetl - GeoPython 2016Geospatial ETL with Stetl - GeoPython 2016
Geospatial ETL with Stetl - GeoPython 2016
 
Smart Emission - Data - Viewers - Standards
Smart Emission - Data - Viewers - StandardsSmart Emission - Data - Viewers - Standards
Smart Emission - Data - Viewers - Standards
 
NLExtract voor BAG - overview
NLExtract voor BAG - overviewNLExtract voor BAG - overview
NLExtract voor BAG - overview
 
3D Breakthrough Meeting - 3D Standards progress
3D Breakthrough Meeting - 3D Standards progress3D Breakthrough Meeting - 3D Standards progress
3D Breakthrough Meeting - 3D Standards progress
 
Wandelen met GPS en De Evolutie van Navigatie
Wandelen met GPS en De Evolutie van NavigatieWandelen met GPS en De Evolutie van Navigatie
Wandelen met GPS en De Evolutie van Navigatie
 
OSGeo.nl - Year 2014 Highlights
OSGeo.nl - Year 2014 HighlightsOSGeo.nl - Year 2014 Highlights
OSGeo.nl - Year 2014 Highlights
 
Nederland Ontsloten! OSGeo.nl Dag 2014
Nederland Ontsloten! OSGeo.nl Dag 2014Nederland Ontsloten! OSGeo.nl Dag 2014
Nederland Ontsloten! OSGeo.nl Dag 2014
 
Big Data - Introduction and Research Topics - for Dutch Kadaster
Big Data - Introduction and Research Topics - for Dutch KadasterBig Data - Introduction and Research Topics - for Dutch Kadaster
Big Data - Introduction and Research Topics - for Dutch Kadaster
 
Stetl for INSPIRE Data Transformation
Stetl for INSPIRE Data TransformationStetl for INSPIRE Data Transformation
Stetl for INSPIRE Data Transformation
 
XSLT for INSPIRE Transformation by Dutch Kadaster in ESDIN
XSLT for INSPIRE Transformation by Dutch Kadaster in ESDINXSLT for INSPIRE Transformation by Dutch Kadaster in ESDIN
XSLT for INSPIRE Transformation by Dutch Kadaster in ESDIN
 
Taming Rich GML with Stetl - FOSS4G 2013 Nottingham
Taming Rich GML with Stetl - FOSS4G 2013 NottinghamTaming Rich GML with Stetl - FOSS4G 2013 Nottingham
Taming Rich GML with Stetl - FOSS4G 2013 Nottingham
 
The Heron Mapping Client - Overview, Functions, Concepts
The Heron Mapping Client - Overview, Functions, Concepts The Heron Mapping Client - Overview, Functions, Concepts
The Heron Mapping Client - Overview, Functions, Concepts
 

Último

Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 

Último (20)

Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot ModelNavi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu SubbuApidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
A Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source MilvusA Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source Milvus
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 

Open Sensor Networks with LoRa TTN and SensorThings API

  • 1. Open Sensor 
 Networks Just van den Broecke Just Objects B.V. https://justobjects.nl Info Kenniskring - Ruimteschepper
 Warehouse of Innovation Eindhoven 11 dec, 2018 Met dank aan
  • 2. ABOUT Independent Open Source Geospatial Professional justobjects.nl Member of the OpenGeoGroep (NL) www.opengeogroep.nl Chair 
 OSGeo.nl 1. Intro
  • 3. Air Quality Sensor Projects • 2014/2015 - SOSPilot - Geonovum en RIVM
 RIVM LML Data via OGC Sensor Observation Service (SOS)
 http://sensors.geonovum.nl 
 • 2015-2017 - Smart Emission Nijmegen - Consortium
 Burgers meten zelf luchtkwaliteit en geluid, opbouw SE Platform
 http://smartemission.ruhosting.nl 
 • 2017-2018 - Smart Emission - Consolidatie en Opschaling
 Smart City Living Lab (meerdere steden),
 Green Challenge Nijmegen, AirSensEUR (EU JRC)
 SE Platform Migratie naar PDOK - Kadaster
 https://data.smartemission.nl 
 • 2018- AirSensEUR - Open HW Sensor Box - European Commission JRC
 deploy 5 AirSensEUR Boxes, connect to Smart Emission Platform
 https://justobjects.nl/emit-5
  • 4. Inclusive Citizen Sensing ▪ Citizen-sensor-networks for fine-grained measurements, with new low-cost sensing devices ▪ Transparency and democracy of pollution monitoring, ‘making the externalities (e.g. noise, air pollution) visible’ ▪ Cost-effective environmental monitoring with 
 Open Source, Open Data, Open Standards (APIs) Smart Emission Nijmegen
  • 5. Which type of low cost sensors to deploy? Quality and Price Number of sensors applied in a city Smart Emission “Jose” Aireas “Airbox” “Smart Citizen Kit” RIVM National AQ Stations Smart Emission Nijmegen
  • 8. Smart Emission Platform WMS WFS SOS STA Client Apps/Viewers web-APIs sensors Collector APIs SE Platform - The Big Picture Dataflow
  • 9. Smart 
 Emission Platform WMS WFS SOS STA CityGIS Data Collector Intemo Data Collector InfluxDB Data Collector RIVM LML SOSInfluxDB HTTP Whale API Harvesters ETL LML Influx HTTP Sensors API API Outbound Inbound Dataflow SE Platform - Dataflow and APIs Whale API Decoupling
 Push/Pull:
 Data Collectors +Harvesters MQTTMQTT
  • 10. Viewers talk to (OGC) APIs https://data.smartemission.nl (data platform) Heron Viewer Smart App 52North SOS Viewer Grafana Extern
  • 13. All Data 
 is 
 Spatio-Temporal Spatial Temporal Geo IoT
  • 14.
  • 16.
  • 17. Open APIs & Tech for Spatio-temporal to the Rescue?
  • 19. OGC SensorThings API Showcase Modern Standard (REST) API-based: HTTP Verbs Data Model is First Class Citizen Multiple FOSS Implementations Linked Data, Paging, OData Pub/Sub via MQTT GOST SOS-Killer? (Geo)JSON Encoding
  • 21. SensorThings API - Example SE Entity Mapping
  • 22. STA Entity Real World Entity Instance Thing Vogelhut Natuurmon. Vogelhut #234 Location Plaats Vogelhut Mosselseweg 64, 1245AF Otterlo Sensor Verrekijker Swarovski Swarovision 1900 10x40 ObservedProperty Diersoort Vogels Observation Aantal + Tijd 1 op 2018-12-11T18:09:05 Datastream (Verbindt T, S, OP en O) FeatureOfInterest Soort en Locatie Vogel Merel op 4.9344, 52.567 SensorThings API - Not just Sensor Devices
  • 23. Geodan GOST - Open Source STA in GoLang https://github.com/gost
  • 24. Fun PoC 
 Bridging IoT with Geo: TheThingsNetwork to SensorThings API
  • 26. Steps • Install ThingsNode as TTN App and Device as usual • Test MQTT uplink: 
 $ mosquitto_sub -h eu.thethings.network -t ‘+/devices/+/ up'-u 'mythingsnode1' -P ‘ttn-account-v2.*****’ -v • Install SensorThings Geodan GOST Stack
 $ wget https://raw.githubusercontent.com/gost/
 docker-compose/master/docker-compose.yml
 $ docker-compose up • Postman: provision STA Entities, Examples: 
 https://github.com/gost/workshops/tree/master/ 2017_foss4g_boston • Node-Red (or regular Python): develop MQTT Bridge
 MQTT from TTN: 
 https://www.thethingsnetwork.org/docs/applications/mqtt/
 MQTT to STA: see “GOST FOSS4G Boston” workshop above
 ttn2sta: copy TTN Payload data to STA result and 
 result- and/or phenomenonTime

  • 27. TTN to STA Mapping
  • 28. All the Code needed!
  • 30. ▪ All Entities (root)
 http://localhost:8080/v1.0 ▪ All Observations from all Things (paged)
 http://localhost:8080/v1.0/Observations ▪ All Observations Thing with id=3
 http://localhost:8080/v1.0/Things(3)?$expand=Datastreams/Observations ▪ Last Observation Thing(3)
 http://localhost:8080/v1.0/Things(3)?$expand=Datastreams/Observations($top=1) ▪ All Observations after Dec 11, 2018 20:57 UTC
 http://localhost:8080/v1.0/Observations?$filter=resultTime%20gt %20%272018-12-11T20:57:00.000Z%27 ▪ Etc, more examples:
 https://smartplatform.readthedocs.io/en/latest/cookbook.html STA REST/OData Queries
  • 31. Links https://data.smartemission.nl (data platform) https://github.com/smartemission (source code) https://smartplatform.readthedocs.io (documentation) https://smartplatform.readthedocs.io/en/latest/evolution.html (SensorSDI) https://geoforum.nl/c/datasets/sensordata (support and comms) https://en.wikipedia.org/wiki/SensorThings_API (SensorThings API, STA) https://www.gostserver.xyz/ (Geodan STA Open Source Implementation) https://justobjects.nl/category/smartemission/ (Just’s Blog) https://airsenseur.org/ (EU AirSensEUR) We would like to acknowledge for their valuable input: All partners of the Smart Emission Consortium Dank U!