Azaan Clock
Requirements
- Python 2.7+
- Raspberry Pi (or any computer which can run python)
- Speakers (Hardwired or Bluetooth)
Installation
- Clone this repository
- Run
pip install adhan
- Run
python azan-cron.py
Options
Azaan Times are calculated based on various options. Here are some ways on how to configure them:
Geo location Coordinates
You can change the current location coordinates by opening azan-cron.py
file and change this line coordinates = (37.3441254,-121.9806518)
to use your location coordinates.
Default: (37.3441254,-121.9806518)
Azan Time Calculation Method
Azan times are calculated based on some method there are various methods provided by the Adhan library I am using. You can change the caculation method by going to azan-cron.py
- Import the method you want here
from adhan.methods import ISNA, ASR_HANAFI
- Update these line with yoru methods
params.update(ISNA)
params.update(ASR_HANAFI)
For all available options please visit the original library page here https://github.com/hayalasalah/adhan.py
Default: ISNA
and ASR_HANAFI
Adding More Azan Sounds
You can add more Azan sounds. Goto assets/audio
and add more Azan but make sure the file is in this format azan-<increment-number>
E.g: azan-1.mp3
Default: 1 Fajr, 2 Regular
Credits
I used this library https://github.com/hayalasalah/adhan.py for calculating azan times.