A simple tkinter python app to control APP4MC rovers via HONO using AMQPS.
Requires python3
to run.
See requirements.txt for python library dependencies. The requirements should be satisfied by the installation steps below.
- Install TK for Python 3 using
sudo apt install python3-tk
(or similar commands on non-Debian/Ubuntu systems) - Install cli-proton-python using
sudo pip3 install cli-proton-python
- If you get SSL errors when running the script, rebuild
python-qpid-proton
(used bycli-proton-python
) with SSL support from OpenSSL. Building with OpenSSL requirespython-pkgconfig
to find OpenSSL -python-pkgconfig
might be missing. Below script makes sure it is present.- Uninstall the packages without SSL first
sudo pip3 uninstall python-qpid-proton cli-proton-python
- Make sure
python-pkgconfig
is available:sudo apt install python-pkgconfig
- Rebuild with verbose output:
sudo pip3 -v install cli-proton-python
should showUsing openssl version 1.0.2n (found via pkg-config)
if you still getWarning: OpenSSL not installed - disabling SSL support!
SSL will keep failing.
- Uninstall the packages without SSL first
- Adapt the following constants in the
Rover_Control.py
scriptpassword
the password Hono'sconsumer@HONO
userhostAndPort
the host name and the AMQPS port of the Hono dispatch router in the format<hostname>:<port>
tenant
the Hono tenant that contains the rover to controldevice
the Hono device ID of the device to controltrustStore
a trust store (i.e. a certificate) in PEM format that contains either the certificate presented by the host to connect to or the certificate of the CA that issued the certificate.
- Start using
python3 Rover_Control.py