Skip to main content

Bridge between Meshtastic mesh networks and Matrix chat rooms

Project description

M<>M Relay

✨ Version 1.0 Released! ✨

We're excited to announce MMRelay v1.0 with improved packaging, standardized directories, and enhanced CLI!

Existing users: Version 1.0 requires a few quick migration steps:

  1. Follow the UPGRADE_TO_V1.md guide for a smooth transition
  2. Move your configuration to the new standard location (~/.mmrelay/config.yaml)
  3. See ANNOUNCEMENT.md for all the exciting new features

Not ready to upgrade yet? No problem! Run git checkout 0.10.1 to continue using the previous version.

(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.


Getting Started

MMRelay runs on Linux, macOS, and Windows.

Quick Installation

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

# Pip will also work if you prefer
pip install mmrelay

For pipx installation instructions, see: pipx installation guide

Resources

Command-Line Options

usage: mmrelay [-h] [--config CONFIG] [--data-dir DATA_DIR] [--log-level {error,warning,info,debug}] [--logfile LOGFILE] [--version] [--generate-config] [--install-service] [--check-config]

Options:
  -h, --help            Show this help message and exit
  --config CONFIG       Path to config file
  --data-dir DATA_DIR   Base directory for all data (logs, database, plugins)
  --log-level {error,warning,info,debug}
                        Set logging level
  --logfile LOGFILE     Path to log file (can be overridden by --data-dir)
  --version             Show version and exit
  --generate-config     Generate a sample config.yaml file
  --install-service     Install or update the systemd user service
  --check-config        Check if the configuration file is valid

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
  • ✨️ Cross-platform reactions support ✨️ NEW!!

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


Windows Installer

Windows Installer Screenshot

The latest installer is available here.


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 here.

Community & Custom Plugins

It is possible to create custom plugins and share them with the community. Check example_plugins/README.md and the Community Plugins Development Guide.

✨️ 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

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/

Plugins make it easy to extend functionality without modifying the core code.


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.0.2.tar.gz (49.4 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.0.2-py3-none-any.whl (57.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for mmrelay-1.0.2.tar.gz
Algorithm Hash digest
SHA256 3bec2debb1eec397ccdf68a1a7e45b38200a1921a791ff026ac6b3a6e5d4605b
MD5 dbc27c543678ce77cd2c4b8a777be6be
BLAKE2b-256 5eaf5784bd49093b2bfd0ad5a332b6b8d27cff8964190b363acbfe692bf1b9f5

See more details on using hashes here.

Provenance

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

Publisher: pypi-publish.yml on geoffwhittington/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.0.2-py3-none-any.whl.

File metadata

  • Download URL: mmrelay-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 57.7 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.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5e451e637132d0b1c1576ed25220c2759b6dcfed6a69c4613b0a552cc25cb5b1
MD5 2e571550d270ce62b5928e53a5d7cc38
BLAKE2b-256 f5d9725609ac3a2b3e17d1aee2fcce50076f63500a540b294b0abf476d94953f

See more details on using hashes here.

Provenance

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

Publisher: pypi-publish.yml on geoffwhittington/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