Some useful scripts simplifying bureaucracy, especially when living in Munich, Germany.
Small tool to show availability of appointments in different Departments of Munich.
Available departments are:
- Ausländerbehörde (foreign nationals affairs, residence permits, work visas etc.)
- Bürgerbüro (civil affairs, residence registration etc.)
- Führerscheinstelle (driver license and motor vehicles affairs)
Please note the script does not perform appointment booking, it just tells you current status, so you may run it with cron and\or add some custom notifier.
There is a simple Telegram bot at @MunichTerminBot using termin.py
functionality. The bot is written using python-telegram-bot library. Source code is also in this repo, tg_bot.py
.
By default bot runs as webhook configured for Heroku. For local development it's easier to use polling and in order to get it, just set DEBUG = True
in one of first lines of the script.
Bot is hosted on Heroku, runnning in Docker and automatic deploy from master
branch of this repoi is set, no action should be required.
Similar to one of basic manuals.
Pre-requisites:
- Heroku CLI installed.
TG_TOKEN
environment variable is set in Heroku settingsHEROKU_APP_NAME
environment variable is set in Heroku settings.
Commands for manual deploy
heroku login
heroku container:login
heroku container:push --app munich-termin-bot web
heroku container:release --app munich-termin-bot web
Shortly after deploy make sure everything is running
heroku logs --tail --app munich-termin-bot
Edit script content and select what type of appointments you actually need:
appointments = get_termins(DMV, 'FS Umschreibung Ausländischer FS')
# appointments = get_termins(CityHall, 'An- oder Ummeldung - Einzelperson')
# appointments = get_termins(ForeignLabor, 'Niederlassungserlaubnis Blaue Karte EU')
Run the script
python3 termin.py
Output will be printed in the console