sentinel2-data-alerts
Monitor Copernicus Data Space for new satellite imagery over your sites of interest and receive instant Slack alerts with direct links to the Copernicus Browser.
Supported Sensors
| Sensor | Collection | Type |
|---|---|---|
| Sentinel-2 | SENTINEL-2 L1C |
Optical (SWIR false-colour) |
| Sentinel-1 | SENTINEL-1 GRD |
SAR (VV/VH polarisation) |
| Landsat-8 | LANDSAT-8 L1 |
Optical (SWIR) |
| Landsat-9 | LANDSAT-9 L1 |
Optical (SWIR) |
Installation
pip install sentinel2-data-alerts
Or install from source:
git clone https://github.com/your-org/sentinel2-data-alerts.git
cd sentinel2-data-alerts
pip install .
To include next-overpass predictions in Slack alerts (powered by satpass):
pip install "sentinel2-data-alerts[predict]"
Configuration
Create a .env file in the directory where you'll run the tool (or copy .env.example):
cp .env.example .env
Then fill in your credentials:
# Copernicus Data Space credentials
# Register at https://dataspace.copernicus.eu/
CDSE_USERNAME=your-email@example.com
CDSE_PASSWORD=your-password
# Default Slack webhook URL for notifications
SLACK_WEBHOOK_URL=https://hooks.slack.com/triggers/YOUR/WEBHOOK/URL
# Polling interval in seconds (default: 3600)
POLL_INTERVAL_SECONDS=300
# How many hours back to query for new products (default: 24)
QUERY_HOURS=12
# Path to DuckDB database (default: ./sentinel2_reports.duckdb)
# DB_PATH=./sentinel2_reports.duckdb
Usage
Add monitoring sites
# Basic — uses the default Slack webhook
sentinel2-alerts addsite "Huelva Refinery" 37.18 -6.88
# With a custom webhook for this site
sentinel2-alerts addsite "Rotterdam Port" 51.95 4.13 --webhook https://hooks.slack.com/triggers/YOUR/OTHER/WEBHOOK
Manage sites
# List all sites and their status
sentinel2-alerts listsites
# Remove a site
sentinel2-alerts removesite "Huelva Refinery"
Per-site webhook management
Each site can optionally have its own Slack webhook URL. If not set, the default SLACK_WEBHOOK_URL from your .env is used.
# Set a custom webhook for an existing site
sentinel2-alerts setwebhook "Rotterdam Port" https://hooks.slack.com/triggers/YOUR/WEBHOOK
# Remove the custom webhook (revert to default)
sentinel2-alerts removewebhook "Rotterdam Port"
Start polling
# Start the monitoring loop (polls every POLL_INTERVAL_SECONDS)
sentinel2-alerts poll
# Or simply (poll is the default command):
sentinel2-alerts
The poller will:
- Authenticate with Copernicus Data Space
- Query for new products across all four sensors
- Check if any products intersect your monitored sites
- Send a Slack alert for each new product with:
- Product name and acquisition date
- A shortened link to view in Copernicus Browser
- A quicklook thumbnail (when available)
- Next overpass forecast for the same sensor at that location (requires
[predict]extras)
- Track reported products in a local DuckDB database to avoid duplicate alerts
Send a test notification
sentinel2-alerts test
Use a custom database path
# Via CLI flag
sentinel2-alerts --db /path/to/my.duckdb listsites
# Or via environment variable
DB_PATH=/path/to/my.duckdb sentinel2-alerts poll
Running with python -m
If you prefer not to use the CLI entry point:
python -m sentinel2_data_alerts poll
python -m sentinel2_data_alerts addsite "My Site" 51.5 -0.1
Overpass Prediction (Optional)
When installed with pip install "sentinel2-data-alerts[predict]", each Slack alert automatically includes a forecast of the next satellite overpass for that sensor at the alerted site's location.
This is powered by satpass, which sources acquisition plans from ESA (Sentinel-1/2 KML plans) and USGS (Landsat cycle data). Predictions are cached locally and refreshed every 12 hours.
You can also use the overpass module directly:
from sentinel2_data_alerts.overpass import get_next_overpass, format_overpass_line
result = get_next_overpass(lat=51.5, lon=-0.1, collection="SENTINEL-2")
# {'satellite': 'sentinel2', 'platform': 'S2A', 'date': datetime(...), 'orbit': 94}
print(format_overpass_line(result))
# :crystal_ball: Next overpass: *2026-07-23 10:56 UTC* (S2A) orbit 94
Supported collections: SENTINEL-2, SENTINEL-1, LANDSAT-8, LANDSAT-9.
Development
git clone https://github.com/your-org/sentinel2-data-alerts.git
cd sentinel2-data-alerts
pip install -e ".[predict]"
Metadata
Release files for sentinel2-data-alerts 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| sentinel2_data_alerts-0.2.0.tar.gz | 11.6 kB | Without provenance | Details for sentinel2_data_alerts-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sentinel2_data_alerts-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for sentinel2_data_alerts-0.2.0-py3-none-any.whl |
Total release size: 25.2 kB
Release files / sentinel2_data_alerts-0.2.0.tar.gz
| Download URL | sentinel2_data_alerts-0.2.0.tar.gz |
|---|---|
| Size | 11.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
db11442c341b34530f9de45fd060a7cce30f94d7c820c073ce0e0d5fbf01eca8
|
|
BLAKE2b-256 checksum How to use checksums |
dd5cd52baa0cd833ff54a88816f3bd3971501bfaab2bf0d5a06f332f57c96ef7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.27 {"installer":{"name":"uv","version":"0.9.27","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / sentinel2_data_alerts-0.2.0-py3-none-any.whl
| Download URL | sentinel2_data_alerts-0.2.0-py3-none-any.whl |
|---|---|
| Size | 13.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f8b62058c806b5f253f78a269a91d73f8bc1c9962a4e3d0c970ecc7bf1d27b58
|
|
BLAKE2b-256 checksum How to use checksums |
f9b8c3fe364891bc881e486cfd7f5bb9a80b929e53fee704932d0c31cb169e55
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.27 {"installer":{"name":"uv","version":"0.9.27","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for sentinel2-data-alerts 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.