From c5f5c30b28ff688434d01487ee5998f7dbcad1e1 Mon Sep 17 00:00:00 2001 From: Tom Hudson Date: Sun, 15 Mar 2026 18:07:20 -0400 Subject: [PATCH 1/2] Add internet stability test feature Add a prolonged ping-based stability test with real-time canvas chart, stats (avg/min/max/jitter/packet loss), stability rating, external ping targets, CSV export, and Docker support. Link from main page to stability test. Co-Authored-By: Claude Opus 4.6 --- Dockerfile | 1 + Dockerfile.alpine | 1 + docker/entrypoint.sh | 1 + docker/ui.php | 2 +- package.json | 6 +- stability.html | 793 +++++++++++++++++++++++++++++++++++++++++++ stability_worker.js | 216 ++++++++++++ 7 files changed, 1017 insertions(+), 3 deletions(-) create mode 100644 stability.html create mode 100644 stability_worker.js diff --git a/Dockerfile b/Dockerfile index 365f1b699..097d590a1 100755 --- a/Dockerfile +++ b/Dockerfile @@ -20,6 +20,7 @@ COPY results/*.php /speedtest/results/ COPY results/*.ttf /speedtest/results/ COPY *.js /speedtest/ +COPY stability.html /speedtest/ COPY favicon.ico /speedtest/ COPY docker/servers.json /servers.json diff --git a/Dockerfile.alpine b/Dockerfile.alpine index e513e88a7..755a9259c 100755 --- a/Dockerfile.alpine +++ b/Dockerfile.alpine @@ -34,6 +34,7 @@ COPY results/*.php /speedtest/results/ COPY results/*.ttf /speedtest/results/ COPY *.js /speedtest/ +COPY stability.html /speedtest/ COPY favicon.ico /speedtest/ COPY docker/servers.json /servers.json diff --git a/docker/entrypoint.sh b/docker/entrypoint.sh index 4e63e91c6..c922a0fe6 100755 --- a/docker/entrypoint.sh +++ b/docker/entrypoint.sh @@ -12,6 +12,7 @@ rm -rf /var/www/html/* # Copy frontend files cp /speedtest/*.js /var/www/html/ +cp /speedtest/stability.html /var/www/html/ # Copy favicon cp /speedtest/favicon.ico /var/www/html/ diff --git a/docker/ui.php b/docker/ui.php index 7310d2af6..62001dd01 100755 --- a/docker/ui.php +++ b/docker/ui.php @@ -481,7 +481,7 @@ function initUI(){ - Source code + Stability Test | Source code