Built to order

WiFi Speed and Outage Logger with Downtime Reports (Python)

This project builds NetPulse, a Python desktop app monitoring a WiFi connection: speedtest-cli tests every 30 minutes record download, upload and ping, while ICMP probes every 10 seconds fill the gaps between tests. An outage is declared only after 6 consecutive ping failures, so single dropped packets never raise false alarms, with every sample stored in a local SQLite database. It draws daily speed graphs, an outage timeline and a complaint-ready downtime report with CSV export. Suitable for B.E./B.Tech final-year projects in Computer Science and Information Technology.

Chat on WhatsApp — get a quotation

Computer / IT SQLiteCSV exportMatplotlib chartspystray system trayPython 3.12PySide6 desktop UIspeedtest-clipandas aggregationSoftware
WiFi Speed and Outage Logger with Downtime Reports (Python) — project thumbnail preview
More project photos (3)

The problem

NetPulse is a Python desktop app that answers the question every broadband subscriber eventually asks: was the internet actually down, or did it just feel slow? The app runs two measurement rhythms side by side. Every 30 minutes (configurable) it launches a full speedtest-cli run recording download speed, upload speed and ping. Between those heavy tests it sends a lightweight ICMP ping every 10 seconds to three rotating targets: 8.8.8.8, 1.1.1.1 and the local gateway. An outage is declared only after 6 consecutive ping failures, a design-target threshold that stops a single dropped packet or a momentary WiFi glitch from raising a false alarm. Every sample lands in a local SQLite database — no cloud account, no API key, nothing uploaded — and the app sits in the system tray with alerts on outage start and end. From that log it draws daily speed graphs, an outage timeline and a complaint-ready downtime report with CSV export.

SYSTEM FLOW

5 components 4 connections

Live flow
Drag to explore
100%
appMonitor Engine

Runs 10-second ICMP probes and 30-minute speedtest-cli runs.

Follow the working sequence

How it works

A scheduler wakes two loops. Every 30 minutes the speed loop runs speedtest-cli against the nearest server, parses download, upload and ping, and inserts one row into SQLite. Every 10 seconds the probe loop sends one ICMP echo to the next target in rotation — 8.8.8.8, 1.1.1.1, then the gateway — recording the round-trip time or the timeout. A counter tracks consecutive failures: any successful reply resets it to zero, and only at 6 does the detector write an outage-start row and raise a tray alert — a design-target detection delay of about 60 seconds. When pings succeed again, an outage-end row closes the event with its duration. The report engine queries the log for the chosen period, aggregates tests into a daily graph, lays outages on a timeline, computes uptime as a percentage of monitored minutes, and renders the complaint summary with its per-event table and CSV download.

  1. The app starts minimized to the system tray; the probe loop begins at once, rotating ICMP pings across 8.8.8.8, 1.1.1.1 and the gateway every 10 seconds (design-target defaults).
  2. Each reply's round-trip time — or its timeout — is written to the SQLite probes table with a timestamp.
  3. The detector keeps a consecutive-failure counter: any successful reply resets it to zero; at 6 consecutive failures an outage-start row is logged and a tray balloon alert fires (approximately 60 seconds design-target detection delay).
  4. Every 30 minutes the speed loop runs speedtest-cli, parses download, upload and ping, and stores one row in the tests table; each full test moves roughly 30–50 MB of traffic at ~90 Mbps line speeds (expected), so tests stay sparse by design.
  5. When probes succeed again, an outage-end row is written and the event is closed with its computed duration.
  6. The report engine aggregates the selected period: daily speed graph, outage timeline, uptime percentage of monitored minutes, and a plain-language complaint summary.
  7. One click exports the raw log as CSV — timestamp, download Mbps, upload Mbps, ping ms, server — for the ISP or the project report.

Tech stack:

  • Python 3.12
  • PySide6 (Qt desktop UI)
  • speedtest-cli
  • SQLite
  • Matplotlib (charts)
  • pandas (aggregation)
  • pystray (system tray)
  • reportlab (PDF reports)
Parameter Value
Speed-test interval 30 minutes (configurable 15 min – 2 h; design-target default)
Ping probe interval 10 seconds (configurable 5–30 s; design-target default)
Outage threshold 6 consecutive ping failures (configurable 3–10; design-target default)
Detection delay Approximately 60 seconds at default settings (expected)
Traffic per full speed test Approximately 30–50 MB at ~90 Mbps line speeds (expected)
Database SQLite, single local file (netpulse.db)
Log retention 90 days (design target; raw probes rolled into hourly averages)
Report outputs On-screen summary, outage timeline chart, PDF and CSV export
Platform Windows 10/11 desktop, Python 3.12 (expected)
Tray behaviour Minimizes to tray; balloon alerts on outage start and end

Project features

The four capabilities that define NetPulse are dual-rhythm monitoring, honest outage detection, a local SQLite evidence store, and complaint-ready downtime reports. Dual-rhythm monitoring pairs sparse full speed tests — every 30 minutes as a design-target default — with cheap ICMP pings every 10 seconds, because a full speedtest-cli run at ~90 Mbps moves roughly 30–50 MB of test traffic and is far too heavy to run continuously. Honest outage detection declares an outage only after 6 consecutive ping failures across rotating targets, so one dropped packet never becomes a false alarm; the design-target detection delay is about 60 seconds. The SQLite store keeps every test and probe locally — no cloud account, nothing uploaded. Downtime reports turn the log into a daily speed graph, an outage timeline with per-event evidence, and a plain-language summary for ISP complaints, exportable as CSV. A system tray, configurable intervals, retention rollups and a live dashboard complete the build.

  • [Dual-rhythm monitoring] Full speedtest-cli runs every 30 minutes (configurable 15 min – 2 h) plus lightweight ICMP pings every 10 seconds (configurable 5–30 s) between tests — heavy measurements stay sparse by design, cheap probes keep watch continuously.
  • [Outage detection without false alarms] An outage is declared only after 6 consecutive ping failures (configurable 3–10); any successful reply from any target resets the counter, so lone dropped packets and brief WiFi hiccups never trigger alerts.
  • [Local SQLite evidence store] Every speed test and every probe is timestamped into a single local database file — no cloud account, no API key, no data leaves the machine.
  • [Complaint-ready downtime reports] One-click reports with the monitoring period, median speeds, uptime percentage, total downtime, and a per-outage table with start, end, duration and observed evidence — written for ISP support tickets.
  • [System-tray presence] The app lives in the tray with balloon alerts when an outage starts and ends, and optional start-with-Windows so logging survives reboots.
  • [CSV export] The raw log exports as timestamped CSV (timestamp, download, upload, ping, server) — proof no ISP can dismiss as anecdotal.
  • [Configurable intervals and threshold] Speed-test cadence, ping cadence, outage threshold and ping targets are all settings, persisted across restarts (optional customization, not hardcoded).
  • [Retention with hourly rollup] 90-day design-target retention; raw probes older than the window are aggregated into hourly averages so the database stays small.

What is included

  • Complete Python source code: probing engine, outage detector, report generator and tray UI
  • SQLite schema plus a sample database holding a week of realistic logged data
  • Project report PDF: background, measurement design, detection logic, sample results
  • PPT presentation for the final review
  • Viva Q&A preparation document covering networking, concurrency and database questions
  • Setup and configuration guide: installing speedtest-cli, permissions, autostart on boot
  • Project abstract PDF

Limitations & prerequisites

  • Speed tests cost data: each full test moves roughly 30–50 MB at ~90 Mbps (expected), so the 30-minute default is a deliberate trade-off; shorter intervals raise data usage proportionally.
  • Probes measure reachability, not fault ownership: the app cannot see inside the ISP's network, so likely causes in reports are labeled as observations, never diagnoses.
  • Detection delay is approximately 60 seconds by design — blips shorter than 6 consecutive failures are logged as high-latency events, not outages.
  • speedtest-cli figures depend on server choice and network load; they are point-in-time measurements, not guaranteed line ratings.
  • The base build targets Windows 10/11; Linux and macOS ports are optional customizations.
  • The app monitors only while the machine is on — it cannot log the network during shutdown or sleep.

Frequently Asked Questions

How does it tell a real outage from a single dropped ping?

It counts consecutive failures instead of reacting to any single one. The probe loop pings three rotating targets every 10 seconds, a counter increments on each failure and resets on any success, and only at 6 consecutive failures — about 60 seconds of silence as a design target — does the app declare an outage and raise a tray alert. A lone dropped packet or a two-second WiFi hiccup never survives the count. Rotating three targets adds a second layer of honesty: when the gateway answers but both public targets fail, the evidence points past the router, and the report says so. Each event stores first-failure and recovery timestamps, so durations are computed from data, not guessed.

Does the app itself need the internet to work?

Only to measure it — NetPulse runs entirely on the local machine, and the SQLite log, the charts and the report engine all work offline. It needs connectivity the way a thermometer needs air: to take readings; when the connection drops, that is the data — the probes fail, the outage is logged, and the app keeps running. Nothing is ever uploaded, so there is no cloud account or API dependency that can break. The one external tool is speedtest-cli, which needs a reachable test server for the 30-minute full tests; if those fail while pings succeed, the log notes degraded connectivity rather than a full outage.

Can the test interval and outage threshold be changed?

Yes — both are settings, not hardcoded values. The speed-test interval adjusts from 15 minutes to 2 hours, the ping interval from 5 to 30 seconds, and the outage threshold from 3 to 10 consecutive failures, with 30 minutes, 10 seconds and 6 failures as the design-target defaults. Shorter intervals catch outages faster but cost more test traffic and more frequent CPU wake-ups; the defaults are the middle ground the report justifies with numbers. The settings panel also controls retention length, tray alerts and start-with-Windows, and every choice is persisted so the app restarts exactly as configured.

Will running it slow down my connection?

No — that is exactly why the two rhythms are split. Ping probes are a few dozen bytes each and invisible on any broadband line, while full speed tests are the heavy part: each one moves roughly 30–50 MB of traffic at ~90 Mbps line speeds (expected), which is why they run every 30 minutes by default and never during an active outage. A week of default logging costs about 13 GB of test traffic (expected) — noticeable on a metered plan, negligible on unlimited broadband. Stretching the interval to 2 hours cuts that to roughly 3 GB a week, and the report documents the trade-off.

What does the ISP complaint report contain?

A one-page summary built for a support ticket or consumer-forum complaint: the monitoring period, the count of tests and probes run, median download and upload outside outages, uptime as a percentage of monitored minutes, total downtime, and a table of every outage with start, end, duration and the app's observed evidence. The raw CSV log attaches as proof — timestamped rows no ISP can dismiss as anecdotal. The report deliberately labels likely causes as observations (for example "ONT showed LOS") rather than diagnoses, because the app measures from a single machine and cannot see inside the ISP's network — an honesty point worth making in the viva.

Is this project suitable for a final-year project?

Yes — for Computer Science and Information Technology programs. It demonstrates concurrent programming (a scheduler running probe and test loops), network measurement (ICMP probing plus speedtest-cli integration), database design (a time-series SQLite schema with retention rollups), and data presentation (charts and generated reports) — all in one coherent, demonstrably working system. There is no machine learning in this project and the page claims none; the viva story is measurement methodology, threshold design and evidence handling, which gives a substantive technical discussion.

Components & software requirements
  • Python 3.12
  • PySide6 (Qt desktop UI)
  • speedtest-cli
  • SQLite
  • Matplotlib (charts)
  • pandas (aggregation)
  • pystray (system tray)
  • reportlab (PDF reports)
Delivery information

Built-to-order project. Delivery timeline is shared after order confirmation based on current queue.

Support terms

Complete documentation, setup guide, and viva preparation included. Support for setup and explanation provided.

Download free synopsis (PDF)

Enter your name and WhatsApp number — the synopsis PDF downloads immediately. We may send occasional project updates on WhatsApp; no spam.

Get a quotation