mmrelay 1.1.1__py3-none-any.whl → 1.1.3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of mmrelay might be problematic. Click here for more details.
- mmrelay/__init__.py +1 -13
- mmrelay/log_utils.py +40 -48
- mmrelay/main.py +49 -11
- mmrelay/matrix_utils.py +405 -144
- mmrelay/meshtastic_utils.py +91 -84
- mmrelay/message_queue.py +475 -0
- mmrelay/plugin_loader.py +2 -2
- mmrelay/plugins/base_plugin.py +92 -39
- mmrelay/tools/sample_config.yaml +26 -4
- {mmrelay-1.1.1.dist-info → mmrelay-1.1.3.dist-info}/METADATA +11 -13
- {mmrelay-1.1.1.dist-info → mmrelay-1.1.3.dist-info}/RECORD +15 -14
- mmrelay-1.1.3.dist-info/licenses/LICENSE +675 -0
- mmrelay-1.1.1.dist-info/licenses/LICENSE +0 -21
- {mmrelay-1.1.1.dist-info → mmrelay-1.1.3.dist-info}/WHEEL +0 -0
- {mmrelay-1.1.1.dist-info → mmrelay-1.1.3.dist-info}/entry_points.txt +0 -0
- {mmrelay-1.1.1.dist-info → mmrelay-1.1.3.dist-info}/top_level.txt +0 -0
mmrelay/tools/sample_config.yaml
CHANGED
|
@@ -3,6 +3,10 @@ matrix:
|
|
|
3
3
|
access_token: reaalllllyloooooongsecretttttcodeeeeeeforrrrbot # See: https://t2bot.io/docs/access_tokens/
|
|
4
4
|
bot_user_id: "@botuser:example.matrix.org"
|
|
5
5
|
|
|
6
|
+
# Message prefix customization (Meshtastic → Matrix direction)
|
|
7
|
+
#prefix_enabled: true # Enable prefixes on messages from mesh (e.g., "[Alice/MyMesh]: message")
|
|
8
|
+
#prefix_format: "[{long}/{mesh}]: " # Default format. Variables: {long1-20}, {long}, {short}, {mesh1-20}, {mesh}
|
|
9
|
+
|
|
6
10
|
matrix_rooms: # Needs at least 1 room & channel, but supports all Meshtastic channels
|
|
7
11
|
- id: "#someroomalias:example.matrix.org" # Matrix room aliases & IDs supported
|
|
8
12
|
meshtastic_channel: 0
|
|
@@ -15,14 +19,26 @@ meshtastic:
|
|
|
15
19
|
serial_port: /dev/ttyUSB0 # Only used when connection is "serial"
|
|
16
20
|
ble_address: AA:BB:CC:DD:EE:FF # Only used when connection is "ble" - Uses either an address or name from a `meshtastic --ble-scan`
|
|
17
21
|
meshnet_name: Your Meshnet Name # This is displayed in full on Matrix, but is truncated when sent to a Meshnet
|
|
18
|
-
broadcast_enabled: true # Must be set to true to enable Matrix to Meshtastic messages
|
|
19
|
-
detection_sensor: true # Must be set to true to forward messages of Meshtastic's detection sensor module
|
|
20
|
-
plugin_response_delay: 3 # Default response delay in seconds for plugins that respond on the mesh;
|
|
21
|
-
# heartbeat_interval: 180 # Interval in seconds to check connection health using getMetadata() (default: 180)
|
|
22
22
|
message_interactions: # Configure reactions and replies (both require message storage in database)
|
|
23
23
|
reactions: false # Enable reaction relaying between platforms
|
|
24
24
|
replies: false # Enable reply relaying between platforms
|
|
25
25
|
|
|
26
|
+
# Connection health monitoring configuration
|
|
27
|
+
#health_check:
|
|
28
|
+
# enabled: true # Enable/disable periodic health checks (default: true)
|
|
29
|
+
# heartbeat_interval: 60 # Interval in seconds between health checks (default: 60)
|
|
30
|
+
# # Note: BLE connections use real-time disconnection detection and skip periodic checks
|
|
31
|
+
# # Legacy: heartbeat_interval at meshtastic level still supported but deprecated
|
|
32
|
+
|
|
33
|
+
# Additional configuration options (commented out with defaults)
|
|
34
|
+
#broadcast_enabled: true # Must be set to true to enable Matrix to Meshtastic messages
|
|
35
|
+
#detection_sensor: true # Must be set to true to forward messages of Meshtastic's detection sensor module
|
|
36
|
+
#message_delay: 2.2 # Delay in seconds between messages sent to mesh (minimum: 2.0 due to firmware)
|
|
37
|
+
|
|
38
|
+
# Message prefix customization (Matrix → Meshtastic direction)
|
|
39
|
+
#prefix_enabled: true # Enable username prefixes on messages sent to mesh (e.g., "Alice[M]: message")
|
|
40
|
+
#prefix_format: "{display5}[M]: " # Default format. See EXTRA_CONFIGURATION.md for all variables.
|
|
41
|
+
|
|
26
42
|
logging:
|
|
27
43
|
level: info
|
|
28
44
|
#log_to_file: true # Set to true to enable file logging
|
|
@@ -31,6 +47,12 @@ logging:
|
|
|
31
47
|
#backup_count: 1 # Keeps 1 backup as the default if omitted
|
|
32
48
|
#color_enabled: true # Set to false to disable colored console output
|
|
33
49
|
|
|
50
|
+
# Component-specific debug logging (useful for troubleshooting)
|
|
51
|
+
#debug:
|
|
52
|
+
# matrix_nio: false # Enable matrix-nio debug logging for Matrix client issues
|
|
53
|
+
# bleak: false # Enable BLE (bleak) debug logging for Bluetooth connection issues
|
|
54
|
+
# meshtastic: false # Enable meshtastic library debug logging for device communication issues
|
|
55
|
+
|
|
34
56
|
#database:
|
|
35
57
|
# path: ~/.mmrelay/data/meshtastic.sqlite # Default location
|
|
36
58
|
# msg_map: # The message map is necessary for the relay_reactions functionality. If `relay_reactions` is set to false, nothing will be saved to the message map.
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: mmrelay
|
|
3
|
-
Version: 1.1.
|
|
3
|
+
Version: 1.1.3
|
|
4
4
|
Summary: Bridge between Meshtastic mesh networks and Matrix chat rooms
|
|
5
5
|
Home-page: https://github.com/geoffwhittington/meshtastic-matrix-relay
|
|
6
6
|
Author: Geoff Whittington, Jeremiah K., and contributors
|
|
7
7
|
Author-email: jeremiahk@gmx.com
|
|
8
8
|
Project-URL: Bug Tracker, https://github.com/geoffwhittington/meshtastic-matrix-relay/issues
|
|
9
9
|
Classifier: Programming Language :: Python :: 3
|
|
10
|
-
Classifier: License :: OSI Approved ::
|
|
10
|
+
Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
|
|
11
11
|
Classifier: Operating System :: OS Independent
|
|
12
12
|
Classifier: Development Status :: 4 - Beta
|
|
13
13
|
Classifier: Topic :: Communications
|
|
@@ -24,7 +24,7 @@ Requires-Dist: haversine==2.9.0
|
|
|
24
24
|
Requires-Dist: schedule==1.2.2
|
|
25
25
|
Requires-Dist: platformdirs==4.3.8
|
|
26
26
|
Requires-Dist: py-staticmaps>=0.4.0
|
|
27
|
-
Requires-Dist: rich==14.
|
|
27
|
+
Requires-Dist: rich==14.1.0
|
|
28
28
|
Requires-Dist: setuptools==80.9.0
|
|
29
29
|
Dynamic: author
|
|
30
30
|
Dynamic: author-email
|
|
@@ -58,11 +58,11 @@ A powerful and easy-to-use relay between Meshtastic devices and Matrix chat room
|
|
|
58
58
|
- ✨️ _Bidirectional replies and reactions support_ ✨️ **NEW!!**
|
|
59
59
|
- ✨️ _Native Docker support_ ✨️ **NEW!!**
|
|
60
60
|
|
|
61
|
-
_We would love to support [Matrix E2EE rooms](https://github.com/
|
|
61
|
+
_We would love to support [Matrix E2EE rooms](https://github.com/jeremiah-k/meshtastic-matrix-relay/issues/33), but this is currently not implemented._
|
|
62
62
|
|
|
63
63
|
## Documentation
|
|
64
64
|
|
|
65
|
-
Visit our [Wiki](https://github.com/
|
|
65
|
+
Visit our [Wiki](https://github.com/jeremiah-k/meshtastic-matrix-relay/wiki) for comprehensive guides and information.
|
|
66
66
|
|
|
67
67
|
- [Installation Instructions](docs/INSTRUCTIONS.md) - Setup and configuration guide
|
|
68
68
|
|
|
@@ -101,15 +101,13 @@ Docker provides isolated environment, easy deployment, automatic restarts, and v
|
|
|
101
101
|
|
|
102
102
|
For detailed Docker setup instructions, see the [Docker Guide](docs/DOCKER.md).
|
|
103
103
|
|
|
104
|
-
> **Note**: Docker builds currently use a temporary fork of the meshtastic library with BLE hanging fixes. PyPI releases use the upstream library. This will be resolved when the fixes are merged upstream.
|
|
105
|
-
|
|
106
104
|
---
|
|
107
105
|
|
|
108
106
|
## Windows Installer
|
|
109
107
|
|
|
110
108
|

|
|
111
109
|
|
|
112
|
-
The latest installer is available in the [releases section](https://github.com/
|
|
110
|
+
The latest installer is available in the [releases section](https://github.com/jeremiah-k/meshtastic-matrix-relay/releases).
|
|
113
111
|
|
|
114
112
|
---
|
|
115
113
|
|
|
@@ -127,7 +125,7 @@ Produce high-level details about your mesh:
|
|
|
127
125
|
|
|
128
126
|

|
|
129
127
|
|
|
130
|
-
See the full list of [core plugins](https://github.com/
|
|
128
|
+
See the full list of [core plugins](https://github.com/jeremiah-k/meshtastic-matrix-relay/wiki/Core-Plugins).
|
|
131
129
|
|
|
132
130
|
### Community & Custom Plugins
|
|
133
131
|
|
|
@@ -136,9 +134,9 @@ MMRelay's plugin system allows you to extend functionality in two ways:
|
|
|
136
134
|
- **Custom Plugins**: Create personal plugins for your own use, stored in `~/.mmrelay/plugins/custom/`
|
|
137
135
|
- **Community Plugins**: Share your creations with others or use plugins developed by the community
|
|
138
136
|
|
|
139
|
-
Check the [Community Plugins Development Guide](https://github.com/
|
|
137
|
+
Check the [Community Plugins Development Guide](https://github.com/jeremiah-k/meshtastic-matrix-relay/wiki/Community-Plugin-Development-Guide) in our wiki to get started.
|
|
140
138
|
|
|
141
|
-
✨️ Visit the [Community Plugins List](https://github.com/
|
|
139
|
+
✨️ Visit the [Community Plugins List](https://github.com/jeremiah-k/meshtastic-matrix-relay/wiki/Community-Plugin-List)!
|
|
142
140
|
|
|
143
141
|
#### Install a Community Plugin
|
|
144
142
|
|
|
@@ -164,7 +162,7 @@ Plugins make it easy to extend functionality without modifying the core program.
|
|
|
164
162
|
|
|
165
163
|
## Getting Started with Matrix
|
|
166
164
|
|
|
167
|
-
See our Wiki page [Getting Started With Matrix & MM Relay](https://github.com/
|
|
165
|
+
See our Wiki page [Getting Started With Matrix & MM Relay](https://github.com/jeremiah-k/meshtastic-matrix-relay/wiki/Getting-Started-With-Matrix-&-MM-Relay).
|
|
168
166
|
|
|
169
167
|
---
|
|
170
168
|
|
|
@@ -173,5 +171,5 @@ See our Wiki page [Getting Started With Matrix & MM Relay](https://github.com/ge
|
|
|
173
171
|
Join us!
|
|
174
172
|
|
|
175
173
|
- Our project's room: [#mmrelay:matrix.org](https://matrix.to/#/#mmrelay:matrix.org)
|
|
176
|
-
- Part of the
|
|
174
|
+
- Part of the Meshnet Club Matrix space: [#meshnetclub:matrix.org](https://matrix.to/#/#meshnetclub:matrix.org)
|
|
177
175
|
- Public Relay Room: [#mmrelay-relay-room:matrix.org](https://matrix.to/#/#mmrelay-relay-room:matrix.org) - Where we bridge multiple meshnets. Feel free to join us, with or without a relay!
|
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
mmrelay/__init__.py,sha256=
|
|
1
|
+
mmrelay/__init__.py,sha256=4ciaRmcwzGfuaU_HuNDXVr4Qk0WVkPydhrdXIVo9VOs,120
|
|
2
2
|
mmrelay/cli.py,sha256=hdPTlcGsXTJC9GEUiScG7b3IFp02B3lwhqgwFpU3NsM,13835
|
|
3
3
|
mmrelay/config.py,sha256=5VZag8iSc5yLQgvwI76bbpizbtqag74cHnfXCrWHNyA,7910
|
|
4
4
|
mmrelay/config_checker.py,sha256=UnoHVTXzfdTfFkbmXv9r_Si76v-sxXLb5FOaQSOM45E,4909
|
|
5
5
|
mmrelay/db_utils.py,sha256=eTMMkYVWsmO_DkrBfnZMw4ohg_xa0S9TXJoBjRFTwzo,13590
|
|
6
|
-
mmrelay/log_utils.py,sha256=
|
|
7
|
-
mmrelay/main.py,sha256=
|
|
8
|
-
mmrelay/matrix_utils.py,sha256=
|
|
9
|
-
mmrelay/meshtastic_utils.py,sha256=
|
|
10
|
-
mmrelay/
|
|
6
|
+
mmrelay/log_utils.py,sha256=1zVHBJ5qSOG1O4cq4Ebngq9dp81vaZOEq5khulAFuuM,6611
|
|
7
|
+
mmrelay/main.py,sha256=46J-B6wDRawB392u71kP6pxNoayBdmwOiKcqsleikhU,13182
|
|
8
|
+
mmrelay/matrix_utils.py,sha256=Ans7Wroh693un0LOp4x2p8NPfGFJ9z6TnG6ApXRXg7Q,55686
|
|
9
|
+
mmrelay/meshtastic_utils.py,sha256=iy7BwMlqOwpkqSB0pTx2n8oqaKs2kWQ4PXFk4y16ys8,31440
|
|
10
|
+
mmrelay/message_queue.py,sha256=spLK7pVugnl9djVLIh5-P7iHZ7kRtZEZIWTcQ4X1TfI,18529
|
|
11
|
+
mmrelay/plugin_loader.py,sha256=UJ-i6cL2q_hwMTqjRkaOAQDTj6uUrmyj56-XbUVGcng,39231
|
|
11
12
|
mmrelay/setup_utils.py,sha256=N6qdScHKHEMFKDmT1l7dcLDPNTusZXPkyxrLXjFLhRI,19910
|
|
12
13
|
mmrelay/plugins/__init__.py,sha256=KVMQIXRhe0wlGj4O3IZ0vOIQRKFkfPYejHXhJL17qrc,51
|
|
13
|
-
mmrelay/plugins/base_plugin.py,sha256=
|
|
14
|
+
mmrelay/plugins/base_plugin.py,sha256=DJdM-l-69sMnx6Fgn0rweWF5CuWilnQQAT3nm6eq8f4,18359
|
|
14
15
|
mmrelay/plugins/debug_plugin.py,sha256=adX0cRJHUEDLldajybPfiRDDlvytkZe5aN_dSgNKP2Y,870
|
|
15
16
|
mmrelay/plugins/drop_plugin.py,sha256=0GOz0dgLnFST1HTgqrMayrjwmYlnu02QxfnTZtdPZ3U,4671
|
|
16
17
|
mmrelay/plugins/health_plugin.py,sha256=svV_GfpAVL0QhiVzi3PVZ1mNpsOL1NHSmkRF-Mn_ExE,2250
|
|
@@ -25,10 +26,10 @@ mmrelay/tools/__init__.py,sha256=WFjDQjdevgg19_zT6iEoL29rvb1JPqYSd8708Jn5D7A,838
|
|
|
25
26
|
mmrelay/tools/mmrelay.service,sha256=3vqK1VbfXvVftkTrTEOan77aTHeOT36hIAL7HqJsmTg,567
|
|
26
27
|
mmrelay/tools/sample-docker-compose.yaml,sha256=vVgJrh-6l48hkj5F-52JA5tpDWPBjiPQ36CE9Pkqn44,1251
|
|
27
28
|
mmrelay/tools/sample.env,sha256=RP-o3rX3jnEIrVG2rqCZq31O1yRXou4HcGrXWLVbKKw,311
|
|
28
|
-
mmrelay/tools/sample_config.yaml,sha256=
|
|
29
|
-
mmrelay-1.1.
|
|
30
|
-
mmrelay-1.1.
|
|
31
|
-
mmrelay-1.1.
|
|
32
|
-
mmrelay-1.1.
|
|
33
|
-
mmrelay-1.1.
|
|
34
|
-
mmrelay-1.1.
|
|
29
|
+
mmrelay/tools/sample_config.yaml,sha256=grS70MKHFd9e_lZ3GkmzPi4RRW-PdahMOMPCAg07MWs,4718
|
|
30
|
+
mmrelay-1.1.3.dist-info/licenses/LICENSE,sha256=aB_07MhnK-bL5WLI1ucXLUSdW_yBVoepPRYB0kaAOl8,35204
|
|
31
|
+
mmrelay-1.1.3.dist-info/METADATA,sha256=gNG_TVwJfpvt0s7sd3WDEceXl8Li2WCLGHTkYkXOWVQ,6493
|
|
32
|
+
mmrelay-1.1.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
33
|
+
mmrelay-1.1.3.dist-info/entry_points.txt,sha256=SJZwGUOEpQ-qx4H8UL4xKFnKeInGUaZNW1I0ddjK7Ws,45
|
|
34
|
+
mmrelay-1.1.3.dist-info/top_level.txt,sha256=B_ZLCRm7NYAmI3PipRUyHGymP-C-q16LSeMGzmqJfo4,8
|
|
35
|
+
mmrelay-1.1.3.dist-info/RECORD,,
|