aws_topic_publisher - bruno-beloff/scs_analysis GitHub Wiki
docs > software repositories > scs_analysis > commands > manipulating nodes within JSON documents
DESCRIPTION
The aws_topic_publisher utility is used to prepare data for publication by the aws_mqtt_client script. The aws_topic_publisher acts by taking data from stdin, wrapping it in a JSON document whose only field has the name of the given topic, and presenting the result on stdout.
Note that the aws_topic_publisher in scs_analysis necessarily works differently to the aws_topic_publisher in scs_dev. This is because scs_dev version has access to the device's project specification, and therefore can find the topic path automatically. For the scs_analysis version, the full topic path should be given explicitly.
SYNOPSIS
aws_topic_publisher.py -t TOPIC [-v]
| Options | |
|---|---|
| --version | show program's version number and exit | 
| -h, --help | show this help message and exit | 
| -t TOPIC, --topic=TOPIC | topic path | 
| -v, --verbose | report narrative to stderr | 
EXAMPLES
aws_topic_publisher.py -t /users/southcoastscience-dev/test/json