How close are we to the next adzan?
61 means "61% percent completion" from the last adzan to the next adzan.
- Install Python 3
- Open the source code
- Modify the coordinate and timezone based on your location.
lamd : longitude, phi : latitude, td : UTC offset (i.e. 7,-5) - Open command prompt, type
pip install pystray. Thenpip install Pillow - Rename
sy.pytosy.pyw - Press WIN+R, type "shell:startup". Right click, new, shortcut. Point it to where
sy.pywis located. - Double click the
sy.pyw
The prayer times calculation algorithm is based from Djamaluddin (1990) by using solar position algorithm of Astronomical Almanac for Computer.
Then, today's prayer times (+ midnight time) is stored inside an array. checkpoints = [subuh,zuhur,ashar,magrib,isya,midnight].
If right now is 14.00 , then we calculate the time difference between 14.00 and zuhur progress = now - zuhur, calculate the time difference between zuhur and ashar complete_progress = ashar - zuhur, calculate the progress (in percent) percentageProgress = (progress / complete_progress) * 100.
Only works for regions between latitude 65 N - 65 S
