mirror of
https://github.com/pe1hvh/meshcore-gui.git
synced 2026-03-28 17:42:38 +01:00
_abbrev_table used a list comprehension inline inside a generator expression filter. In Python 3, list comprehensions have their own scope, so the loop variable 'cu' was not visible to the outer 'if' condition — causing a NameError on every !h / !help DM command. Extract the comprehension to a local variable 'cats_upper' so both the iteration and the filter operate on the same pre-built list.
33 lines
1.3 KiB
YAML
33 lines
1.3 KiB
YAML
# =============================================================================
|
|
# MeshCore Bridge — Configuration
|
|
# =============================================================================
|
|
#
|
|
# Cross-frequency message bridge daemon configuration.
|
|
# See BRIDGE.md for full documentation.
|
|
#
|
|
# IMPORTANT: The bridge channel must exist on BOTH devices with
|
|
# IDENTICAL channel secret/password. Only the frequency
|
|
# and channel index may differ.
|
|
|
|
bridge:
|
|
channel_name: "bridge" # Channel name (for display / logging)
|
|
channel_idx_a: 3 # Channel index on device A
|
|
channel_idx_b: 3 # Channel index on device B
|
|
poll_interval_ms: 200 # Polling interval (milliseconds)
|
|
forward_prefix: true # Add [sender] prefix to forwarded messages
|
|
max_forwarded_cache: 500 # Loop prevention cache size (number of hashes)
|
|
|
|
device_a:
|
|
port: /dev/ttyUSB1 # Serial port for device A
|
|
baud: 115200 # Baud rate
|
|
label: "869.525 MHz" # Display label for dashboard
|
|
|
|
device_b:
|
|
port: /dev/ttyUSB2 # Serial port for device B
|
|
baud: 115200 # Baud rate
|
|
label: "868.000 MHz" # Display label for dashboard
|
|
|
|
gui:
|
|
port: 9092 # Web dashboard port
|
|
title: "MeshCore Bridge" # Browser tab title
|