Package: covid-dashboard-jis206
Covid-19 DashboardIntroductionThis is a Python project that creates a locally-hosted web page detailing up-to-date Covid-19 data and news articles. It can also schedule automatic updates to the data and articlesPre-requisitesPython 3.9.7 or aboveThe Built-In Modules:SchedTimeLoggingTypingJsonA NewsAPI API key (create an accounthere)InstallationTo install the dashboard run the following command in a command prompt:pip install covid-dashboard-jis206You will also need the flask module as well as the uk_covid-19 module, pytest and requests.
You will need to run these commands as well:pip install flask
pip install uk-covid19
pip install pytest
pip install requestsGetting StartedYou will need to copy your API key into theconfig.jsonreplacing the<Insert API key here>text.
Then to run the program, navigate to your installation location in the command prompt and run the commandpython main.pyOnce the programme is running, head to thiswebpagefor your dashboard.Covid DataIn the centre of the screen, you should see the infection rate in Exeter as well as the infection rate, number of hospital cases and number of deaths across England. The areas of these data sources can be adjusted in the config file.UpdatesYou can schedule an update with the form in the bottom middle of the screen. Fill in when you want the update to occur, what you want the update to be called, then select what it should update and whether it should update every day or not.If this has been done correctly, once you have hit the 'Submit' button, a toast should pop-up in the top-left hand corner detailing the update. How many toasts appear on the screen can be changed in the config file.If you would like to cancel the update, just hit the 'x' on the toast and the update will no longer occurNews ArticlesOn the right hand side of the screen, you can see news articles that relate to Covid from the UK. You can see the name of each article, its source and a brief description of its contents. Furthermore, it contains a hyperlink to the full article if you would like to see more.You can also hide the news articles with the 'x' in the top-right corner of each article. This will cause the article to not be displayed even after an update.Config Fileapi-key: Where your key should go. This should be obtained fromherelocalArea: The region for which local data will be taken from. Most towns/cities are acceptablelocalAreaType: This is how large the area is. Options areltla, utla, region, nhsRegion. For more information, see theUK-covid-19 API documentationnationalArea: The region where the national data is retrieved. Must be a country within the UK or the UK itselfnationalAreaType: What region this is. Options arenation, overview. For more information, see theUK-covid-19 API documentationnewsTerms: These are the terms queried by the News API. Any article containing at least one of these words will be identified. Each item to be searched must be separated by a space. To search for phrases, the phrase must be surrounded by quotes (").newsCountry: The country that the articles found originate from. By default, the UK. The options for countries areae ar at au be bg br ca ch cn co cu cz de eg fr gb gr hk hu id ie il in it jp kr lt lv ma mx my ng nl no nz ph pl pt ro rs ru sa se sg si sk th tr tw ua us ve za.articlesShown: The number of articles on the screen at any given timeupdatesShown: The number of updates on the screen at any given timeDetailsReleased under the MIT License into the public domainWritten by Jack Souster