The SignalK to SensorThings project is an asynchronous, modular data integration pipeline that converts sensor telemetry and metadata between SignalK and OGC SensorThings API (STA) instances (such as FROST-Server).
The primary application on the USV-Gobelijn vehicle is to ingest NMEA 2000 and NMEA 0183 sensor observations from the onboard SignalK server, persist them into an onboard SensorThings database, and synchronize data to onshore SensorThings servers.
On the USV, a NMEA-to-USB converter connects the vehicle's NMEA bus to an Ubuntu mini-PC hosting Docker services, including SignalK and FROST-Server. More about the vessel hardware and container setup can be found in the USV Docker Services Repository.
flowchart LR
A@{ shape: procs, label: "Sensors"} --> D[NMEA Bus]
D[NMEA Bus] --USB--> F[SignalK]
HH@{ shape: lin-doc, label: "Logs"}
subgraph Mini-PC [Onboard Mini-PC]
F[SignalK] --WebSocket & REST--> G[Pipeline: sk2st]
F[SignalK] --> H[(DB)]
F[SignalK] --> HH
G[Pipeline: sk2st] --REST Upsert--> I[Onboard FROST-Server]
I[Onboard FROST-Server] --> K[(PostGIS DB)]
end
subgraph Shore [Onshore Infrastructure]
I[Onboard FROST-Server] --REST Sync--> P2[Pipeline: st2st]
P2[Pipeline: st2st] --REST Upsert--> KK[Onshore FROST-Server]
end
The service provides pluggable components managed by an asynchronous orchestrator:
-
SignalK to SensorThings (
sk2st):- Ingests vessel identity, lazy sensor / observed property metadata, and live delta streams from SignalK.
- Transforms updates into OGC SensorThings entities (
Thing,Location,Sensor,ObservedProperty,Datastream,Observation). - Persists observations into FROST-Server with dynamic datastream provisioning and geospatial
FeatureOfInterestapproximation.
-
SensorThings to SensorThings (
st2st):- Periodically polls an existing SensorThings server for new
HistoricalLocationsandObservations. - Replicates entities and telemetry to a secondary/onshore SensorThings server.
- Periodically polls an existing SensorThings server for new
- Architecture & System Design: Detailed component design, class hierarchies, sequence diagrams, and domain entity mapping.
- Message Flow & Data Transformation: End-to-end data lifecycle, protocol handshakes, and JSON payload examples.
- Configuration Guide: Configuration schemas, parameters, and examples for all source connectors, convertors, and sinks.
- CI/CD Pipeline: Automated testing, static analysis, container builds, and GitLab CI setup.
This project is managed with uv and targets Python 3.14.
Install and pin the target Python version:
uv python install 3.14
uv python pin 3.14Synchronize dependencies and create the virtual environment:
uv syncRun unit tests:
uv run pytestRun linting and formatting checks:
uv run ruff check .
uv run ruff format --check .Run static type analysis:
uv run pyrightDisplay help and available options:
uv run pipeline --helpRun the pipeline with the default configuration (config.yaml):
uv run pipelineRun with a specific configuration profile:
# Run SignalK to SensorThings pipeline
uv run pipeline -c config/sk2st_config.yaml
# Run SensorThings to SensorThings replication pipeline
uv run pipeline -c config/st2st_config.yamlA local development stack containing SignalK, FROST-Server, PostGIS, and both pipeline workers is defined in docker/compose.dev.yml:
docker compose -f docker/compose.dev.yml up --build