1
0
Fork 0
mirror of https://github.com/52north/ttn-ogcswe-integration synced 2025-03-12 07:00:28 +01:00
TheThingsNetwork meets OGC SOS
Find a file
2024-09-20 17:08:07 +02:00
doc add doc/DEVELOP.md 2017-10-13 15:03:12 +02:00
docker update dependencies 2017-09-11 21:55:29 +02:00
src update dependencies 2018-12-21 00:18:39 +01:00
templates remove procedure & offering from MQTT msg format 2017-08-27 00:21:35 +02:00
types update dependencies 2018-12-21 00:18:39 +01:00
.dockerignore update dependencies 2018-12-21 00:18:39 +01:00
.gitignore define configuration as yaml, not json 2017-07-24 14:26:53 +02:00
CHANGES.md update dependencies 2018-12-21 00:18:39 +01:00
config.yml.sample update dependencies 2017-09-11 21:55:29 +02:00
Dockerfile update dependencies 2018-12-21 00:18:39 +01:00
LICENSE let's go! 2017-07-01 19:03:45 +02:00
package.json update dependencies 2018-12-21 00:18:39 +01:00
README.md Update README.md 2024-09-20 17:08:07 +02:00
tsconfig.json fix build scripts 2017-07-05 15:06:26 +02:00
tslint.json lint 2017-07-23 20:54:07 +02:00
yarn.lock update dependencies 2018-12-21 00:18:39 +01:00

ARCHIVED

This project is no longer maintained and will not receive any further updates. If you plan to continue using it, please be aware that future security issues will not be addressed.

The Things Network -- OGC SensorWeb Integration

This is a node.js based integration between The Things Network (TTN) and the OGC SensorWeb, providing seamless measurement upload from LoRaWAN connected sensors into OGC infrastructure. Specifically the SOS is implemented as storage backend. Building on a modular architecture, support for more backends is planned. Besides measurement upload, the goal is to manage devices in both platforms consistently by automatically registering or updating them in the counterpart platform.

architecture diagram

This project was developed in the course of 52°North's Student Innovation Challenge 2017 against the SOS implementation by 52°North.

Features

  • Passes messages from LoRaWAN connected sensors to a OGC storage backend
    • SOS Transactional API 2.0
    • SOS MQTT extension (currently available in SOS development version)
    • easily extendable to other backends (roadmap: SensorThings API)
  • Configuration Sync: Register a device once in TTN; done!
    • no hassle with SensorML & co
  • Simple declarative bridge definition via YAML configuration file
  • Scales well for multiple sensor types & storage backends

User Setup guide

For a comprehensive guide of setting up a LoRa connected sensor that submits data into the 52North SOS, see doc/HOWTO.md.

Installation & Configuration

Docker installation

Depending on your environment, deployment with docker is most straightforward. Please refer to the Docker setup guide.

Native installation

Requires node v10.x and yarn.

# get the source (alternatively get the zipball)
git clone https://github.com/52North/ttn-ogcswe-integration
cd ttn-ogcswe-integration

# install dependencies & transpile typescript
yarn install
yarn build

# configure based on sample config (see below)
cp config.yml.sample config.yml
vi config.yml

yarn start

Configuration

The integration is configured through a single YAML file, config.yml. The code includes a configuration template at config.yml.sample which explains all possible options.

The file can define one or an array of bridge configurations. To define another bridge, just paste another configuration block as defined in config.yml.sample. This allows many sensor configurations, or sending messages to multiple backends.

Development

For instructions on how to set up the dev environment & the development workflow, please refer to doc/DEVELOP.md.

License

MIT - Norwin Roosen