Python Command Line Tools

As an alternative to the MIO C library, you can try our PyMIO library located at mio/libs/python2/PyMIO. Example command line tools can be found in mio/tools/cmd-line/python2/.

Install

Dependencies: enum, sleekxmpp, colorlogs

sudo pip install colorlogs
sudo pip install enum
sudo pip install sleekxmpp

Running

cd mio/tools/cmd-line/python2/
$ python mio_publish_data.py 
Usage: ./mio_publish_data.py -u username -p password -e event_node -i transducer_id --value=transducer_value

Options:
  -h, --help            show this help message and exit
  -u USERNAME           JID (give the full JID, i.e. user@domain)
  -p PASSWORD           JID user password
  -e EVENT_NODE, --event=EVENT_NODE
                        name of event node to publish to
  -i TRANSDUCER_ID, --id=TRANSDUCER_ID
                        id (name) of transducer within message
  --value=TRANSDUCER_TYPED_VALUE
                        typed value to publish
  -v                    set logging to Verbose