Code Monkey home page Code Monkey logo

vaccination-schedule-notifier's Introduction

Vaccination Schedule Notifier

๐Ÿ“ Purpose

Welkin Mauritius is one of the vaccination centers available across Mauritius. They use Acuity Scheduling for their vaccination appointment booking system.

Unfortunately they do not provide a way of automatically notifying people whenever appointments are available for booking. If you are a busy person and want to know when you can book an appointment, you are probably out of luck. They only way to know is to frequently visit their site.

This is a basic pupeteer script which monitors Welkin Mauritius vaccination scheduling website for specific vaccination appointments available in specific vaccination centers.

โœจ Features

  • Monitor for vaccines at given intervals
  • Detect active vaccination schedules for a specific vaccine
  • Detect active vaccination schedules available in a specific region
  • Send an SMS via Twilio to notify of available vaccines

๐Ÿšจ Requirement

  • A Twilio account to send messages when active schedules are found

๐Ÿ”จ Instructions

  • Rename .env.local to .env and fill in the relevant details
  • Update nameOfVaccine and vaccinationCenterRegion in index.js to specify the vaccine and region you want to monitor

๐Ÿ“ Running this script on a Rapsberry Pi

I wrote this script with the intent of running it on my raspberry pi.

If you intend to do the same, or use it on a system running linux, make sure you have Chromium installed

  • Run sudo apt-get install chromium-browser to install the latest version of Chromium
  • Set raspberryPi = true in index.js;

Doing so will make Puppeteer use Chromium default installation path, which is /usr/bin/chromium-browser

If your Chromium installation is found somewhere else, then you need to specify it

let browser = await puppeteer.launch({
  headless: false,
  devtools: false,
  executablePath: raspberryPi ? '/usr/bin/chromium-browser' : undefined,
  args: ['--no-sandbox', '--incognito']
});

Example of notification

screenshot

Monitoring interval

By default the script runs every 300000 miliseconds (5 minutes)

vaccination-schedule-notifier's People

Contributors

veegishx avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.