Skip to content

Automates the daily COVID-19 self-assessment submission required by CMU

Notifications You must be signed in to change notification settings

pranshupant/automate_daily_assessment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Automate Daily Self-Assessment

Automates the daily COVID-19 self-assessment submission required by my University

After getting repeatedly flagged for not submitting daily self-assessment of my health (for COVID), I decided to automate the daily form submission process.

I implemented the following:

  • Created a cronjob which submits the form daily at 8AM by running a shell script.

  • Automated the form completion and submission using Selenium.

  • Wrote a script for sending a notification to my Slack using webhooks after successful submission of form.

  • Wrote a macro on the MacroDroid Android App to automatically accept the MFA prompts.

Notes:

  • Add your authentication credentials to auth.py.
  • Modify run.sh to use your local python/conda environment.
  • Create a webdrivers/ directory with binaries for selenium drivers that you can get using the following command:
curl https://chromedriver.storage.googleapis.com/87.0.4280.20/chromedriver_linux64.zip -o chromedriver_linux64.zip

To Run

Add the contents of crontab.txt to your crontab.

crontab -e

0 8 * * * cd /---Directory-of-choice-here---/automate_daily_assessment/ && DISPLAY=:0 ./run.sh > /dev/null 2>&1

About

Automates the daily COVID-19 self-assessment submission required by CMU

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published