mqtt2discord

command module
v0.0.0-...-bcd4f1f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 7, 2023 License: MIT Imports: 12 Imported by: 0

README

mqtt2discord

⚠️♻️ Deprecated, go see https://github.com/jlaundry/qtbot where (most of) the code lives on.

A simple Go app that connects to a MQTT server, subscribes to various topics, and pushes those messages into a Discord webhook.

Usage

Create a config.json with a list of topics and their destination webhooks, like below:

{
    "mqtt_server": {
        "address": "tcp://localhost:1883",
        "meta_webhook": "https://discord.com/api/webhooks/1/your_key_here"
    },
    "subscriptions": [
        {
            "topic": "test/#",
            "webhook": "https://discord.com/api/webhooks/2/your_key_here"
        },
        {
            "topic": "test2/#",
            "webhook": "https://discord.com/api/webhooks/2/your_key_here"
        },
    ]
}

Build, and run!

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL