Tracardi / tracardi

TRACARDI is a new HOME for your customer data. TRACARDI is an Composable API-first solution for any company that need inexpensive CDP to intergrate with.
https://www.tracardi.com
Other
519 stars 95 forks source link

Plugin: MQTT publisher #103

Closed atompie closed 2 years ago

atompie commented 3 years ago

Introduction

Plugin that publishes payload to defined topic on MQTT broker

Prerequisites

In order to write this plugin you will have to install MQTT broker on your computer. Here is an article hot to do it on windows and Linux.

Asyncio python packages for mqtt

Configuration

This plugin needs configuration. Source id defines credentials for MQTT broker. You have to find what the broker need and create the model for this resource.

topic is a queue name - MQTT use topics that identify queues. ReAD MORE ABOUT mqtt here:

Configuration example

{
 "source": {
     "id": "tracardi-source-id"
 },
 "topic": "MQTT topic"

Plugin input

plugin takes a payload and publishes it to defined topic in configuration

Output

This plugins needs 2 outputs. Success and error - publish OK response from broker to success port and error to error port.

DawidekZagajnik commented 3 years ago

.