JSON generator for Signal K Marine data
Project description
Generate Test Data for Navactor
A test data generator for Signal K json forming time-series graphs of marine reporters reporting their own info as well as that of their nearest neighbors'.
see: https://signalk.org/specification/1.7.0/doc/data_model.html
Test output is validated against the Signal K scheme with the Signal K project's validation tool.
also, long live PEP 621
Status
-
Generates arrays of boats moving in different directions at different speeds.
-
Currently boats reporting other boats is random and the nearest neighbor feature is not implemented yet.
Installing
virtualenv
python -m venv venv
source ./venv/bin/activate
python -m pip install --upgrade pip
via Pypi
python -m pip install signalkgen
Or install with "editing" mode from cloned repo for development of the code.
python -m pip install -e .
Usage
signalkgen --num-boats 300 --nautical-miles 5
Validation
See tox.ini
or .github/workflows/check.yml
for automated tests that invoke the Signal K validation tools.
git clone https://github.com/SignalK/specification
cd specification
npm install
signalkgen --num-boats 300 --nautical-miles 5 | ./bin/validate.js
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for signalkgen-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3a56341130bd9babb4940fd5308cb64cedba8b82b8218470a8987d15f7fc5e9f |
|
MD5 | 3b5b0a8561a8689ef7267d52130ddbd4 |
|
BLAKE2b-256 | 4a8e53d0def017ebed2f20d586fc9dbde234f9190c430a0a18dad656452f002a |