Skip to main content

Bridge between Meshtastic mesh networks and Matrix chat rooms

Project description

M<>M Relay

(Meshtastic <=> Matrix Relay)

A powerful and easy-to-use relay between Meshtastic devices and Matrix chat rooms, allowing seamless communication across platforms. This opens the door for bridging Meshtastic devices to many other platforms.

Features

  • Bidirectional message relay between Meshtastic devices and Matrix chat rooms, capable of supporting multiple meshnets
  • Supports serial, network, and BLE (now too!) connections for Meshtastic devices
  • Custom fields are embedded in Matrix messages for relaying messages between multiple meshnets
  • Truncates long messages to fit within Meshtastic's payload size
  • SQLite database to store node information for improved functionality
  • Customizable logging level for easy debugging
  • Configurable through a simple YAML file
  • Supports mapping multiple rooms and channels 1:1
  • Relays messages to/from an MQTT broker, if configured in the Meshtastic firmware
  • ✨️ Bidirectional replies and reactions support ✨️ NEW!!
  • ✨️ Native Docker support ✨️ NEW!!

We would love to support Matrix E2EE rooms, but this is currently not implemented.

Documentation

Visit our Wiki for comprehensive guides and information.


Quick Start

MMRelay runs on Linux, macOS, and Windows.

# Install using pipx for isolated installation (recommended)
pipx install mmrelay

# Generate a sample configuration file & then edit it
mmrelay --generate-config

# Start the relay (without --install-service to run manually)
mmrelay --install-service

For detailed installation and configuration instructions, see the Installation Guide.

Docker

MMRelay includes official Docker support for easy deployment and management:

# Quick setup with Docker
make setup   # Copy config and open editor (first time)
make build   # Build the Docker image
make run     # Start the container
make logs    # View logs

Docker provides isolated environment, easy deployment, automatic restarts, and volume persistence.

For detailed Docker setup instructions, see the Docker Guide.


Windows Installer

Windows Installer Screenshot

The latest installer is available in the releases section.


Plugins

M<>M Relay supports plugins for extending its functionality, enabling customization and enhancement of the relay to suit specific needs.

Core Plugins

Generate a map of your nodes:

Map Plugin Screenshot

Produce high-level details about your mesh:

Mesh Details Screenshot

See the full list of core plugins.

Community & Custom Plugins

MMRelay's plugin system allows you to extend functionality in two ways:

  • Custom Plugins: Create personal plugins for your own use, stored in ~/.mmrelay/plugins/custom/
  • Community Plugins: Share your creations with others or use plugins developed by the community

Check the Community Plugins Development Guide in our wiki to get started.

✨️ Visit the Community Plugins List!

Install a Community Plugin

Add the repository under the community-plugins section in config.yaml:

community-plugins:
  example-plugin:
    active: true
    repository: https://github.com/jeremiah-k/mmr-plugin-template.git
    tag: main

Plugin System

Plugins make it easy to extend functionality without modifying the core program. MMRelay features a powerful plugin system with standardized locations:

  • Core Plugins: Pre-installed with the package
  • Custom Plugins: Your own plugins in ~/.mmrelay/plugins/custom/
  • Community Plugins: Third-party plugins in ~/.mmrelay/plugins/community/

Getting Started with Matrix

See our Wiki page Getting Started With Matrix & MM Relay.


Already on Matrix?

Join us!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mmrelay-1.1.3.tar.gz (91.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mmrelay-1.1.3-py3-none-any.whl (97.5 kB view details)

Uploaded Python 3

File details

Details for the file mmrelay-1.1.3.tar.gz.

File metadata

  • Download URL: mmrelay-1.1.3.tar.gz
  • Upload date:
  • Size: 91.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for mmrelay-1.1.3.tar.gz
Algorithm Hash digest
SHA256 ee45442e839fd4771b8af202024ef78103e5957ed88a7c8b807ebffc06a3e01e
MD5 f55b72913bd1e54b4bd0ace742b2c245
BLAKE2b-256 dfd1d8851bb62a637fc2b2bc285928370626ea90681e9a73207158327e4d2b8f

See more details on using hashes here.

Provenance

The following attestation bundles were made for mmrelay-1.1.3.tar.gz:

Publisher: pypi-publish.yml on jeremiah-k/meshtastic-matrix-relay

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mmrelay-1.1.3-py3-none-any.whl.

File metadata

  • Download URL: mmrelay-1.1.3-py3-none-any.whl
  • Upload date:
  • Size: 97.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for mmrelay-1.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 f6d21389a74b35b1585fa156c693746a3ef9f2c52bf7e50ce3755cad920f7293
MD5 efe2ba757e56ebc11a7a76ec73169c8b
BLAKE2b-256 3a4b0abf0cdfa3ca5368478290dd991a975c33a4ad595206c126f3b91e8611c6

See more details on using hashes here.

Provenance

The following attestation bundles were made for mmrelay-1.1.3-py3-none-any.whl:

Publisher: pypi-publish.yml on jeremiah-k/meshtastic-matrix-relay

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page