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.
Getting Started
MMRelay runs on Linux, macOS, and Windows.
Quick Installation
# Install using pip
pip install mmrelay
# Or use pipx for isolated installation (recommended)
pipx install mmrelay
Resources
- New Users: See INSTRUCTIONS.md for setup and configuration
- Existing Users: Check UPGRADE_TO_V1.md for migration guidance
- Configuration: Review sample_config.yaml for examples
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
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:
Produce high-level details about your mesh:
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!
- Our project's room: #mmrelay:meshnet.club
- Part of the Meshtastic Community Matrix space: #meshtastic-community:meshnet.club
- Public Relay Room: #relay-room:meshnet.club - Where we bridge multiple meshnets. Feel free to join us, with or without a relay!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mmrelay-1.0.tar.gz.
File metadata
- Download URL: mmrelay-1.0.tar.gz
- Upload date:
- Size: 46.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e88dc3727491a95e44195d89efc6317713074190354917e6aecbe70dbfb4b7a5
|
|
| MD5 |
2fc967184777c59014c4923d01bc7b1b
|
|
| BLAKE2b-256 |
eccba95b5c5b578f48db09dea7799e37fa18b66cc3b4e6fe328c71ba67d31a75
|
Provenance
The following attestation bundles were made for mmrelay-1.0.tar.gz:
Publisher:
pypi-publish.yml on geoffwhittington/meshtastic-matrix-relay
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mmrelay-1.0.tar.gz -
Subject digest:
e88dc3727491a95e44195d89efc6317713074190354917e6aecbe70dbfb4b7a5 - Sigstore transparency entry: 195624748
- Sigstore integration time:
-
Permalink:
geoffwhittington/meshtastic-matrix-relay@1d87d7318970f9d24919d259f8e882fc524aab65 -
Branch / Tag:
refs/tags/1.0 - Owner: https://github.com/geoffwhittington
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-publish.yml@1d87d7318970f9d24919d259f8e882fc524aab65 -
Trigger Event:
release
-
Statement type:
File details
Details for the file mmrelay-1.0-py3-none-any.whl.
File metadata
- Download URL: mmrelay-1.0-py3-none-any.whl
- Upload date:
- Size: 54.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
46d3dc927de0a19faaef118e3856dc2d26232ce44fc77b7382e37df4c7832d7e
|
|
| MD5 |
cfd62baf8ad09d92724e70c7796d6240
|
|
| BLAKE2b-256 |
1d410c814b3fe51def01249ad87d8c853c30bf1c07061736ee5b5a4b2a7b04c7
|
Provenance
The following attestation bundles were made for mmrelay-1.0-py3-none-any.whl:
Publisher:
pypi-publish.yml on geoffwhittington/meshtastic-matrix-relay
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mmrelay-1.0-py3-none-any.whl -
Subject digest:
46d3dc927de0a19faaef118e3856dc2d26232ce44fc77b7382e37df4c7832d7e - Sigstore transparency entry: 195624749
- Sigstore integration time:
-
Permalink:
geoffwhittington/meshtastic-matrix-relay@1d87d7318970f9d24919d259f8e882fc524aab65 -
Branch / Tag:
refs/tags/1.0 - Owner: https://github.com/geoffwhittington
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-publish.yml@1d87d7318970f9d24919d259f8e882fc524aab65 -
Trigger Event:
release
-
Statement type: