Thanks to visit codestin.com
Credit goes to Github.com

Skip to content

Monitor new Medicover appointments, designed to work with the latest authentication system (as of December 2024).

License

Notifications You must be signed in to change notification settings

areqq/MediCzuwacz

 
 

Repository files navigation

MediCzuwacz

Monitor new Medicover appointments with MediCzuwacz, designed to work with the latest authentication system (as of December 2024).

  • Automate appointment monitoring
  • Supports notifications via Gotify and other providers.
  • Easy setup and automation with Docker.

Configuration (One-Time Setup)

  1. Copy the example environment file:
    cp .env.example .env
  2. Fill in the .env file with your credentials.

Usage

Step 1: Build the Docker Image

Run the following command to build the Docker image:

docker build --rm -t mediczuwacz .

Step 2: Run with Parameters

Example 1: Search for an Appointment

For a pediatrician (Pediatra) in Warsaw:

docker run --rm --env-file=.env mediczuwacz find-appointment -r 204 -s 132 -f "2024-12-11"

Example 2: Search and Send Notifications

To search and send notifications via Gotify:

docker run --rm --env-file=.env mediczuwacz find-appointment -r 204 -s 132 -f "2024-12-11" -n gotify -t "Pediatra"

Example 3: Search for an Appointment in particular Clinic (Łukiska - 49284)

To search and send notifications via Gotify:

docker run --rm --env-file=.env mediczuwacz find-appointment -r 204 -s 132 -f "2024-12-11" -c 49284 -n gotify -t "Pediatra"

Automating the Script with CRON

Step 1: Create a Bash Script

Create a script named run_mediczuwacz.sh:

#!/bin/bash
cd /home/projects/
docker run --rm --env-file=.env mediczuwacz find-appointment -r 204 -s 132 -f "2024-12-11" -n gotify -t "Pediatra"

Make the script executable:

chmod +x run_mediczuwacz.sh

Step 2: Configure CRON

Set up a CRON job to check appointments every 10 minutes:

  1. Edit the crontab:
    crontab -e
  2. Add the following line:
    */10 * * * * /home/projects/mediczuwacz/run_mediczuwacz.sh >> /home/projects/mediczuwacz/cron_log.txt 2>&1

Acknowledgements

Special thanks to the following projects for their inspiration:

About

Monitor new Medicover appointments, designed to work with the latest authentication system (as of December 2024).

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 96.5%
  • Dockerfile 3.5%