Skip to content

Latest commit

 

History

History
50 lines (38 loc) · 2 KB

README.md

File metadata and controls

50 lines (38 loc) · 2 KB

Migri Appoinment Scheduler

It's usually quite hard to find a time slot for appointment in Migri so I created this script which monitors availability and shows a notification on Mac OS (other OSes not supported at the moment, but PRs are welcome).

It's possible to configure some aspects of required appoinment directly in the script. For example it is possible to configure the number of people and the type of appointment for each as well as Migri office location.

Installation

Create a new virtual environment

python -m venv ~/.local/share/virtualenvs/migri-appoinment-scheduler
. ~/.local/share/virtualenvs/migri-appoinment-scheduler/bin/activate
pip install -r requirements.txt

Usage

Usage: main.py [OPTIONS]

Options:
  --office TEXT                   Migri office  [required]
  --reservation-type [permanent-residence-permit|family-first-and-extended-residence-permit]
                                  Migri reservation type  [required]
  --min-date [%Y-%m-%d|%Y-%m-%dT%H:%M:%S|%Y-%m-%d %H:%M:%S]
                                  Earliest appoinment date  [required]
  --max-date [%Y-%m-%d|%Y-%m-%dT%H:%M:%S|%Y-%m-%d %H:%M:%S]
                                  Latest appoinment date  [required]
  --install-completion [bash|zsh|fish|powershell|pwsh]
                                  Install completion for the specified shell.
  --show-completion [bash|zsh|fish|powershell|pwsh]
                                  Show completion for the specified shell, to
                                  copy it or customize the installation.

  --help                          Show this message and exit.

Example usage:

python main.py --office helsinki 
               --reservation-type permanent-residence-permit 
               --reservation-type permanent-residence-permit 
               --reservation-type family-first-and-extended-residence-permit 
               --min-date 2020-11-15 
               --max-date 2021-03-29

In the example above we specify a reservation type for each person.