ci / test (push) Successful in 1m44s
The repeater's BLE console has no login, only the BLE PIN, and the public builds fix it at 123456 -- "set your own PIN first" could not be done. Point to the meshcore-tth flashing guide instead of the .uf2/.zip note. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
27 lines
1.7 KiB
Markdown
27 lines
1.7 KiB
Markdown
# Instructions for an AI agent setting this up
|
|
|
|
meshcore-repeater-observer reads a MeshCore repeater's console and publishes
|
|
what the repeater hears. README.md is the reference; these are the rules.
|
|
|
|
1. **Read only, with two exceptions the user must approve:** the observer
|
|
itself sets the node's clock (`time <epoch>`) and, for the community feed,
|
|
reads its private key (`get prv.key`) into memory. Never send other CLI
|
|
commands to the repeater (`set …`, `reboot`, `erase`, `advert`) — it is
|
|
part of a community network.
|
|
2. The repeater needs the observer build of meshcore-tth. Ask which board and
|
|
firmware it runs; do not flash anything yourself.
|
|
3. Prefer USB (`/dev/serial/by-id/…`, never `/dev/ttyACM0`). BLE: the console
|
|
is off after flashing and stays off on a public build -- it has no login,
|
|
only the BLE PIN, fixed at build time to `123456`. Suggest BLE only for a
|
|
build the user made with their own `BLE_PIN_CODE`; never run `ble on`. Pairing is interactive (`bluetoothctl pair`) — the user does it.
|
|
Never `bluetoothctl remove` a paired repeater.
|
|
4. Community feed only for a node on the Czech preset (869.432 / 62.5 / SF7 /
|
|
CR5), with `MC_OBS_IATA` set; leave `MC_OBS_AUDIENCE` at its default.
|
|
5. Passwords and PINs go to the env file (mode 600), never into commands you
|
|
print, commits or logs. The private key never leaves the process.
|
|
6. Done = the log shows `observer: připojen k …` and packets are counted;
|
|
on the community analyzer the node appears under observers within minutes.
|
|
|
|
Developing: `python3 -m pytest`, `ruff check`, `ruff format --check`,
|
|
`mypy meshcore_repeater_observer.py`. `--help` must work without bleak/paho.
|