pmx_model_conf - bruno-beloff/scs_mfr GitHub Wiki
docs > software repositories > scs_mfr > commands > greengrass integration
DESCRIPTION
The pmx_model_conf utility is used to specify how Greengrass data interpretation models are to be accessed:
- UDS_PATH - the Unix domain socket for communication between the particulates sampler and the inference server
- INTERFACE - the format of the request and response
- MODEL - Greengrass ML configuration template
If present, the gas model (set by gas_model_conf utility) must match the PMx model.
The particulates_sampler and Greengrass container must be restarted for changes to take effect.
SYNOPSIS
pmx_model_conf.py [{ -l | [-u UDS_PATH] [-i INTERFACE] [-m MAP] | -d }] [-v]
Options | |
---|---|
--version | show program's version number and exit |
-h, --help | show this help message and exit |
-u UDS_PATH, --uds-path=UDS_PATH | set the UDS path (relative to ~/SCS) |
-i MODEL_INTERFACE, --interface=MODEL_INTERFACE | set the interface code { s1 |
-m MODEL_MAP, --model-map=MODEL_MAP | set the model map { oE.1 |
-d, --delete | delete the inference configuration |
-v, --verbose | report narrative to stderr |
EXAMPLES
./pmx_model_conf.py -u pipes/lambda-pmx-model.uds -i s2 -m oM.2 -v
FILES
~/SCS/conf/pmx_model_conf.json
DOCUMENT EXAMPLE
{"uds-path": "pipes/lambda-pmx-model.uds", "model-interface": "s2", "model-map": "oM.2"}