Skip to main content

A module to create and communicate with a covid 19 flask dashboard

Project description

INTRUCTIONS FOR COVID 19 DASHBOARD ##################################

INTRODUCTION

This program creates a COVID 19 dashboard with up-to-date information of current covid levels and relevant news on the status of the pandemic. The numeric data shown on the dashboard will be the total 7 day cases in your selected area along with a seperate amount for your country, the current hostpital addmissions and the total number of deaths in you country. On the right-hand side of the dashbaord will be a widget containing the latest news that relates to COVID 19; and on the left and lower centre will be a scheduling widget for you to create update schedules so that the data shown on the dashboard will update periodically.

PREREQUISITES:

  • Python 3.6 and above

MODULE INSTALLS FOR PROGRAM:

  • In the command terminal run these commands
  • pip install Flask
  • pip install uk-covid19
  • pip install newsapi-python

#USING THE DASHBOARD

~ EXECUTING CODE: In order to execute the code you must execute the covid_data_interface.py file and then go to http://127.0.0.1:5000/

~ LOCATION: Inorder to change the location used in the program and see relevant data to your locattion, you must edit the value for the key 'Location' in the config.json file. Once changed the appropriate data will appear after a restarting of the server (run code again).
~ NEWS WIDGET: The news widget allows you the user to permenantly remove news articles that you know longer want to see. once removed they will be stored in the config file for you to allow back in or view if you remain interested in that article. To remove an article click the 'X' icon of the article you want removed and it will immediatly and permenantly be deleted. ~ SCHEDULES WIDGET: The schedules widget allows for updates to the dashboards data to be scheduled. Within this there are 5 components. 1 - Setting a time for your schedule; by clicking on the time entry field you can select a time for the future using the scroll wheel style provided 2 - Choosing a name for you schedule; by clicking on the name entry field and typing in the schedules name 3 - Selecting repeat; a schedule has the abilty to repeat itself so that is occurs 24hours ahead of the previous one. Select this option by ticking its box or not 4 - Update covid data; a schedule can be selected to update the covid 19 data on the dashbaord by selecting the tick box provided 5 - Upodate news data; a schedule can be selected to update the news data on the dashboard by selecting the tick box provided *NOTE - You can select both news and covid to be updated

#APPENDIX

~ COVID 19 MODULE: link : https://publichealthengland.github.io/coronavirus-dashboard-api-python-sdk/pages/getting_started.html ~ NEWS API MODULE: link : https://newsapi.org/docs/get-started

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

Built Distribution

File details

Details for the file Covid 19 Dashboard - Samuel Thomas CA Yr1-0.0.1.tar.gz.

File metadata

  • Download URL: Covid 19 Dashboard - Samuel Thomas CA Yr1-0.0.1.tar.gz
  • Upload date:
  • Size: 11.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0

File hashes

Hashes for Covid 19 Dashboard - Samuel Thomas CA Yr1-0.0.1.tar.gz
Algorithm Hash digest
SHA256 9970fc36f41e7482eb2f50f5970c5f43f3a5975c0c7e976f39ba63e70f0ea6fc
MD5 fa1fafd624b491669c3cce6e219b68be
BLAKE2b-256 4603ecea8ec1febc1d87df0b215a3d82929c8246e929ecb2450095f968036315

See more details on using hashes here.

File details

Details for the file Covid_19_Dashboard_Samuel_Thomas_CA_Yr1-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for Covid_19_Dashboard_Samuel_Thomas_CA_Yr1-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1c3785eda51613783182440a9a8be8c12c9319c2e983e644d8c34288955a76cc
MD5 3848553bfd8774b0ffdef11e29726c3e
BLAKE2b-256 985d163eb6afb1a2766c6341f59ea0a2021824b9d044b8d6e864ce2c2b8c0a68

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