SalatReminder

Salat Reminder is a simple ATOM feed generator that displays todays Salat timings based on your ip addresses geographical location and are sourced from Islamic Finders Prayer Web service.

Download .zip Download .tar.gz View on GitHub

Salat Reminder

July 25, 2012

Asalam Alikum Brothers and Sisters, Salah is a very important part of EVERY Muslims daily life and it is an obligation to perform this act of worship on time five times everyday. Salat Reminder is just another tool to help remind us to remember Allah Subhannah Wa'Tallah while living in the west with our busy schedules. In Canada I don't have the luxury of hearing the Azan being called out loud in our streets everyday, like in many Muslim countries; This adds to the challenge of living Islam and being a good Muslim, since we are not always in the company of our brothers and sisters in Islam.

Salat Reminder is a simple ATOM feed generator that displays todays Salat timings based on your ip addresses geographical location and prayer timings are sourced from Islamic Finders Prayer Web service. The default options can be configured in the config.ini file; I've added some comments to help you configure it to your needs. Please note that if you're using a proxy of any kind your results will most likely be incorrect. For example, the Mc Donald’s wifi I'm using in Toronto, Canada is piped through Washington DC in the USA. The title of the feed will have the current city and country; if you're in doubt, look up the timings from a source that matches your location.


Dependancies:

Web Services used:

IP Info DB config

It is very important that you get a free API key for ipinfodb and copy and paste it into a file called ".ht_ipinfodb.ini" (the .ht is to prevent the file from being viewed on the web, as per default apache httpd config), this is a basic template, just replace the text in key with the real key:

;-----------------------------------------
; Example of .ht_ipinfodb.ini
;-----------------------------------------
[api]
key="<api key |ljdslfddfsldfhjdfsjhdfs>"
;-----------------------------------------

Please download this and run it on your own web server, this will help keep the feed generating nicely. EarthTools and IP Info DB are free services and shouldn't be abused by your scripts, Inshallah my scripts don't. If you notice any mistakes in my readme or code or calculations, please feel free to let me know. Here is a demo you can can try out.

Salat is a ritual worship that Muslims have to perform at specific times.

This class helps Muslims determining not only what will be the next Salat time depending on where they are in the world, but also future Salat times using a RSS feed that is regularly updated depending on the current time.

This RSS feed can be pulled by applications that can be used to alert the Muslims in time for their prayers.

Manuel Lemos