diff --git a/repeater/http_server.py b/repeater/http_server.py index 74eea1c..2c9bd16 100644 --- a/repeater/http_server.py +++ b/repeater/http_server.py @@ -116,8 +116,8 @@ class CADCalibrationEngine: self.broadcast_to_clients({"type": "error", "message": "Radio does not support CAD"}) return - # Get spreading factor - config = stats.get("config", {}) + # Get spreading factor from daemon instance + config = getattr(self.daemon_instance, 'config', {}) radio_config = config.get("radio", {}) sf = radio_config.get("spreading_factor", 8) diff --git a/repeater/templates/cad-calibration.html b/repeater/templates/cad-calibration.html index f3222f4..d0bf5a1 100644 --- a/repeater/templates/cad-calibration.html +++ b/repeater/templates/cad-calibration.html @@ -5,6 +5,8 @@ + + -
- - +
+ + - -
-
-

CAD Calibration

-

Real-time Channel Activity Detection calibration tool

-
- -
- This tool helps you find optimal CAD thresholds for your environment. Lower detection rates (blue/green) are better for mesh networking. +
+
-

Calibration Settings

- -
-
- - -
- -
- - -
- - - - +
+ +
- -
-
- Status: Ready -
-
- Progress: 0/0 -
-
- Current: Peak=-, Min=- -
+
+ +
+
+ + +
+
+ +
+
Ready to start calibration
-
+
+
0 / 0 tests completed
- -
-

Detection Rate Heatmap

- -
-
-
- 0% (Quiet) -
-
-
- 1-10% (Low) -
-
-
- 11-30% (Medium) -
-
-
- 31%+ (High) -
-
-
- Not tested -
+ +
+
+
0
+
Tests Completed
- -
- +
+
0%
+
Best Detection Rate
+
+
+
0%
+
Average Rate
+
+
+
0s
+
Elapsed Time
- -
+
- -
-