PROJECT / 08 FEATURE ARTICLE

Pollen AlertGermany

TYPE Public ServiceSTATUS live

Multilingual pollen forecasts and notifications for Germany.

01 Project overview

A forecast delivered by email

Pollen Alert Germany turns WetterOnline pollen forecasts into readable email alerts for a configurable German city. Berlin is the default when no city is supplied.

The scheduled workflow prepares the forecast in English, German, or Chinese and sends it by email, so recipients can check the daily report without repeatedly opening the forecast page. It presents forecast information; it does not diagnose allergies or provide medical advice.

02 Information flow

From public forecast to inbox

WetterOnline
Python scraper
Four pollen levels
HTML email
SMTP delivery

GitHub Actions schedules the Python job. It retrieves and parses the forecast, normalizes each pollen concentration, then sends the rendered email through the configured SMTP server.

03 Implementation

A small scheduled Python job

The scraper uses requests to retrieve the WetterOnline page and BeautifulSoup to parse its forecast. The target city is configurable through CITY_NAME, with Berlin as the default. Concentrations are mapped to four levels: 0 none, 1 low, 2 medium, and 3 high.

GitHub Actions provides the scheduled run, documented for 07:00 UTC each day once the workflow is enabled. Email settings are supplied through environment variables and GitHub Secrets; SMTP handles delivery, while the generated HTML supports English, German, and Chinese labels.

04 Email report

What the forecast contains

Location and date

The selected city and the forecast date identify the report.

Pollen by type

The report lists pollen types with a normalized concentration from 0 to 3.

Three languages

HTML email templates present the forecast in English, German, or Chinese.

Scheduled delivery

A configured SMTP account sends the report when the GitHub Actions workflow runs.

The report organizes each pollen type into a normalized concentration level from 0 to 3.

05 Email preview

A readable forecast table

Illustrative email structure — not a live forecast.

PollentypEnglish nameConcentration
AmbrosiaRagweedNone (0)
AmpferSorrelNone (0)
BeifußMugwortNone (0)
BirkeBirchNone (0)
BucheBeechNone (0)
ErleAlderLow (1)

A static reconstruction of the sample email pairs German pollen names with English names and normalized concentration labels. Levels range from 0 (none) to 3 (high).