A Dockerized Relay for Meshtastic and Matrix featuring an Integrated Virtual Meshtastic Node communicating via MQTT
 
 
 
Go to file
Jeremiah K d9e496d8fe Update meshtastic-matrix-relay submodule to include recent nodes plugin fix 2023-12-12 11:48:20 -06:00
.github/workflows Check develop 2023-08-22 14:21:06 +02:00
app Update meshtastic-matrix-relay submodule to include recent nodes plugin fix 2023-12-12 11:48:20 -06:00
device Change device docker base image to debian:bookworm-slim 2023-09-25 20:47:45 +00:00
.gitignore Move docker-compose.yaml 2 sample & add .gitignore 2023-10-25 11:02:33 -05:00
.gitmodules Almost works.... 2023-08-29 00:00:05 +00:00
LICENSE Initial commit 2023-08-16 23:07:49 +02:00
README.md Update README.md 2023-11-27 19:57:31 -06:00
docker-compose-sample.yaml Change seturl 2023-11-28 19:59:32 +00:00

README.md

MMRELAYNODE

A dockerized relay between Meshtastic and Matrix with native Meshtastic node connected via MQTT and the meshtastic node is virtualized too.

The repository uses firmware built based on https://github.com/meshtastic/firmware.

Relay operation is implemented using the Meshtastic <=> Matrix Relay https://github.com/geoffwhittington/meshtastic-matrix-relay.

Feel free to explore the Meshtastic project on their website: https://meshtastic.org.

This project consists of two containers mmrealynode-app and mmrelaynode-device.

First copy docker-compose-sample.yaml to docker-compose.yaml and customize it for your setup.

To build the containers:

git clone https://github.com/mate-dev/mmrelaynode.git
cd mmrelaynode && git submodule update --init
docker compose -f "docker-compose.yaml" up -d --build
docker compose restart

Note: It is important to restart the containers after the first run so the virtual Meshtastic node can be rebooted after the MESHTATIC_COMMAND_X: commands that are definied in your docker-compose.yaml are issued.

Use the following command to see the output of command_wrapper.py & the MESHTASTIC_COMMAND_X commands:

docker exec -it mmrelaynode-app cat /home/mesh/app/command_output.txt

The commands will only be executed the first time the container is started. To re-run the commands, delete the file flag file and restart the container.

To delete the flag file:

docker exec -it mmrelaynode-app rm /home/mesh/app/.commands_executed

If modifying the scripts, use these commands to rebuild the containers from scratch:

docker compose down --volumes
docker compose build --no-cache
docker compose up -d --force-recreate