Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The sample Python script below will allow you to migrate credentials from MQTT Distributor to Chariot at scale using the MQTT Distributor API and the Chariot REST API. 

 The script is designed to run from the Script Console in the Ignition instance with where MQTT Distributor is installed . The script will and will:

  • read the user configuration from the MQTT Distributor

...

  • transform the users

...

  • to the required Chariot REST API format
  • add the users to the Chariot MQTT Credentials store

...

  • read and output the Chariot

...

  • MQTT Credentials


Note
  • You will need to set the chariotUrl variable to the URL for your Chariot installation.
  • You will need to create a key:value pair dictionary to assign a password to each MQTT Distributor user as user passwords returned via the MQTT Distributor API call will be encrypted.

...