Skip to content

Fresh Install

Prerequisites

  • Raspberry Pi B or greater running Raspberry Pi OS Bookworm (v12) or Trixie (v13)
  • A compatible ultrasonic distance sensor (see below)
  • A voltage divider cable to reduce the echo pin signal from 5V to 3.3V
  • Internet access on the Pi for the initial package install

Supported Sensors

Raspi-Sump works with the HC-SR04 and compatible sensors, including the JSN-SR04T v2.0 waterproof variant which is recommended for sump pit use.

JSN-SR04T v3.0 — Do not use

Version 3.0 of the JSN-SR04T uses a different communication protocol and is not compatible with Raspi-Sump. Always verify you are purchasing the v2.0 variant before ordering.

Voltage Divider Requirement

The HC-SR04 and JSN-SR04T sensors operate at 5V and return a 5V signal on the echo pin. The Raspberry Pi GPIO pins are 3.3V tolerant only — connecting a 5V echo signal directly will damage your Pi.

A voltage divider on the echo pin is required to reduce the signal to a safe 3.3V level. A simple two-resistor divider works well:

  • R1: 1kΩ (between sensor echo and GPIO pin)
  • R2: 2kΩ (between GPIO pin and ground)

This divides the 5V echo signal to approximately 3.3V before it reaches the GPIO pin. Pre-made voltage divider cables are available from many electronics suppliers and are the simplest option for new users.

The trig pin (Pi → sensor) does not require a divider — 3.3V is sufficient to trigger the sensor.


Easy one line install

Web server conflict

Raspi-Sump installs and configures the nginx web server. Make sure no existing web servers are listening on port 80 or 443 before running this command.

If you are running an earlier version of Raspi-Sump, follow the Full Uninstall - Earlier 1.x Versions guidelines before installing this version.

For ease of install, you can install Raspi-Sump with the following command;

curl -fsSL https://www.linuxnorth.org/raspisumpv2/install/install.sh | sudo sh

It is always a good idea to verify the contents of the file before invoking sudo.

What this file does;

  • checks your OS version
  • checks for the existence of curl or wget and gpg
  • removes the unstable channel apt sources if they exist
  • adds stable channel apt sources and linuxnorth apt repo public key
  • invokes apt-get update and apt-get install raspisump

Going forward, raspisump will be upgraded with your regular system upgrades.

For those wanting a more hands on approach, see the following section to perform the install manually.

Manually Add the Linuxnorth APT Repository

Raspi-Sump is distributed via the Linuxnorth APT repository.

1. Import the signing key

curl -fsSL https://apt.linuxnorth.org/public_key.asc \
  | sudo gpg --dearmor -o /usr/share/keyrings/linuxnorth-archive-keyring.gpg

Info

GPG Signed install script is available at Linuxnorth.org.

2. Add the repository

echo "deb [signed-by=/usr/share/keyrings/linuxnorth-archive-keyring.gpg] \
  https://apt.linuxnorth.org trixie main" \
  | sudo tee /etc/apt/sources.list.d/linuxnorth.list

3. Install

sudo apt update && sudo apt install raspisump

The installer creates the raspisump system user, sets up directories and permissions, generates a self-signed TLS certificate, and installs the systemd services.

Log out and back in after install

The installer adds your user account to the raspisump group so you can run manual commands without sudo. This group membership does not take effect until you log out and log back in to your Pi session.


Configure nginx

The raspisump package automatically enables its nginx configuration and removes the default nginx site during install. No manual nginx configuration is required.

Existing web server conflict

If apache2 or lighttpd is already running on the Pi, the installer will skip enabling the nginx site to avoid a port conflict. You will see a warning message at the end of the install. Resolve the conflict, then enable the site manually with the commands below:

sudo ln -s /etc/nginx/sites-available/raspi-sump /etc/nginx/sites-enabled/raspi-sump
sudo systemctl reload nginx

First-Run Setup

After install, the rsumpweb service starts automatically. Open a browser and navigate to:

https://<your-pi-ip>

Self-signed certificate

Your browser will show a security warning because the TLS certificate is self-signed. This is expected on a LAN appliance. Accept the exception to proceed.

The first-run setup wizard will appear. It guides you through:

  • Setting your admin password
  • Configuring pit measurements (depth, critical level, units)
  • Choosing your alert type (email or Mastodon)
  • Setting the GPIO pins for your sensor
  • Setting the reading interval and temperature

On completion, the wizard writes the configuration files and starts the raspisump monitoring service automatically.


Verify the Install

The easiest way to verify both services are running is via the web interface: gear icon → System Status. Both raspisump and rsumpweb should show as active.

Alternatively, from the command line:

sudo systemctl status raspisump
sudo systemctl status rsumpweb

The web interface home page will begin showing readings within one reading interval.


Log Out of the Setup Wizard Session

After setup is complete, log out of the admin session via the gear icon in the top navigation bar.


Reporting Issues

Please report any problems in the issue tracker.