- 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.json
and fill in details - Run
python azaan-cron.py
- Run
crontab -e
and choosenano
if 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 + X
to exit, pressY
key, 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.