The video turns a toilet-tank float switch into a Raspberry Pi monitor that logs flushes and sends Slack alerts. It walks through the switch’s metal strips, glass tube and magnet, GPIO wiring, the Pi’s pull-up resistor, and a Python script that checks the pin every tenth of a second. The project is relevant as a practical example of logging events around unexplained network trouble, not proof of its cause.
- According to the description, the float switch consists of two metal strips, a glass tube and a magnet.
- The switch connects to the Raspberry Pi’s GPIO pins; the built-in pull-up resistor is intended to prevent electrical noise from falsely registering a flush.
- A Python script checks the pin every tenth of a second, logs flushes to a JSON file and triggers Slack alerts.
The original source walks through the build, wiring and Python script, and explains how flushes are detected. One important limitation remains: logging provides observations about the network issue, but it does not prove that a flush caused it.