Skip to content

Code for tracking active COVID-19 cases in the Riverside Unified School District

License

Notifications You must be signed in to change notification settings

wgrover/RUSD-COVID

Repository files navigation

RUSD-COVID

Code for tracking active COVID-19 cases in the Riverside Unified School District. The resulting plots are available at https://wgrover.github.io/RUSD-COVID. The project currently shows data for the 2023-2024 school year; historical data for the 2022-2023 and 2021-2022 school years are available in the "data" folders.

Prerequisites

To run the code on a Raspberry Pi:

  • selenium via pip3 install selenium
  • chromedriver via sudo apt install chromium-chromedriver
  • numpy via pip3 install numpy
  • matplotlib via pip3 install matplotlib

Usage

python3 scrape.py to scrape the RUSD COVID case dashboard and create a new file in the data directory with today's data (or replace today's file if it already exists).

python3 plot.py to generate plots summarizing all the locally saved data.

make executes a makefile that scrapes the dashboard, generates plots, and pushes the results to the GitHub repository. This is performed automatically every night at 8:00 PM using the crontab line 0 20 * * * cd /home/wgrover/RUSD-COVID && make > debug.log 2>&1 running on a Raspberry Pi 4B sitting on my desk at home.