Skip to main content

A covid dashboard to display covid data for the users local area.

Project description

Covid Dashboard

Introduction

This package generates a covid dashboard that displays covid data for the user according to the users requirements as entered in the config file.

Prerequisites

In order for the covid_dashboard to work, you must ensure that none of the files within the covid_dashboard folder are deleted. There are also some requirements for the modules and languages that you must have installed on your machine.

They are outlined below:

  • sched
  • time
  • json
  • uk_covid19
  • requests
  • flask
  • logging
  • python 3

Installation Instructions:

Simply install the package and you are good to go

Configuration Instructions:

There is a file called covid_dashboard_config.json which contains the configuration data for the covid dashboard. From there you will be able to change the locations for which the dashboard displays data and the search terms and language for the search results that the dashboard should display. You should also change the value api_key to whatever your covid_api key is.

Operation Instructions:

How to open:

      You must first ensure that the code is running and must then open a browser and navigate to http://127.0.0.1:5000/index

The dashboard is split into three sections:

  1. Middle Section:{"title":update_to_create["update_name"], "content":content, "repeat":(update_to_create["update_repeat"]), "covid_update":(update_to_create["covid_update"]), "news_update":(update_to_create["news_update"])} The middle section contains the covid information collected from the api about the area according to the config file. Below it is the updates area where you can create a new update. From here you will be able to specify whether you want the update to be a covid or news udpate (note can be both but not neither). You must specify a time for the update to happen and whether or not the update should repeat every day at the same time. The updates name must be unique and not be in the updates currently scheduled. The update name should also not contain any spaces (recomendation:use underscores as a replacement).

  2. Left Section: The left section contains the updates that you have created. Each box contains the update information. You are able to cancel an update simply by clicking the close button at the top right of the box containing the update you wish to close.

  3. Right Section: The right section contains the news articles that contain any of the keywords as specified in the config file. By clicking the hyperlick at the bottom of each box, you will be able to open the relevant news article. Similarly to the updates, you will be able to close news articles to remove them from your dashboard so as to load new news articles. You do this by clicking the close button at the top right of the box containing the news article to be remove.

Testing:

The code will automatically run a series of tests before executing the code.

File Manifest:

  • .pytest_cache - a folder containing data from the pytest's cache plugin
  • Covid_Dashboard_Source
    • __pycache__ - contains docstrings
    • static with a sub folder images
      • covid.png
      • favicon.ico
    • templates
      • index.html
    • covid_dashboard_displayer.py
    • covid_data_handler.py
    • covid_news_handling.py
    • nation_2021-10-28.csv
    • test_covid_dashboard_displayer.py
    • test_covid_data_handler.py
    • test_covid_news_handling.py
  • docs
    • build
      • doctrees - contains the doctrees used in the generation of the html pages
      • html - contains the html files for the documentation
    • source - contains all the rst files to make html pages
    • make.bat
    • Makefile
  • covid_dashboard_config.json
  • covid_dashboard.log
  • LICENSE.txt
  • README.md<nolink>
  • setup.py<nolink>

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

Covid_Dashboard_Package_cw00d-1.0.0.tar.gz (3.1 kB view hashes)

Uploaded source

Built Distribution

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page