Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

README

CLI application to load sensor data from mqtt.sensemakersams.org MQTT stream into SensorThingsAPI server, such as GOST or FROST-Server (only tested against GOST).

See the file raw_observation.md for the input data format sta-obs-loader is capable of parsing.

Dependencies

Requires Python version >=3.6.8.

Install dependencies with:

pip3 install -r requirements.txt

Usage

Usage CLI:

./script.py --help
Usage: script.py [OPTIONS] STA_BASE_URL MQQT_HOST MQTT_PORT MQTT_OPIC

Options:
  -u, --mqtt_user TEXT
  -p, --mqtt_password TEXT
  --help                    Show this message and exit.

For example (credentials are obfuscated):

python3 script.py  sub mqtt.sensemakersams.org 9998 pipeline/mijnomgeving/# -u ***** -p *****

Debug configuration in VS Code

Add the following configuration to launch.json:

 {
    "name": "Launch ./script.py",
    "type": "python",
    "request": "launch",
    "program": "${workspaceFolder}/script.py",
    "console": "integratedTerminal",
    "args":[
        "http://localhost:32788/v1.0", "mqtt.sensemakersams.org", "9998", "pipeline/mijnomgeving/#", "-u", "public", "-p", "public1234"
    ]
}

About

CLI application to load sensor observations from MQTT stream into SensortThings API server

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages