Skip to content

Niklas345/grafana-sensorthings-datasource

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Grafana OGC SensorThings Plugin

This plugin enables the visualization of sensor and location data from an OGC SensorThings server on Grafana.

It provides:

Demo

A live dashboard showing SensorThings data in Grafana panels: SensorThings Dashboard

Installation

Install via grafana-cli

sudo grafana-cli plugins install linksmart-sensorthings-datasource

Install from source

git clone https://github.com/linksmart/grafana-sensorthings-datasource.git linksmart-sensorthings-datasource
  • Restart Grafana server to see the newly added datasource.

Setup

  1. Go to Grafana Configuration.
  2. Select Add data source.
  3. Provide the necessary details to connect with OGC SensorThings server.
Name Description
Name The data source name.
Default Set this as the default plugin for new panels.
Type Choose SensorThings Datasource.
Url OGC SensorThings API root URL (e.g. http://localhost:8080/v1.0). Note the URL has no trailing slash ("/").
Access Proxy: Let Grafana server proxy the requests to OGC SensorThings API server.
Basic Auth Authenticate to OGC SensorThings API server (if required, provide User and Password)

  1. Save & Test, you should see this confirmation:

Query Configuration

Graph view

To visualize the observations from OGC SensorThings server,

  1. Add a graph panel.
  2. Select the SensorThings Datasource.
  3. Select Sensor or Things to get the list of sensors or things which are available in your SensorThings server.
  4. Select a specific sensor or thing from the list, to get the list of datastreams.
  5. Select a datastream to visualize the observations in the graph.

See the demo below for better understanding:

Table view

Using table view, one can see list of observation recorded based on Sensors/Things, and also list of Locations visited by a Thing or list of Things that has been in a specific Location.

  1. Add a table panel.
  2. Select the SensorThings Datasource.
  3. Select Sensors, Things, Locations, or Historical Locations from the initial dropdown list.

See the demo below for better understanding:

World Map view

Using world map view, one can see the current Location of a Thing on the map.

  1. Install world map panel from grafana plugin store.

  2. Add a world map panel in dashboard

  3. In "Worldmap" tab:

    • Select Center->Last GeoHash
    • Set Min Circle Size and Max Circle Size to 5
    • Select Location Data->json result
  4. In "Metrics" tab:

    • Select the OGC SensorThings Datasource.
    • Select a "Thing" from dropdown list.

See the demo below for better understanding:

Dev setup

npm install
npm run watch

Links

Packages

No packages published

Languages

  • JavaScript 89.3%
  • HTML 8.6%
  • CSS 2.1%