Skip to content

as0bit/mqtt2matrix

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

MQTT2MATRIX

This is a small tool to manage your MATRIX-Channel with MQTT.

It make use of the Matrix.SKD (https://github.com/baking-bad/matrix-dotnet-sdk) to communicate with the MATRIX-Server.

You can send messages to 4 MQTT-Subchannels:

  • roomtopic

    • Change the topic of the MATRIX-room
    • Bsp:
    {
    "roomid": "XXXXXXXXXXXXXX:matrix.c3re.de",
    "topic": "new Topic ;-)"
      }
  • roomname

    • Sets the name of the room
    • Bsp:
    {
    "roomid": "XXXXXXXXXXXXXX:matrix.c3re.de",
    "name": "New Name :-)"
      }
  • roomavatar

    • Sets the image of the room
    • Image has to be uploaded to the MATRIX-Server first.
    • URL must be a MATRIX-URL for example ("mxc://matrix.c3re.de/XXXXXXXXXXXXXX")
    • Bsp:
    {
    "roomid": "XXXXXXXXXXXXXX:matrix.c3re.de",
    "url": "mxc://matrix.c3re.de/XXXXXXXXXXXXXX"
      }
  • roommessage

    • Sends a message in the room
    • Bsp:
    {
    "roomid": "XXXXXXXXXXXXXX:matrix.c3re.de",
    "message": "Hello Wolrd"
      }

EnvirementVariables:

**MQTTSERVER -> URL to your MQTTServer

MQTTPORT -> MQTT Port

MQTTUSER -> MQTT Username (Only read on server)

MQTTPASSWORD -> MQTT Password

**MQTTBASETOPIC -> Basetopic for the bot

**MATRIXSERVER -> URL to your Matrix-Server

**MATRIXUSERNAME -> Matrix Username

**MATRIXPASSWORD -> Matrix Password (Token not supported atm with SKD)

MATRIXDEVICEID -> Devicename with the SDK connects to the Matrix-Server

** -> Needed options

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 90.2%
  • Dockerfile 9.8%