Skip to content

Implement NetworkzeroMonitor: network diagnostics tool with CLI/GUI and Pi-hole integration#5

Draft
Copilot wants to merge 6 commits intoAntwerpdesigns-Seed-Root-Mainfrom
copilot/setup-local-cli-environment
Draft

Implement NetworkzeroMonitor: network diagnostics tool with CLI/GUI and Pi-hole integration#5
Copilot wants to merge 6 commits intoAntwerpdesigns-Seed-Root-Mainfrom
copilot/setup-local-cli-environment

Conversation

Copy link
Contributor

Copilot AI commented Feb 10, 2026

Built network monitoring application with dual interfaces (CLI/GUI), real-time diagnostics, and Pi-hole integration for Ionity (Pty) Ltd.

Architecture

Core Module (network_monitor.py)

  • NetworkMonitor class: ping, DNS resolution, connectivity checks, network info retrieval
  • PiHoleMonitor class: status, statistics, top blocked domains via Pi-hole API

Interfaces

  • CLI (networkzero_cli.py): 5 commands - ping, dns, status, pihole, monitor
  • GUI (networkzero_gui.py): 5 tabs - Dashboard, Ping, DNS, Pi-hole, Live Monitor

Setup

  • Cross-platform automation: setup.bat (Windows), setup.sh (Unix)
  • Quick launchers for both interfaces
  • Virtual environment management

Usage

# Setup
./setup.sh

# CLI
./run_cli.sh dns github.com -s 8.8.8.8
./run_cli.sh monitor --host 8.8.8.8 --interval 5
./run_cli.sh pihole summary --url http://192.168.1.1

# GUI
./run_gui.sh

Implementation Notes

  • DNS lookups support custom servers (Google, Cloudflare, OpenDNS)
  • Ping uses platform-specific subprocess calls (may require elevated privileges)
  • Pi-hole integration uses REST API with optional authentication
  • GUI threading prevents blocking on network operations
  • All Ionity branding applied per requirements

Dependencies

ping3>=4.0.4, dnspython>=2.4.2, psutil>=5.9.6, 
requests>=2.31.0, matplotlib>=3.8.2

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:

  • 1.1.1.1
    • Triggering command: REDACTED, pid is -1 (packet block)
  • 208.67.222.222
    • Triggering command: REDACTED, pid is -1 (packet block)
  • 8.8.8.8
    • Triggering command: REDACTED, pid is -1 (packet block)
  • api.ipify.org
    • Triggering command: /home/REDACTED/work/NetworkzeroMonitor/NetworkzeroMonitor/venv/bin/python python network_monitor.py (dns block)
    • Triggering command: /home/REDACTED/work/NetworkzeroMonitor/NetworkzeroMonitor/venv/bin/python python networkzero_cli.py status (dns block)
    • Triggering command: /home/REDACTED/work/NetworkzeroMonitor/NetworkzeroMonitor/venv/bin/python python test_networkzero.py (dns block)
  • cloudflare.com
    • Triggering command: /usr/bin/ping ping -c 1 -W 2 cloudflare.com (dns block)
  • github.com (HTTP Only)
    • Triggering command: REDACTED, pid is -1 (packet block)
  • google.com
    • Triggering command: /usr/bin/ping ping -c 2 -W 2 google.com (dns block)
    • Triggering command: /usr/bin/ping ping -c 1 -W 2 google.com (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

uses local cli and local venv enviroment with inevtion installet at chosen location seyup bats and all required even dll files, makrs rhe gui and network ststus with all functions from the localhost enviroment onto the machine via cli even had a live ai vhat connected to github clinor yhis agenys. make it uniqur focus is on network, pings , activity, connetec ,dns pihole section or tab and likewisr product of www.ionity.today Ionity and Ionity (Pty) Ltd


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 5 commits February 10, 2026 13:44
Co-authored-by: AntwerpDesignsIonity <211600625+AntwerpDesignsIonity@users.noreply.github.com>
Co-authored-by: AntwerpDesignsIonity <211600625+AntwerpDesignsIonity@users.noreply.github.com>
Co-authored-by: AntwerpDesignsIonity <211600625+AntwerpDesignsIonity@users.noreply.github.com>
Co-authored-by: AntwerpDesignsIonity <211600625+AntwerpDesignsIonity@users.noreply.github.com>
Co-authored-by: AntwerpDesignsIonity <211600625+AntwerpDesignsIonity@users.noreply.github.com>
Copilot AI changed the title [WIP] Setup local CLI and venv environment with necessary configurations Implement NetworkzeroMonitor: network diagnostics tool with CLI/GUI and Pi-hole integration Feb 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants