This project provides a Python script to retrieve and display prayer times for London from two sources: London Aziziye Mosque and the Turkish Directorate of Religious Affairs.
The script also includes functionality to play the Azan (call to prayer) from a specified Spotify device, as configured in the .env file.
- Introduction
- Folder Structure
- Dependencies
- Installation
- Usage
- Configuration
- Contributing
- License
London Prayer Times Project is a Python script designed to fetch and display accurate prayer times for London. It utilizes data from London Aziziye Mosque and the Turkish Directorate of Religious Affairs.
The project relies on the following Python packages:
selenium
: For web automation.requests
: For making HTTP requests.- Other standard Python libraries.
It was tested and built with Python 3.11.7
and pip 24.0
- Clone the repository:
git clone https://github.com/yourusername/london-prayer-times.git
cd london-prayer-times
- Install the required dependencies:
pip install -r requirements.txt
- Export current folder
export PYTHONPATH=$PYTHONPATH:$(pwd)
To run the script, execute the following command in the terminal:
python src/main.py
The script will fetch prayer times and make decisions on playing specific playlists based on the current time.
Configure the script by modifying the .env
file. Add your Spotify username, password and device names.
You can run tests with
python -m unittest discover tests
Contributions are welcome! Feel free to open issues or submit pull requests to improve the project.
This project is licensed under the MIT License.