sensorthings

0.6.0 • Public • Published

SensorThings API

License Build Status Coverage Status

Node implementation of the OGC SensorThings API.

Dependencies

  • Nodejs 6
  • PostgreSQL >9.4
  • PostGIS

Build

npm install
npm run build

Usage

const express      = require('express');
const SensorThings = require('../dist/sensorthings'); // or require('sensorthings')
                                                      // if you installed it via npm
 
var app = express();
 
const config = {
  db: {
    host: 'localhost',
    port: 5432,
    name: 'sensorweb',
    user: 'postgres',
    password: '12345678'
  }
};
 
app.use('/', SensorThings(config));
 
app.listen(8080, () => console.log('Running on localhost:8080'));

Running the tests

npm run test-watch

Running the example

npm run example

OGC Compliance testing status

We are automatically running the Test Suite for the OGC SensorThings API with every commit and the results are published here.

Conformance Class Reference Test Status
Sensing Core A.1 6 passed, 0 failed
Filtering Extension A.2 7 passed, 1 failed*
Create-Update-Delete A.3 9 passed, 0 failed
Batch Request A.4 Tests not implemented
Sensing MultiDatastream Extension A.5 Tests not implemented
Sensing Data Array Extension A.6 Tests not implemented
MQTT Extension for Create and Update A.7 Tests not implemented
MQTT Extension for Receiving Updates A.8 Tests not implemented

Package Sidebar

Install

npm i sensorthings

Weekly Downloads

2

Version

0.6.0

License

MPL-2.0

Last publish

Collaborators

  • albertopq
  • ferjm