https://github.com/alaudet/raspi-sump
A sump pump monitoring system using Python and Raspberry Pi
https://github.com/alaudet/raspi-sump
monitoring pump python raspberry-pi sensor water-level
Last synced: 2 months ago
JSON representation
A sump pump monitoring system using Python and Raspberry Pi
- Host: GitHub
- URL: https://github.com/alaudet/raspi-sump
- Owner: alaudet
- License: other
- Created: 2014-06-04T16:05:51.000Z (almost 12 years ago)
- Default Branch: main
- Last Pushed: 2026-03-26T18:22:08.000Z (2 months ago)
- Last Synced: 2026-03-26T19:14:27.658Z (2 months ago)
- Topics: monitoring, pump, python, raspberry-pi, sensor, water-level
- Language: Python
- Homepage: https://www.linuxnorth.org/raspisumpv2/
- Size: 3.16 MB
- Stars: 94
- Watchers: 19
- Forks: 39
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: changelog
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# About
[Raspi-Sump V2.0](https://www.linuxnorth.org/raspisumpv2) is a sump pit water level monitoring system for the Raspberry Pi. It uses an ultrasonic sensor to continuously measure water depth, logs all readings to a local SQLite database, sends email (email to SMS recommended) or Mastodon alerts if the water reaches a critical level, and provides a built-in web interface for monitoring and administration.

---
## Documentation
[Raspi-Sump User and Install Manual](https://raspisumpdocs.linuxnorth.org)
## Features
- Continuous water level monitoring at configurable intervals
- Email (email to sms recommended) and/or [Mastodon](https://joinmastodon.org/) alerts when water reaches a critical level
- Heartbeat notifications to confirm the system is running
- Secure HTTPS web interface (self-signed certificate, nginx + Flask)
- Interactive charts with dark mode support
- Historical readings with single-day, multi-day, and custom date range views
- Admin panel: service control, configuration editor, backup/export, CSV import, support tools
- Installed as a standard Debian package — no virtual environment required
- systemd services with automatic startup
---
## Supported Hardware
- Raspberry Pi 2, 3, 4, and 5
- Ultrasonic sensors: HC-SR04, JSN-SR04T 2.0 (waterproof). JSN-SR04T 3.0 not recommended.
---
## Supported OS
| OS | Architecture |
|---|---|
| Raspberry Pi OS 13 (Trixie) | 32-bit and 64-bit |
| Raspberry Pi OS 12 (Bookworm) | 32-bit and 64-bit |
Raspi-Sump follows the [Debian release schedule](https://wiki.debian.org/DebianReleases). Older OS versions are not supported.
---
## What's New in Version 2.0
Version 2.0 is a complete rewrite:
- Installed as a `.deb` package via apt — no virtual environment, no manual dependency management
- SQLite database replaces per-day CSV files
- Full HTTPS web interface with dark mode, interactive charts (uPlot), and a mobile-friendly layout
- Admin panel with service control, config editor, backup/restore, CSV import/export, and support tools
- Optional persistent admin login with 30-day session cookie
- Mastodon DM alerts as an alternative or complement to email
- FHS-compliant paths (`/etc/raspi-sump/`, `/var/log/raspi-sump/`, `/var/lib/raspi-sump/`)
- systemd services for both the monitor and web interface
See the [changelog](https://github.com/alaudet/raspi-sump/blob/main/debian/changelog) for full details.
---
## Legacy 1.11.1 Version
V1.11.1 is the latest and last version 1 release. Only bug fixes will be applied going forward. Support for v1.11.1 will cease with the debian release cycle and drop of support for Debian 11 - Bullseye on **August 31, 2026**
The github source code is tagged **v1.11.1** at the following url;
https://github.com/alaudet/raspi-sump/tree/legacyV1
## Community
- **Discord** — discuss and get support from other users. Email [alaudet@linuxnorth.org](mailto:alaudet@linuxnorth.org) for an invite link.
- **Issue tracker** — [GitHub Issues](https://github.com/alaudet/raspi-sump/issues)
---
## Disclaimer
Raspi-Sump is a passive monitoring tool. It does not control your pump and cannot prevent flooding. There is no warranty. See the license for details.
Best practices:
- Install a backup pump that triggers at a slightly higher water level than your primary pump
- Connect the backup pump to a separate dedicated electrical breaker
- Have an alternate power source (generator or battery backup) for extended outages during spring thaw or severe weather
- If building a new home, consider lot grading that allows gravity drainage — use a pump and Raspi-Sump as a backup layer
---
## License
Version 2.0 is released under the [Apache 2.0 License](https://github.com/alaudet/raspi-sump/blob/main/LICENSE).
---
## Contributing
Please read the [Contributing Guidelines](https://github.com/alaudet/raspi-sump/blob/main/CONTRIBUTING.md) before submitting a pull request.
---
## Donate
[Your support is appreciated](https://www.paypal.com/donate/?hosted_button_id=7DLCUXLC5TQSA)