- Role
- Developer and operator
- Period
- Sep 2026 to now
- Status
- Daily, on a Windows task host
- Stack
- Python, Playwright, SQL Server, Parquet, QGIS, PowerPoint
MR data, collected overnight
Measurement reports show where coverage is weak. Getting them meant clicking through Huawei's Discovery web every day. Now a scheduled job does it overnight.
Why it exists
The Discovery web is shared by about 287 users. Each day someone had to create the exports, wait, download them, run a desktop parser and paste the results into an Excel calculator and a slide deck.
What I built
The nightly run
At 03:05 it creates yesterday's 36 exports, downloads them, parses them and loads SQL Server. A midnight catch-up redoes any day from two to five days back that did not finish.
The midday check
From 12:00 it checks today's 5G dominant cells and keeps trying until 15:00, through VPN drops and incomplete data.
The calculator, without Excel
The bins, distributions and deltas of the team's Excel calculator, rebuilt in Python and checked against it.
MR Grid Plot
A QGIS plugin that draws the grid and Voronoi coverage and builds the cluster deck, shared with seven engineers since 28 September.
What it adds up to
- 36
- exports created and loaded every night
- 5,899,802
- grid rows loaded for one day (29 Sep 2026)
- 100,097
- macro sectors with a computed inter-site distance
- 287
- users, roughly, share the Discovery web the job works on
Engineering notes
- Paced requests. The web is a shared production system, so the job paces itself and re-sends an export that has been stuck for 45 minutes.
- It waits for memory. Another program on the same host once took 38.6 of its 50.9 GB. The run now checks free memory and pauses instead of crashing.
- A driver bug, worked around. Bulk inserts failed on numeric columns, so rows go to SQL Server in batches of 10,000 as JSON and are unpacked on the server.
- Voronoi cells at the coast. Cells near the sea ran out over the water; the plugin closes them along the coast using the grid samples.
exports 36/36
process 10.6 min
load 13.2 min
upload 7.1 min
grid rows 4,193,467
site rows 45,776
