My home fibre drops. Not constantly — but regularly enough that I’ve developed a habit of opening the router admin page when Netflix stalls, just to confirm what I already suspect.
The TP-Link ER605 I use is a decent small-business router: dual WAN, PPPoE on WAN1 for fibre, DHCP on WAN2 for a mobile backup. When the fibre goes down the router fails over silently. The backup connection works. Everything sort of continues — browsing is slower, calls drop, but nothing catastrophically fails.
The problem is I don’t know it happened until much later, and I can’t easily tell how long it was down for. The only real evidence is a log line buried in the router’s syslog:
2 2026-02-23 12:35:14 PPPoE Client WARNING [7C-F1-7E-74-E5-52]: PPPoE <account>@isp.co failed to connect to the server because sending PADI times out. I wanted to fix this. I wanted an email the moment the fibre dropped, hourly reminders while it was still down, and a “connection restored” email with total downtime included. Could I write a script that polled the router?
This is the story of using Claude Code to figure out how — starting from nothing and ending, 35 minutes later, with working code.
...