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.
- Copy the example environment file:
cp .env.example .env
- Fill in the
.envfile with your credentials.
Run the following command to build the Docker image:
docker build --rm -t mediczuwacz .For a pediatrician (Pediatra) in Warsaw:
docker run --rm --env-file=.env mediczuwacz find-appointment -r 204 -s 132 -f "2024-12-11"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"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"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.shSet up a CRON job to check appointments every 10 minutes:
- Edit the crontab:
crontab -e
- Add the following line:
*/10 * * * * /home/projects/mediczuwacz/run_mediczuwacz.sh >> /home/projects/mediczuwacz/cron_log.txt 2>&1
Special thanks to the following projects for their inspiration: