Implement complete NetworkzeroMonitor application#6
Draft
Copilot wants to merge 3 commits intoAntwerpdesigns-Seed-Root-Mainfrom
Draft
Implement complete NetworkzeroMonitor application#6Copilot wants to merge 3 commits intoAntwerpdesigns-Seed-Root-Mainfrom
Copilot wants to merge 3 commits intoAntwerpdesigns-Seed-Root-Mainfrom
Conversation
- network_monitor.py: Core monitoring engine (NetworkMonitor + PiHoleMonitor) - Ping host with RTT parsing - DNS resolution with dnspython + socket fallback - Internet connectivity quality check - Local network info + interface stats via psutil - Per-interface traffic counters - Port scanner - Pi-hole API integration (status/summary/top blocked) - networkzero_cli.py: Full CLI with 7 commands - ping, dns, status, ports, traffic, pihole, monitor - networkzero_gui.py: Tkinter GUI with 7 tabs - Dashboard, Ping, DNS Lookup, Pi-hole, Live Monitor, Port Scanner, Traffic - Supporting files: setup.sh/bat, run_cli.sh/bat, run_gui.sh/bat, config.ini - test_networkzero.py: 25 unit tests (all passing) - README.md: Full documentation Agent-Logs-Url: https://github.com/AntwerpDesignsIonity/NetworkzeroMonitor/sessions/b4accdbc-220d-4921-b773-5a6231dde98e Co-authored-by: AntwerpDesignsIonity <211600625+AntwerpDesignsIonity@users.noreply.github.com>
- network_monitor.py: Sanitize Pi-hole API error messages to redact auth token values that may appear in urllib3 exception strings - config.ini: Align window size with GUI defaults (1024x720) - networkzero_gui.py: Remove unused 'app' variable in main() - test_networkzero.py: Test DNS fallback via public check_dns_resolution() instead of the private _dns_via_socket() method Agent-Logs-Url: https://github.com/AntwerpDesignsIonity/NetworkzeroMonitor/sessions/b4accdbc-220d-4921-b773-5a6231dde98e Co-authored-by: AntwerpDesignsIonity <211600625+AntwerpDesignsIonity@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Complete the program functionality
Implement complete NetworkzeroMonitor application
Apr 14, 2026
AntwerpDesignsIonity
approved these changes
Apr 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The repository was a skeleton with only a README stub. This PR implements the full NetworkzeroMonitor application — a cross-platform Python network diagnostics tool branded for Ionity (Pty) Ltd.
Core engine (
network_monitor.py)NetworkMonitor: ping with RTT parsing, DNS resolution (dnspython + socket fallback), connectivity quality check, local network info + interface stats via psutil, per-interface traffic counters, port scannerPiHoleMonitor: Pi-hole REST API integration (status / summary / top blocked); error messages sanitizeauth=tokens to prevent API key leakage via urllib3 exception stringsInterfaces
networkzero_cli.py): 7 subcommands —ping,dns,status,ports,traffic,pihole,monitornetworkzero_gui.py): 7-tab Tkinter app — Dashboard, Ping, DNS Lookup, Pi-hole, Live Monitor, Port Scanner, Traffic; all network I/O runs on daemon threadsSetup & launchers
setup.sh/setup.bat: create venv, install dependenciesrun_cli.sh/bat,run_gui.sh/bat: one-command launchers that guard against missing venvconfig.ini: user-editable defaults (hosts, DNS servers, Pi-hole URL/key, window size, theme)Tests
25 unit tests covering all public APIs; Pi-hole tests use
unittest.mockso no live Pi-hole is required.Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
api.ipify.org/usr/bin/python python test_networkzero.py(dns block)/usr/bin/python python networkzero_cli.py status(dns block)/usr/bin/python python test_networkzero.py --demo(dns block)cloudflare.com/usr/bin/ping ping -c 1 -W 2 cloudflare.com -j ACCEPT(dns block)/usr/bin/ping ping -c 1 -W 2 cloudflare.com(dns block)/usr/bin/ping ping -c 1 -W 2 cloudflare.com -j DROP(dns block)github.com (HTTP Only)REDACTED, pid is -1(packet block)google.com/usr/bin/ping ping -c 1 -W 2 google.com(dns block)/usr/bin/ping ping -c 1 -W 2 google.com _ _ _ _ --print-diagnostics-summary --print-metrics-summary(dns block)this.host.does.not.exist.invalid/usr/bin/ping ping -c 1 -W 1 this.host.does.not.exist.invalid(dns block)/usr/bin/ping ping -c 1 -W 1 this.host.does.not.exist.invalid r cal/bin/git(dns block)If you need me to access, download, or install something from one of these locations, you can either: