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
  • setup.py

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 details)

Uploaded Source

Built Distribution

File details

Details for the file Covid_Dashboard_Package_cw00d-1.0.0.tar.gz.

File metadata

  • Download URL: Covid_Dashboard_Package_cw00d-1.0.0.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.0 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.0

File hashes

Hashes for Covid_Dashboard_Package_cw00d-1.0.0.tar.gz
Algorithm Hash digest
SHA256 7a7e0c7b921942362c075ab63d69c6a39845997dda934e8b6369c69fc5631533
MD5 aa80493b2dec680e6d2ad89e007f3c8d
BLAKE2b-256 4862822730ee732c86be782835ef9ebce4aabbf753bf047ba3766e6e16aaff78

See more details on using hashes here.

File details

Details for the file Covid_Dashboard_Package_cw00d-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: Covid_Dashboard_Package_cw00d-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.0 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.0

File hashes

Hashes for Covid_Dashboard_Package_cw00d-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4cdc9b89f261140bd01c337d0e1131b68c3b0ea3e373496cd5d2d0db584805aa
MD5 1f24804c7bcf353486a5bc78b911670d
BLAKE2b-256 4ad3c3d7a065de62b897d6e0e7e27812e5cff1c00bd019c716cbae390eec3a7c

See more details on using hashes here.

Supported by

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