Prayer Times

An Alfred Workflow


Short Description

Alfred workflow for displaying daily prayer times, data retrieved from ezanvakti

Last Updated

07 May 2020

Compatibility

Yosemite
(10.10)
Mavericks
(10.9)
Mountain Lion
(10.8)
Lion
(10.7)
Snow Leopard
(10.6)
Yes Yes Yes Yes Yes
 

Version

1.1
 

Bundle ID

imesut.prayer_times
 

Author

Categories

Alfred-Prayer-Times

Download worklow here.

An Alfred (Spotlight app for MacOS) workflow for displaying daily prayer times, data retrieved from ezanvakti.herokuapp Ezanvakti retrieveds data from Diyanet

This workflow caches data for one hour. It is possible to change this duration. ezanvakti.herokuapp has an API call limit, caching time should be 45 seconds at least.

This workflow is tested with Alfred 3.

Installation

  1. Open file with .alfredworkflow extension. Download worklow here.
  2. Install requirements file inside the workflow package. After adding workflow, right click to it then "Open in Finder". You can enter the directory and run pip3 install -r requirements.txt

Customization

  1. Customize script filter: The placeId and localization code should be changed.

    1. Changind Place Id: Double click to the prayerscript filter box. The command will be like /usr/local/bin/python3 namaz.py 9541 en
    2. Change 9541 value for place Id. This value can be obtained from Prayer Times web site. When country / city and place details selected, the placeId will appear on the url like https://namazvakitleri.diyanet.gov.tr/en-US/cityId/...

    3. Change local value en. This workflow currently contains tr and en codes. You can also add a new code by editing localizations.py file.

    4. Also you can change the Python3 path according to your system.

  2. You can use multiple keywords like namaz, prayer, salat and more. To add new keywords use workflow screen. Screenshot from Alfred image

Credits

Screenshots