frost-bridge
v1.0.26
Published
This little library is used to communicate with a [FROST-server](https://github.com/FraunhoferIOSB/FROST-Server) to store IOT-related information, following SensorThings OGC standards.
Downloads
41
Readme
FROST-bridge
This little library is used to communicate with a FROST-server to store IOT-related information, following SensorThings OGC standards.
Configuration
You can edit the server URL in lib/config/network.ts
.
For testing, we use the FROST-Server all-in-one Docker image.
Build
Before building, you need to install dependencies with npm install
.
Then, run npm run build
.
Tests
There are different tests configurations within this project, all of them compile library before running tests.
npm run test
Contains basic tests of the project, excluding load charge tests.
npm run test:all
Runs all tests of the library, including load charge tests.
npm run test:verbose
Runs all tests with a (very) verbose output, printing all actions and calls from the library, very helpful when you don't understand what it is doing exactly.
npm run test:webpack
Does not run tests, but rather launches internal.js
, which is used to test the compiled version of the library.
Architecture
Entities used in this project are of two different categories:
- strains, containing minimal information required to create the entity on the server;
- server, which map SensorThings OGC entities.