- Python 2.7+
- Raspberry Pi (or any computer which can run python)
- Speakers (Hardwired or Bluetooth)
- Clone this repository
- Run
pip install -r requirements.txt - Open
config.jsonand fill in details - Run
python azaan-cron.py
- Run
crontab -eand choosenanoif asked for editor choice. - At the bottom of this file, add the line
@reboot python /home/azaan-clock/azaan-cron.py, this will start the script on boot automatically. - Press
Ctrl + Xto exit, pressYkey, and then press enter to save the file.
Azaan Times are calculated based on various options which you can change in config.json. Here are some ways on how to configure them:
coordinates
You can change the lat and lng in config.json
Default: (37.3441254,-121.9806518)
calculation-method
- isna
- muslim-world-league
- egypt
- makkah
- karachi
- tehran
- shia
Default: isna
asr-method
- standard
- hanafi
Default: hanafi
You can add more Azan sounds by copying azaan sound files to assets/audio directory for regular azaan or assets/audio/fajr for fajr azaan.
Default: 1 Fajr, 2 Regular
I used this library https://github.com/hayalasalah/adhan.py for calculating azan times.