The SensorThings API plugin for QGIS has been developed by Deda Next (former Dedagroup Public Services, https://www.dedanext.it/) within the AIR-BREAK project (co-funded by UIA program, https://www.uia-initiative.eu/en/uia-cities/ferrara).
The plugin enables QGIS software (www.qgis.org) to access dynamic data from sensors, using SensorThings API protocol (https://www.ogc.org/standards/sensorthings)
The overall objective is to provide functionalities for accessing SensorThings API endpoints and interact with temporal data (timeseries).
Hereafter, you find "how-to" instructions for using the SensorThingsAPI plugin in QGIS.
To correctly download the plugin from this repository as zip file, please see Issue AirBreak-UIA#1
- Once installed (as local zip file), the user interface shows a simple menu and a toolbar with two commands:
- Upload 'SensorThingsAPI' layer from remote server
- Show location information
Note: the following screenshots show the user interface in Italian.
- The command Upload 'SensorThingsAPI' layer from remote server allows to add the Locations of a SensorThings endpoint as a geographical layer; in the popup window, select the button New and write the name and the URL of the endpoint to connect to:
To test the plugin, the following endpoints can be configured:
- https://iot.comune.fe.it/FROST-Server/v1.1/Locations (data about air quality, bike transits, traffic by Municipality of Ferrara, Italy)
- https://airquality-frost.k8s.ilt-dmz.iosb.fraunhofer.de/v1.1/Locations (data about air quality from AQ stations in Europe, by Fraunhofer Institute, Germany)
- https://demography.k8s.ilt-dmz.iosb.fraunhofer.de/v1.1/Locations (demographic statistics, by Fraunhofer Institute, Germany)
- https://iot.hamburg.de/v1.1/Locations (by City of Hamburg)
- https://ogc-demo.k8s.ilt-dmz.iosb.fraunhofer.de/v1.1/Locations (water data by OGC)
- http://covidsta.hft-stuttgart.de/server/v1.1/Locations (COVID data by HFT Stuttgart, Germany)
... other public endpoints also available at https://github.com/opengeospatial/sensorthings/blob/master/PublicEndPoints.md
Click the Connect button to list all the locations available and optionally filter them using their own properties; select one or more items and clic the button Add (or double clic).
... once selected the Locations to be added in the map, you will see something like this:
- the command "Show location information" opens a new popup window to query a single location; when the location is clicked on the map, the popup appears with the list of Datastreams (measured parameter) available:
- by clicking on the right-side button, user has the possibility to access timeseries (observations) for each parameter and get data in either tabular or chart formats, with the possibility to change temporal filter (dates from/to):
- User can also download data (bottom-right icon) in CSV format and elaborate them in spreadsheets or other software: