Skip to main content

A Covid Dashboard to show current news and data.

Project description

Covid-1 Dashboard Tom Sturgeon

Table of contents:

Introduction

Creates a locally hosted dashboard which displays information about Covid-19
It dashboard displays:

  • The local 7 day infection rate
  • The national 7 day infection rate
  • The national hospital cases
  • The national death count
  • News articles collected from the Newsapi.org/ The dashboard allows for updates to be scheduled to refresh the data and the news articles

Prerequisites

To use the dashboard you need to have these modules:

Installing

pip install Covid-Dashboard-pkg-tsturgeon

Config File

In the config file there are many customisable fields to set and on necessary field
The necessary is the API key for the news api, to get a key register for one at newsapi.org and then copy the key into the config file
The customisable key can change:

  • The title
  • The locations
  • The location type
  • The images
  • The news search terms
  • The logging file
  • The Static data file

Running

Set the config file to what you desire.
Navigate to where the package has been installed and run the module in the terminal
Open a web browser and heat to 127.0.0.1:/5000/index (The link will also be in the logging file)
From this page you can:\

  • Schedule updates using the form in the lower middle of the page
  • Remove updates and news articles
  • Read the current statistics

Testing

To test the modules it uses Pytest.
To run the test navigate to the package in the terminal and run pytest

Documentation

For the documentation go to https://github.com/Sturgeon2962/coursework/
The documentation is located in coursework/docs/build/html/index.html
You can download it the launch it in a web browser to view the documentation
This goes into greater deatial about how to configure the code and run it

Details

Author: Tom Sturgeon
License: MIT License Link to source files: https://github.com/Sturgeon2962/coursework/ \

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-pkg-tsturgeon-0.0.2.tar.gz (9.7 kB view hashes)

Uploaded Source

Built Distribution

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