Eyeride 5G device passes HTTP traffic but drops ICMP, causing false 100% loss.
When ping gives 100% loss, try curl --interface to confirm connectivity; if
HTTP probe succeeds, correct loss to 0% and derive latency from connect time.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
stat output can include non-numeric chars on some RT2600ac firmware versions,
causing 0 to fail. Strip with tr -cd '0-9' before arithmetic.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- hub/server.py: replace psycopg2 Postgres connection with urllib HTTP call to
ingest /api/devices endpoint (fleet Postgres is Docker-internal, not reachable
from the VPS directly)
- telemetry-synology.sh: run_speedtest() now writes per-interface cache files
(speedtest-result-<iface>); _cached_speedtest() reads cache if < 35 min old;
_collect_wan() uses cached result so throughput shows in telemetry without
blocking every 1-min cycle
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Auto-detect cellular vs fiber/Starlink regardless of physical port:
aiwanbal modem_type → Eyeride subnet (192.168.10.x) → gateway patterns
- Integrate aiwanbal/SmartAiBalancer state as primary data source when
available (fresh <120s); fall back to self-collected ping metrics
- Add carrier detection: AT&T for fiber gateways, Eyeride for cellular
- Add run_speedtest() with speedtest-cli/iperf3/curl download fallback
- Extract jitter (mdev) from ping output for richer metrics
- Consistent canonical GL format: modem_0001=cellular, wan=ethernet/fiber
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
- sudo ping returns exit 1 on any packet loss, which triggered the
|| fallback to direct ping, causing duplicate output concatenation
- Now check exit code explicitly: only fall back on exit >= 2 (real error)
- Fixes loss_pct showing 100100 instead of 100 on failed WANs
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
- ipgeo_gps: pipe curl output through tr -d to strip newlines
- _ping_iface: pipe printf output through tr -d for newline safety
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
- Rewrite telemetry-synology.sh: canonical GL format (modem_0001/wan keys),
self-contained metrics (no aiwanbal), Eyeride GPS with IP geo fallback
- Add /api/fleet-telemetry to hub: joins tunnel status with fleet Postgres
- Update dashboard.html: per-device WAN health bars, GPS, signal strength
- Fix hub/ingest.sh normalisation: remap old wan1/wan2 → modem_0001/wan
- Bump SPK version: 0.1-0001 → 0.5.0-0001 for GL parity
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
- GL connect-wizard.sh: fixed key authorization block indentation (was at 3 tabs instead of 2)
- GL kit-busrouter Makefile: added +kit-connect to DEPENDS so installing the balancer auto-pulls connectivity
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
- scripts/backup-config.sh: weekly router config backup to hub (SRM + OpenWrt)
Runs via cron, exports platform-specific config, POSTs to /api/backup
Keeps last 10 backups per device on hub
- hub/ingest.sh: fleet hub telemetry normalizer + backup receiver
Normalises GL (openwrt) and Synology telemetry into single schema
Adds platform field to GL telemetry for unified dashboard
- hub/dashboard.html: single-pane fleet console
Shows all routers (GL + Synology) with scores, WAN state, GPS, uptime
Auto-refreshes every 10s from /api/status endpoint
- 62-point checklist updated with weekly backup section 9b
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>