triton2997 / cowin-slot-notifier

Utility that automatically alerts via email if slots are available on the CoWIN portal. Provides rich filtering by list of pincodes, type of vaccine, dose number, etc
0 stars 0 forks source link

[TASK]: Start working on main module #10

Closed triton2997 closed 3 years ago

triton2997 commented 3 years ago

Story: #8

Date: 08/07/2021

Description:

End to end process (reading configuration file to sending email) is set to repeat every 5 minutes Module reads config file, retrieves slots, and if slots are available, sends email Initial testing ongoing

Further steps:

  1. Add functionality to ensure email is not sent twice for the same label in the one day

Task type: Development

Estimated efforts (person hours): 5

Actual efforts (person hours): 5

triton2997 commented 3 years ago
  1. Set up main module
  2. Imported other modules and required libraries
  3. Added a done set in which IDs of configs will be stored
  4. Once slots for a label are found, its ID is added to the done set
  5. Added a reset time, set to 8 AM IST
  6. As soon as current time crosses 8 AM IST, the done set is reset, i.e., slots will again be checked for that day
  7. Currently, email is sent only if slots are found, not otherwise. No failure email is configured.
  8. Decision on failure email and its frequency pending.