CLI Python Client
This guide will help you get started with the Python CLI client. The client connects to your MQTT broker and allows you to interact with your devices.
You need to have an MQTT broker set up. Both the client will connect to it.
Setup Instructions
-
Clone the StormPythonCLIClient repository.
-
Open a command line terminal and navigate to the cloned project folder. Install the requirements:
pip install -r requirements.txt -
Create a
secrets.pyfile in the project folder with your MQTT broker details:BROKER_ADDRESS = "your_broker_address"
BROKER_PORT = your_broker_port
USERNAME = "your_username"
PASSWORD = "your_password" -
Start the client:
python client.pyWhen successfully started, you should see output similar to this:
The client will automatically connect to any devices being simulated by the device simulator.