Command-line interface

jnt_query

Browse and interact with the Janitoo nework.

usage: jnt_query [-h] [–debug] [–output {txt,raw}] {query,cmds,genres,types,caps,node,network} ...

-h, --help

show this help message and exit

--debug

Enable debug mode

--output {txt,raw}

Enable debug mode

jnt_query caps

usage: jnt_query [-h] [–debug] [–output {txt,raw}] {query,cmds,genres,types,caps,node,network} ...

-h, --help

show this help message and exit

jnt_query cmds

usage: jnt_query [-h] [–debug] [–output {txt,raw}] {query,cmds,genres,types,caps,node,network} ...

-h, --help

show this help message and exit

jnt_query genres

usage: jnt_query [-h] [–debug] [–output {txt,raw}] {query,cmds,genres,types,caps,node,network} ...

-h, --help

show this help message and exit

jnt_query network

usage: jnt_query [-h] [–debug] [–output {txt,raw}] {query,cmds,genres,types,caps,node,network} ...

-h, --help

show this help message and exit

--vuuid {request_info_nodes,request_info_users,request_info_configs,request_info_systems,request_info_basics,request_info_commands,all}

The value id (request)

--host <host>

The host of the mosquitto server

--port <port>

The port of the mosquitto server

--timeout <timeout>

The timeout to wait for response

--myhadd <myhadd>

The hadd we will use to receive response

jnt_query node

usage: jnt_query [-h] [–debug] [–output {txt,raw}] {query,cmds,genres,types,caps,node,network} ...

-h, --help

show this help message and exit

--vuuid {request_info_nodes,request_info_users,request_info_configs,request_info_systems,request_info_basics,request_info_commands,all}

The value id (request)

--hadd <hadd>

The hadd of the node to request info

--host <host>

The host of the mosquitto server

--port <port>

The port of the mosquitto server

--timeout <timeout>

The timeout to wait for response

--myhadd <myhadd>

The hadd we will use to receive response

jnt_query query

usage: jnt_query [-h] [–debug] [–output {txt,raw}] {query,cmds,genres,types,caps,node,network} ...

-h, --help

show this help message and exit

--uuid <uuid>

The value id

--data <data>

The data to send to the value

--cmdclass <cmdclass>

The value command class

--index <index>

Index of the instance value

--type <type>

The value type

--genre {basic,user,config,system,command}

The value genre

--readonly <readonly>

Should we read (get) the value

--writeonly <writeonly>

Whould we write (set) the value

--hadd <hadd>

The hadd of the node to request info

--host <host>

The host of the mosquitto server

--port <port>

The port of the mosquitto server

--timeout <timeout>

The timeout to wait for response

--myhadd <myhadd>

The hadd we will use to receive response

jnt_query types

usage: jnt_query [-h] [–debug] [–output {txt,raw}] {query,cmds,genres,types,caps,node,network} ...

-h, --help

show this help message and exit

jnt_collect

Collect data locally from Janitoo entry-points.

usage: jnt_collect [-h] [-o {txt,raw}] [-b BUS] [-c COMPONENT] [-t {all,janitoo.threads,janitoo.components,janitoo.values,janitoo.models,janitoo_flask.blueprint,janitoo_flask.menu_left,janitoo_flask.listener,janitoo_flask.network,janitoo_manager.blueprint,janitoo_manager.menu_left,janitoo_manager.listener,janitoo_manager.network}]

-h, --help

show this help message and exit

-o {txt,raw}, --output {txt,raw}

The format (txt, raw, ...)

-b <bus>, --bus <bus>

Collect values of the bus

-c <component>, --component <component>

Collect values of the compoent

-t {all,janitoo.threads,janitoo.components,janitoo.values,janitoo.models,janitoo_flask.blueprint,janitoo_flask.menu_left,janitoo_flask.listener,janitoo_flask.network,janitoo_manager.blueprint,janitoo_manager.menu_left,janitoo_manager.listener,janitoo_manager.network}, --type {all,janitoo.threads,janitoo.components,janitoo.values,janitoo.models,janitoo_flask.blueprint,janitoo_flask.menu_left,janitoo_flask.listener,janitoo_flask.network,janitoo_manager.blueprint,janitoo_manager.menu_left,janitoo_manager.listener,janitoo_manager.network}

The type of entry-point

jnt_spy

Spy the Janitoo protocol.

usage: jnt_spy [-h] [–host HOST] [–port PORT] [–topic TOPIC]

-h, --help

show this help message and exit

--host <host>

The host of the mosquitto server

--port <port>

The port of the mosquitto server

--topic <topic>

The topic to listen to