Skip to content

niftyprojects/mqtt_views

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Viewers for MQTT random values and statistics

Instalation

Clone the repository and run the following commands:

poetry install

Usage

mqtt_viewrandom displays the random value published to random/value on the specified broker.

usage: mqtt_viewrand [-h] [--log_level {debug,warn,error,info}] [broker]

Displays random numbers from a MQTT broker.

positional arguments:
  broker                MQTT broker URL, default mqtt://localhost

options:
  -h, --help            show this help message and exit
  --log_level {debug,warn,error,info}
                        Set the logging level. Default error

mqtt_viewstats displays the averages of the random values published to random/stats on the specified broker.

usage: mqtt_viewstats [-h] [--log_level {debug,warn,error,info}] [broker]

Displays averages of the random numbers from a MQTT broker.

positional arguments:
  broker                MQTT broker URL, default mqtt://localhost

options:
  -h, --help            show this help message and exit
  --log_level {debug,warn,error,info}
                        Set the logging level. Default error