mirror of
https://github.com/Kpa-clawbot/meshcore-analyzer.git
synced 2026-07-10 00:31:40 +00:00
c4e26487f1
Wires `score = TimeOnAir(payloadBytes, preset) × distinctRelays` in
cmd/server/relay_airtime_share.go (was bytes × relays). Surfaces the
assumed PHY preset in the JSON response and the analytics dumbbell
chart caption — share numbers are only meaningful relative to one
preset (#1768 triage v1).
Config: `analytics.loraPreset.{freq,bw,sf,cr}` under existing analytics
block, defaults 869.6 MHz / BW 62.5 kHz / SF 8 / CR 4/5 (matches the
deployment's live `get radio` output). CRC=1, IH=0, DE derived from
T_sym, preamble via firmware preambleLengthForSF — firmware-fixed
constants intentionally NOT surfaced as config (per re-triage).
Out of scope for this PR (v2 follow-ups per re-triage):
- per-observation SF/BW + radio-settings-aware dedup
- CR-per-hop dual-point sensitivity band
Tests now pass (was red on commit 8da5706).
cd cmd/server && go test -run RelayAirtime ./... → PASS
cd internal/lora && go test ./... → PASS
59 lines
1.7 KiB
Modula-2
59 lines
1.7 KiB
Modula-2
module github.com/corescope/server
|
|
|
|
go 1.22
|
|
|
|
require (
|
|
github.com/gorilla/mux v1.8.1
|
|
github.com/gorilla/websocket v1.5.3
|
|
github.com/meshcore-analyzer/geofilter v0.0.0
|
|
github.com/meshcore-analyzer/sigvalidate v0.0.0
|
|
modernc.org/sqlite v1.34.5
|
|
)
|
|
|
|
replace github.com/meshcore-analyzer/geofilter => ../../internal/geofilter
|
|
|
|
replace github.com/meshcore-analyzer/sigvalidate => ../../internal/sigvalidate
|
|
|
|
require github.com/meshcore-analyzer/packetpath v0.0.0
|
|
|
|
replace github.com/meshcore-analyzer/packetpath => ../../internal/packetpath
|
|
|
|
require github.com/meshcore-analyzer/dbconfig v0.0.0
|
|
|
|
replace github.com/meshcore-analyzer/dbconfig => ../../internal/dbconfig
|
|
|
|
require github.com/meshcore-analyzer/perfio v0.0.0
|
|
|
|
replace github.com/meshcore-analyzer/perfio => ../../internal/perfio
|
|
|
|
require github.com/meshcore-analyzer/dbschema v0.0.0
|
|
|
|
replace github.com/meshcore-analyzer/dbschema => ../../internal/dbschema
|
|
|
|
require github.com/meshcore-analyzer/lora v0.0.0
|
|
|
|
replace github.com/meshcore-analyzer/lora => ../../internal/lora
|
|
|
|
require (
|
|
github.com/dustin/go-humanize v1.0.1 // indirect
|
|
github.com/google/uuid v1.6.0 // indirect
|
|
github.com/mattn/go-isatty v0.0.20 // indirect
|
|
github.com/ncruces/go-strftime v0.1.9 // indirect
|
|
github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec // indirect
|
|
golang.org/x/sys v0.22.0 // indirect
|
|
modernc.org/libc v1.55.3 // indirect
|
|
modernc.org/mathutil v1.6.0 // indirect
|
|
modernc.org/memory v1.8.0 // indirect
|
|
)
|
|
|
|
require github.com/meshcore-analyzer/prunequeue v0.0.0
|
|
|
|
replace github.com/meshcore-analyzer/prunequeue => ../../internal/prunequeue
|
|
|
|
require (
|
|
github.com/meshcore-analyzer/mbcapqueue v0.0.0
|
|
golang.org/x/sync v0.10.0
|
|
)
|
|
|
|
replace github.com/meshcore-analyzer/mbcapqueue => ../../internal/mbcapqueue
|