sensorthings
v0.6.0
Published
Node implementation of the OGC SensorThings API
Downloads
56
Readme
SensorThings API
Node implementation of the OGC SensorThings API.
Dependencies
- Nodejs 6
- PostgreSQL >9.4
- PostGIS
Build
npm install
npm run buildUsage
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-watchRunning the example
npm run exampleOGC 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 |
- The failure is actually an OGC test suite issue: https://github.com/opengeospatial/ets-sta10/issues/35
