2025-06-02 03:39:53 +00:00
# 🩺 NCIC Live A&E Monitor
2025-05-15 03:14:26 +01:00
2025-05-16 01:52:20 +01:00
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.
2025-05-15 03:14:26 +01:00
## Features
2025-06-02 03:38:40 +00:00
- Real-time Data: Displays the latest A&E and UTC waiting times for NCIC hospitals
2025-05-15 03:14:26 +01:00
2025-06-02 03:38:40 +00:00
- Auto-refresh: The app automatically refreshes data every 5 minutes with a countdown timer.
2025-05-15 03:14:26 +01:00
2025-06-02 03:38:40 +00:00
- Customizable UI: The interface is split into two sections for A&E and UTC departments, with hospital names highlighted for clarity.
2025-05-15 03:14:26 +01:00
2025-06-02 03:38:40 +00:00
- Data Fetching: Uses BeautifulSoup to scrape HTML tables from the NHS website, parsing the relevant data on patients, wait times, and arrivals.
2025-05-15 03:14:26 +01:00
2025-05-16 01:52:20 +01:00
## Requirements
2025-05-15 03:14:26 +01:00
To run this application, you need to have the following Python libraries installed:
2025-06-02 03:38:40 +00:00
- requests
- beautifulsoup4
- tkinter (usually comes pre-installed with Python)
2025-05-15 03:14:26 +01:00
You can install the required libraries using pip:
2025-06-02 03:38:40 +00:00
`pip install requests beautifulsoup4`
2025-05-15 03:14:26 +01:00
2025-06-02 03:38:40 +00:00
## Python Version
2025-05-15 03:14:26 +01:00
This script is compatible with Python 3.x.
2025-05-16 01:52:20 +01:00
## How to Run
2025-05-15 03:14:26 +01:00
2025-05-16 01:52:20 +01:00
### Linux
2025-06-02 03:38:40 +00:00
- Clone this repository to your local machine.
2025-05-15 03:14:26 +01:00
2025-06-02 03:38:40 +00:00
- Navigate to the directory:
2025-05-15 03:14:26 +01:00
2025-06-02 03:38:40 +00:00
- Run the script linux.py
2025-05-15 03:14:26 +01:00
2025-05-16 01:52:20 +01:00
### Windows
2025-05-15 03:14:26 +01:00
2025-06-02 03:38:40 +00:00
- Download and run the windows.exe file
2025-05-15 03:14:26 +01:00
2025-05-16 01:52:20 +01:00
### iOS / iPadOS
2025-05-15 03:14:26 +01:00
2025-06-02 03:38:40 +00:00
- Download the ios.py script and run it in Pythonista
2025-05-15 03:14:26 +01:00
2025-05-16 01:52:20 +01:00
## Troubleshooting
2025-05-15 03:14:26 +01:00
2025-05-16 01:52:20 +01:00
- App doesn't load: Ensure that all required libraries are installed. Run pip install requests beautifulsoup4.
2025-05-15 03:14:26 +01:00
2025-05-16 01:52:20 +01:00
- No data appears: The data is fetched from the live NHS website, so ensure you have an internet connection and the website is accessible.
2025-05-15 03:14:26 +01:00
2025-05-16 01:52:20 +01:00
## License
2025-05-15 03:14:26 +01:00
2025-05-16 01:52:20 +01:00
This project uses data sourced from the NHS website and is made available under the <a href="https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/">Open Government License</a>