Skip to main content

A a simple personalised covid information dashboard.

Project description

Coronavirus dashboard application README

A simple dashboard to help being kept up to date with the local and national infection rates and news on government guidelines. The user can schedule repeated or single updates to news and/or covid data displayed. The user can also cancel updates these updates and remove news articles or click on a link to read more.

Installation Notes:

Python version 3.9.7 was used for development.

Please make sure the following modules are installed along with python3. And that your own API key is set in the config file.

  • json
  • logging
  • time
  • datetime
  • flask
  • uk_covid19
  • csv
  • sched
  • requests
  • pytest

Getting started tutorial:

Ensure the python code is running on your machine. Navigate to http://127.0.0.1:5000/index on a web browser and the interface should be displayed.

The dashboard is split into three columns. The left column is where all scheduled updates are displayed. The middle column displays local and national coronavirus statistics and at the bottom the form to submit new updates. The form will only allow an update to be scheduled if a label is entered and will only execute if a time is specified. The right column displays news articles containing covid keywords in the headline. There is also a hyper link to click to carry on reading the full article. The 'x' in the top right-hand corner will close the news article and it will not be re-displayed. Clicking this 'x' in the scheduled updates will consequently cancel that update.

Testing – How to test the code:

There is a log file which is automatically generated when the code is run. The log file will contain any errors and events that happend when the application is running. There is a 'tests' folder which contains three test files, one for each module. To run these tests, make sure pytest is installed then using comand prompt in the directory python package is type 'python -m pytest' and this will run the tests.

Developer notes:

There are three modules: application.py, covid_data_handler, covid_news_handling. Covid data and news articles are stored in two json files 'covid_data' and 'news_data'. If these json files are deleted or do not exist simply run update_covid() in the covid_data_handler module and update_news() in the covid_news_handling module to avoid errors trying to read from a file that doesn't exist. In the config file the national and local locations, language can also be adjusted. The html for the interface is stored in the templates folder and in the static folder the image and favicon are stored in the images and favicons folder respectively.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Cov19DashJacobBeeson-0.0.1.tar.gz (7.5 kB view hashes)

Uploaded Source

Built Distribution

Cov19DashJacobBeeson-0.0.1-py3-none-any.whl (9.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page