Need to re-register a car in Bonn but cannot find an appointment soon enough? Bonn Termin Watcher watches the City of Bonn's Kfz-Umschreibung service and alerts you when a matching appointment becomes available.
It is a free, self-hosted alternative for people who would otherwise consider paid appointment-watch services. It is designed for anyone who can run Docker themselves—or has a technically minded friend who can help.
Unofficial personal-use watcher for Kfz-Umschreibung appointments in Bonn's online appointment portal. It can send a Telegram notification when a matching appointment appears or, only when explicitly enabled, submit one booking.
Warning
This project is not affiliated with the City of Bonn or the appointment platform. Use it only for your own appointment, run only one instance, and keep its traffic low. Do not bypass CAPTCHAs, access controls, or other technical restrictions. The portal can change or become unavailable at any time.
| Mode | Behavior |
|---|---|
notify |
Sends a Telegram notification for the earliest matching appointment; you book it yourself. This is the default. |
dry-run |
Sends a notification showing which appointment it would book; it does not submit a booking. |
live |
Submits the earliest matching appointment, notifies you, then exits. |
test-book |
Submits the first available future appointment to test the full booking flow, then exits. This creates a real appointment. |
All modes consider weekdays from 07:00 to 18:00 across Bonn's four DLZ locations: Dienstleistungszentrum, Hardtberg, Beuel, and Bad Godesberg. The implementation is intentionally tailored to this service and appointment type.
- Use the watcher only for an appointment you are entitled to book yourself.
- Run a single instance. The application enforces a minimum five-minute poll interval and adds a small random delay between polls.
- Leave
MODE=notifywhile you only want availability alerts. Enableliveonly after reviewing the target period and your contact details. - Do not use
test-bookagainst the live portal unless you intend to create and promptly cancel a real appointment. - Confirm every successful booking in the official portal and cancel any appointment you no longer need.
- Docker and Docker Compose
- A Telegram bot token and chat ID for notifications
cp .env.example .env
# Edit .env with your Telegram and booking details.
docker compose up -d --buildrestart: on-failure is intentional: after a successful booking, the
container exits and must not start a second booking attempt.
Copy .env.example to .env. Never commit .env; it contains your Telegram
credentials and, in booking modes, personal contact information.
For local runs, the application loads .env when present; values already set
in the environment take precedence. Docker Compose supplies the same file via
its env_file configuration.
| Variable | Default | Description |
|---|---|---|
MODE |
notify |
notify, dry-run, live, or test-book |
TARGET_YEAR |
current local year | Appointment year |
TARGET_MONTH |
current local month | Appointment month (1–12) |
POLL_INTERVAL_SECONDS |
300 |
Base interval between checks; values below 300 are rejected |
POLL_JITTER_SECONDS |
30 |
Random extra delay between checks (0–60) |
POLL_START_HOUR / POLL_END_HOUR |
6 / 20 |
Local checking window, in TZ |
TZ |
Europe/Berlin |
IANA timezone |
READY_FROM_DATE |
empty | Ignore appointments before this date (YYYY-MM-DD) |
BOOK_BEFORE_DATE |
empty | Ignore appointments on or after this date (YYYY-MM-DD) |
MIN_DAYS_AHEAD |
0 |
In live mode, notify instead of auto-booking nearer appointments |
STATE_FILE |
/data/booked.json |
Local marker that prevents a second booking after a successful one |
live and test-book also require BOOKING_FIRST_NAME,
BOOKING_LAST_NAME, and BOOKING_EMAIL. The target period defaults to the
current month in the configured timezone, so set TARGET_YEAR and
TARGET_MONTH explicitly when watching a different period.
For example:
TARGET_YEAR=2026 TARGET_MONTH=8 READY_FROM_DATE=2026-08-10 BOOK_BEFORE_DATE=2026-08-31 MIN_DAYS_AHEAD=7
This considers only weekday daytime appointments from 10 to 30 August 2026.
In live mode, appointments fewer than seven days away generate a Telegram
notification but are not booked automatically.
The booking marker is stored in the local data/ volume and is excluded from
Git. It contains appointment metadata, so do not share it. Booking links are
sent to your Telegram chat when available but are not persisted in the marker;
treat cancellation links as private and do not forward them.
This is an independent implementation that relies on the portal's current behavior. It provides no guarantee that an appointment remains available, that a booking succeeds, or that the portal will keep the same interface. Notifications are deduplicated only while the process is running, so a restart can notify you about the same available appointment again.
Run the baseline test suite with:
python -m unittest discover -s tests -v
Continuous integration installs the pinned dependencies, compiles the watcher, and runs these tests on pushes and pull requests.
Licensed under GPL-3.0-only.