How winac2/network-monitor works
Network Monitor is a Python desktop app for live Internet performance and congestion monitoring. The user-facing flow starts in the UI: background workers measure ping and interface throughput, classify network status, and publish samples and events for display and SQLite storage. The UI also provides history, charts, statistics, settings, export, and notifications. The graph preserves README-described capabilities whose detailed handlers were not sampled; those links cite the README. Source excerpts establish the monitoring, queue, persistence, and UI wiring shown here.
Main entry points: ui.py Desktop UI · monitor.py Monitor workers · main.py App startup · database.py Database writer
Components 19
Application and settings
- App startup
main.py - Settings
config.py - Logging
logging_config.py
Monitoring and status
- Monitor workers
monitor.py - Network measurements
monitor.py - Status classification
monitor.py
Dashboard and analysis
- Desktop UI
ui.py - Live dashboard
ui.py - History and events
ui.py - Statistics view
ui.py - Live charts
graph.py - Desktop notifications
notifications.py
Persistence and export
- Database writer
database.py - SQLite history
database.py - CSV and XLSX export
exporter.py
Other components
- Desktop user
- Network and ping host
- Speed test service
- Desktop notification service
Connections 25
- Desktop user → Desktop UI: uses
README.md - App startup → Settings: loads
main.py - App startup → Logging: configures
main.py - App startup → Monitor workers: starts
main.py - App startup → Desktop UI: launches
main.py - App startup → Database writer: starts
main.py - Desktop UI → Settings: saves settings
ui.py - Desktop UI → Monitor workers: starts
ui.py - Monitor workers → Network measurements: runs
monitor.py - Network measurements → Network and ping host: pings and samples
monitor.py - Network measurements → Speed test service: requests tests
monitor.py - Network measurements → Status classification: builds sample for
monitor.py - Monitor workers → Live dashboard: queues samples
monitor.py - Monitor workers → Database writer: queues records
monitor.py - Status classification → Monitor workers: returns status
monitor.py - Database writer → SQLite history: writes records
database.py - Desktop UI → SQLite history: reads history
ui.py - Desktop UI → Live dashboard: renders
ui.py - Live dashboard → Live charts: updates
ui.py - Desktop UI → History and events: provides
README.md - Desktop UI → Statistics view: provides
README.md - Statistics view → CSV and XLSX export: calculates summaries
ui.py - Desktop UI → CSV and XLSX export: exports history
README.md - Live dashboard → Desktop notifications: reports status
ui.py - Desktop notifications → Desktop notification service: sends alerts
notifications.py