diff --git a/README.md b/README.md index 506a9db..e7872e7 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ 🩺 NCIC Live A&E Monitor -This is a Python application that allows you to view live data of the amount of patients in A&E and the latest waiting times, at NCIC facilities. The data is scraped from the ncic.nhs.uk waiting times page and displayed in a user-friendly GUI. +This is a Python application that allows you to view live data of the amount of patients in A&E and the latest waiting times, at North Cumbria Integrated Care (NCIC) facilities. The data is scraped from the ncic.nhs.uk waiting times page and displayed in a user-friendly GUI. ## Features @@ -13,7 +13,7 @@ This is a Python application that allows you to view live data of the amount of Data Fetching: Uses BeautifulSoup to scrape HTML tables from the NHS website, parsing the relevant data on patients, wait times, and arrivals. -Requirements +## Requirements To run this application, you need to have the following Python libraries installed: @@ -31,51 +31,30 @@ Python Version This script is compatible with Python 3.x. -How to Run +## How to Run - Clone this repository to your local machine. +### Linux + - Clone this repository to your local machine. + + - Navigate to the directory: + + - Run the script linux.py + +### Windows + + - Download and run the windows.exe file + +### iOS / iPadOS + + - Download the ios.py script and run it in Pythonista - Navigate to the directory: +## Troubleshooting + - App doesn't load: Ensure that all required libraries are installed. Run pip install requests beautifulsoup4. - Run the script linux.py + - No data appears: The data is fetched from the live NHS website, so ensure you have an internet connection and the website is accessible. +## License - - -The app should now open and display the current NHS waiting times for A&E and UTC departments in North Cumbria. - -How It Works -GUI Components - - Title and Countdown: Displays the app title and a countdown timer showing the time remaining until the next data refresh. - - Two Panels: One panel shows A&E departments, and the other shows Urgent Treatment Centres (UTC). - - Hospital Information: Each hospital entry includes: - - Hospital name (with an icon) - - Number of patients currently in the department - - Average wait time - - Number of arrivals in the last hour - -Data Fetching - -The fetch_data() method scrapes the NHS page and extracts data from HTML tables using BeautifulSoup. This data is then formatted and displayed in the GUI. -Auto Refresh - -The app refreshes the data every 5 minutes using a background thread, with a countdown timer indicating the time remaining until the next refresh. -Simplifying Hospital Names - -The simplify_name() method is used to standardize and clean up hospital names, ensuring that any extra details (such as "24hrs") are removed for consistency. -Example Screenshot - -Troubleshooting - - App doesn't load: Ensure that all required libraries are installed. Run pip install requests beautifulsoup4. - - No data appears: The data is fetched from the live NHS website, so ensure you have an internet connection and the website is accessible. +This project uses data sourced from the NHS website and is made available under the Open Government License diff --git a/windows.exe b/windows.exe new file mode 100644 index 0000000..c2948c9 Binary files /dev/null and b/windows.exe differ