GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - mjohenneken/bonn-termin-watcher

BranchesTags
Open more actions menu

Latest commit

 

History

1 Commit
1 Commit

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
data
data
 
 
tests
tests
 
 
watcher
watcher
 
 
.dockerignore
.dockerignore
 
 
.env.example
.env.example
 
 
.gitignore
.gitignore
 
 
Dockerfile
Dockerfile
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
docker-compose.yml
docker-compose.yml
 
 
requirements.txt
requirements.txt
 
 

Repository files navigation

Bonn Termin Watcher

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.

Modes

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.

Responsible use

  • 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=notify while you only want availability alerts. Enable live only after reviewing the target period and your contact details.
  • Do not use test-book against 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.

Requirements

  • Docker and Docker Compose
  • A Telegram bot token and chat ID for notifications

Quick start

cp .env.example .env
# Edit .env with your Telegram and booking details.
docker compose up -d --build

restart: on-failure is intentional: after a successful booking, the container exits and must not start a second booking attempt.

Configuration

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.

Date bounds

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.

Privacy and local state

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.

Limitations

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.

Development

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.

License

Licensed under GPL-3.0-only.

About

No description, website, or topics provided.

Resources

Readme
GPL-3.0 license
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.