Skip to main content

MQTT recorder tool

Project description

MQTT Recorder

Simple cli tool for recording and replaying MQTT messages.

Install

pip install mqtt-recorder

Usage

Argument Description Required Default
-h, --help Show help
--host MQTT broker address x
--port MQTT broker port 1883
--mode mode: record/replay x
--file output/input csv file x
--loop looping replay false
--qos Quality of Service that will be used for subscriptions 0
--topics json file containing selected topics for subscriptions null
--enable_ssl True to enable MQTTs support, False otherwise False
--ca_cert Path to the Certificate Authority certificate files None
--certfile Path to the client certificate None
--keyfile Path to the client private key None
--username MQTT broker username None
--password MQTT broker password None

Recording

Subscribing to every topic

mqtt-recorder --host localhost --mode record --file recording.csv

Subscribing to selected topics

mqtt-recorder --host localhost --mode record --file test.csv --topics topics.json
Topics can be selected using a json file. Example

{
    "topics": [
        "/myhome/groundfloor/livingroom/temperature",
        "USA/California/San Francisco/Silicon Valley"
    ]
}

Replaying

mqtt-recorder --host localhost --mode replay --file test.csv

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mqtt-recorder-1.1.0.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

mqtt_recorder-1.1.0-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file mqtt-recorder-1.1.0.tar.gz.

File metadata

  • Download URL: mqtt-recorder-1.1.0.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.9

File hashes

Hashes for mqtt-recorder-1.1.0.tar.gz
Algorithm Hash digest
SHA256 e1e762d27e690f8513477c1268ee5bf1882a6dae73cb322ed0e224e87ebcef11
MD5 a62a6a505c668e8330c6bf41cbf715cb
BLAKE2b-256 b884ae812d05d68bcc13b1fa2fc656704eb4236e7e3a98604881a098947f6a15

See more details on using hashes here.

File details

Details for the file mqtt_recorder-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: mqtt_recorder-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.9

File hashes

Hashes for mqtt_recorder-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6b241c6bf202e060ff24782296d837dcc394d719fa065dcd20191f0e0d399898
MD5 8c35ab8c09284726b151dafa2f09ed10
BLAKE2b-256 59c5e108e5315b60b664adf0d42027f852dcd338dd2dff2ebe2d3b7d7e001fd5

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page