VirtualFox0 / VaccinationAppointmentChecker

Check available vaccination appointments for impfterminservice.de

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

VaccinationAppointmentChecker

  • This script only checks available vaccination appointments for https://impfterminservice.de and sends a telegram message if appointments are available.
  • You have to book the appointment manually.
  • Mediation code needed.

How to get mediation code?

  • Get mediation code with multiple attempts and waiting time from https://impfterminservice.de (mediation codes are only available if free vaccination events are available) or
  • Intercept and modify https network traffic for your vaccination centre urls to get code directly:
    • GET https://[vaccinationCentreGroup e.g. 001-iz].impfterminservice.de/rest/suche/termincheck: change response from to {"termineVorhanden":true,"vorhandeneLeistungsmerkmale":["L920", "L921"]} and
    • POST https://[vaccinationCentreGroup e.g. 001-iz].impfterminservice.de/rest/suche/termincheck/alter: change response to {"einzeltermineVorhanden": false, "terminpaareVorhanden": true} and set HTTP status code 200

Leistungsmerkmal

https://001-iz.impfterminservice.de/assets/static/its/vaccination-list.json

  • L920 BioNTech
  • L921 Moderna
  • L922 AstraZeneca
  • L923 Johnson&Johnson

Installation

  • Install node
  • Checkout and run npm install

Configuration

  • copy and rename config.example.json to config.json
  • fill accessCodeObjects with your data
  • if you want to set a time range for available events, use event_not_before and event_not_after (ignored if not set or invalid)
  • Create telegram bot with Botfather (/newbot)
  • save token as telegram_token to config.json
  • find out your chat id with IDBot (/getid)
  • save your telegram chat id to telegram_chatIds to config.json (or use a telegram group and save chat id to telegram_group_chatIds)
  • send a test message from your telegram account to the newly created bot
  • script will send you a test message after every start

Usage of Telegram group

  • Create Telegram group
  • Add your bot to group
  • Adjust the following settings for your bot with BotFather
    • /setprivacy - disabled
    • /setjoingroups - enabled
  • Get the group chat id (e.g. from the JSON of https://api.telegram.org/bot/getUpdates)

Run

npm start

Impfterminservice Links

About

Check available vaccination appointments for impfterminservice.de


Languages

Language:TypeScript 100.0%