mirror of
https://github.com/efiten/coredrive-rx.git
synced 2026-11-23 12:57:58 +00:00
A fixed uplinkScope ("be") reaches almost nobody just over the border: of
the Limburg border repeaters in CoreScope's node_declared_regions, many in NL
declare only *, nl or nl-li. uplinkScope is now a preference list
("de,nl,be"). Per ping, src/autoscope.js counts how many of the repeaters
heard directly in the last 5 minutes forward each candidate (the companion's
default scope first, then the list) and takes the most forwarded. With none
forwarded but *, the ping goes out un-scoped (fw v12+); with nothing known,
in the companion's default scope (CMD_GET_DEFAULT_FLOOD_SCOPE, fw v10+).
Declared regions come from CoreScope GET /api/nodes/declared-regions
(uplinkRegionsUrl, default corescopeUrl + that path, every 30 min) merged
with this session's own region answers. The MQTT payload is unchanged.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
32 lines
1.9 KiB
JSON
32 lines
1.9 KiB
JSON
{
|
|
"mqttUrl": "wss://broker.example:8084/ws",
|
|
"mqttUsername": "coredrive-rx",
|
|
"mqttPassword": "<publish-only EMQX account password>",
|
|
"resolveUrl": "https://corescope.example/api/nodes/resolve",
|
|
"_searchUrl": "Optional. Lets an ambiguous path hash resolve to its one repeater/room when the other matches are companions or sensors.",
|
|
"searchUrl": "https://corescope.example/api/nodes/search",
|
|
"_corescopeUrl": "Optional. CoreScope's origin, for login and companion linking. Defaults to the origin of resolveUrl.",
|
|
"corescopeUrl": "https://corescope.example",
|
|
"fullRfLog": true,
|
|
"rfSampler": true,
|
|
"regionDiscovery": true,
|
|
"_nodeNames": "For a repeater CoreScope has no name for, asks the repeater itself (ANON_REQ_TYPE_OWNER) and publishes the name on /names. Makes discover replies carry the full pubkey (+24 bytes each).",
|
|
"nodeNames": true,
|
|
"verifyAdverts": false,
|
|
"_uplinkPing": "Off unless set. Sends a small message on uplinkChannel and listens for a repeater re-broadcasting it, so CoreScope can map where this companion is heard. Every ping is a flood the region carries; pacing below. uplinkScope is a region or a preference list (e.g. \"de,nl,be\"): each ping takes the region most repeaters heard around you forward, un-scoped when they only forward *, the companion's default scope when nothing is known; empty always uses the companion's default. Regions come from uplinkRegionsUrl (default: corescopeUrl + /api/nodes/declared-regions). Needs a free channel slot on the companion.",
|
|
"uplinkPing": false,
|
|
"uplinkChannel": "#coredrive",
|
|
"uplinkScope": "",
|
|
"uplinkIntervalSec": 60,
|
|
"uplinkMinMoveM": 250,
|
|
"uplinkMaxPerHour": 50,
|
|
"uplinkSkipDays": 7,
|
|
|
|
"_regionPacing": "Optional. Defaults shown; see src/regionsched.js for why.",
|
|
"regionAskGapSec": 2,
|
|
"regionTargetGapSec": 30,
|
|
"regionMaxAsks": 3,
|
|
"regionForgetMin": 5,
|
|
"regionBonusSnrDb": 6
|
|
}
|