From 1de38694e1eb94e52f0d732c3f1545936de4ddee Mon Sep 17 00:00:00 2001 From: frstrtr Date: Wed, 24 Jun 2026 07:37:24 +0000 Subject: [PATCH] web(d-miner3): worker-uptime dashboard page consuming uptime API MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adds web-static/uptime.html: per-worker uptime view over the read-only miner_uptime_api (D-MINER.2) — worker selector + date range, daily hours-online/avg-hashrate/stale% table, presence calendar heatmap, and a Download-CSV button (hits the uptime.csv endpoint with the same range). Fetches from a same-origin /uptime-api reverse-proxy path by default (overridable via window.UPTIME_API_BASE), matching the API design note (localhost-bound, fronted by the dashboard proxy). Degrades gracefully with a banner if the uptime service/proxy is not reachable. Field names mirror the API exactly (days[].{day,hours_online,avg_hashrate,samples,stale_pct,partial}, totals). Web layer only; no consensus paths touched. Proxy route to follow as a separate slice. --- web-static/uptime.html | 272 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 272 insertions(+) create mode 100644 web-static/uptime.html diff --git a/web-static/uptime.html b/web-static/uptime.html new file mode 100644 index 000000000..a65b3a644 --- /dev/null +++ b/web-static/uptime.html @@ -0,0 +1,272 @@ + + + + + + + + + Worker Uptime - c2pool + + + + +
+
+
+ + +
+
+
+ +
+ + +
+
+
+ + +
+
+ + +
+
+ + +
+ + +
+
+ + + + + +
+

Per-day detail

+ + + + + + + + +
DayHours onlineAvg hashrateSamplesStale %Partial
Select a worker…
+
+
+ + + +