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