Reads a MeshCore repeater's console over BLE or USB and publishes what it hears: the `pktlog` raw-frame feed in the meshcoretomqtt format (community analyzer with a JWT signed by the node's key, audience = broker hostname, or an own broker without auth) and optionally stats, `nodes`, `rxlog` to a local MQTT broker. Needs the observer build of meshcore-tth. Tested on a XIAO with the observer build over USB and over BLE: feed in the meshcoretomqtt format, packet hashes matching those of other observers. Unit tests for the parsers, the packet transform, the Ed25519 signature (checked against `cryptography`), the JWT and paho-mqtt 1.x/2.x; README (Czech), AGENTS.md, CI, Renovate. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
commit
0da25dd15b
10 files changed
+1868
No files matched your search
@@ -0,0 +1,37 @@
|
||||
[build-system]
|
||||
requires = ["setuptools>=68"]
|
||||
build-backend = "setuptools.build_meta"
|
||||
|
||||
[project]
|
||||
name = "meshcore-repeater-observer"
|
||||
dynamic = ["version"]
|
||||
description = "Observer feed and stats from a MeshCore repeater's console over BLE or USB"
|
||||
readme = "README.md"
|
||||
license = "MIT"
|
||||
requires-python = ">=3.10"
|
||||
dependencies = [
|
||||
"bleak>=0.22",
|
||||
"paho-mqtt>=1.6",
|
||||
"pyserial>=3.5",
|
||||
]
|
||||
|
||||
[project.optional-dependencies]
|
||||
dev = ["pytest", "ruff", "mypy", "cryptography"]
|
||||
|
||||
[project.scripts]
|
||||
meshcore-repeater-observer = "meshcore_repeater_observer:cli"
|
||||
|
||||
[tool.setuptools]
|
||||
py-modules = ["meshcore_repeater_observer"]
|
||||
|
||||
[tool.setuptools.dynamic]
|
||||
version = { attr = "meshcore_repeater_observer.__version__" }
|
||||
|
||||
[tool.ruff]
|
||||
line-length = 120
|
||||
|
||||
[tool.ruff.lint]
|
||||
select = ["E", "F", "W", "I", "B", "UP"]
|
||||
|
||||
[tool.mypy]
|
||||
ignore_missing_imports = true
|
||||
Reference in new issue
Block a user