Routerdiag WINDTRE is an experimental reference implementation for monitoring a TP-Link VX830v used behind a ZTE/WINDTRE 5G router in Italy.
It can collect router and internet health data, inspect nearby Wi-Fi networks, archive selected router diagnostics, send optional Telegram notifications, and detect Wi-Fi configuration drift. Repair support is available, but it is always opt-in.
Important
This repository documents one observed WINDTRE deployment and firmware family. Router APIs and payloads can change without notice. Start in read-only mode, inspect the output, and make a router backup before enabling repair.
This is a small, best-effort reference project. It has no support commitment, release schedule, compatibility guarantee, or roadmap. It is not affiliated with or endorsed by WINDTRE, TP-Link, or ZTE.
The implementation was designed around:
- a TP-Link VX830v downstream router, normally at
192.168.1.1 - a ZTE/WINDTRE 5G upstream router, normally at
192.168.192.1 - Windows 10 or 11
- Python 3.11 or newer
Other firmware versions may expose different private APIs. Treat repair as firmware-specific.
From PowerShell:
git clone https://github.com/itlezy/routerdiag-wind.git
cd routerdiag-wind
.\scripts\windows\setup_routerdiag.ps1The setup script creates .venv and installs the project there. It does not
install a system-wide Python package.
Copy the public examples to ignored local files:
Copy-Item .env.example .env.local
Copy-Item .\profiles\wifi_profile.example.json .\profiles\wifi_profile.local.json
notepad .env.local
notepad .\profiles\wifi_profile.local.jsonSet your router passwords, actual SSID, expected channels, and Wi-Fi repair profile locally. Never commit either local file.
The repair profile may contain the Wi-Fi passphrase because some VX830v firmware expects a complete Wi-Fi payload when applying changes. Keep the file private and restrict its Windows permissions.
Take one read-only sample:
.\.venv\Scripts\python.exe -m routerdiag --once --history "" --no-router-logsRun the continuous monitor in read-only mode:
.\.venv\Scripts\python.exe -m routerdiagEnable repair only after reviewing your local profile and read-only output:
.\.venv\Scripts\python.exe -m routerdiag --repairThe standalone Wi-Fi guard also requires an explicit repair flag:
.\.venv\Scripts\python.exe -m routerdiag.wifi_guard
.\.venv\Scripts\python.exe -m routerdiag.wifi_guard --repairRuntime logs and history are written under var/ and may contain hostnames,
MAC addresses, local IP addresses, router identifiers, or disk serial numbers.
The directory is ignored by Git; do not publish it.
Set these values in .env.local:
ROUTERDIAG_TG_ENABLED=1
ROUTERDIAG_TG_BOT_TOKEN=
ROUTERDIAG_TG_CHAT_ID=Then test with:
.\.venv\Scripts\python.exe -m routerdiag --test-telegramThe helper installs a task for the current interactive user with limited
privileges. It does not run as SYSTEM.
.\scripts\windows\install_routerdiag_task.ps1
.\scripts\windows\start_routerdiag_task.ps1
.\scripts\windows\routerdiag_status.ps1HAR inspection helpers are under tools/har/. HAR files and decrypted router
payloads are highly sensitive and are ignored by Git.
.\.venv\Scripts\python.exe .\tools\har\analyze_har.py C:\path\to\router.har --out .\var\router.har-diagnostics.md
.\.venv\Scripts\python.exe .\tools\har\decrypt_tplink_gdpr.py C:\path\to\router.har --key "key=<16-byte-key>&iv=<16-byte-iv>" --out .\var\router.gdpr-decrypted.jsonlSee also:
MIT. See LICENSE.