This n8n workflow automatically finds the nearest mosque for each daily prayer and sends an email notification with its details.
-
Daily Trigger:
- Workflow runs every day at 10:00 AM, before any prayer time.
-
Get Location & Prayer Times:
- Fetches the current IP address to determine the country.
- Uses the country coordinates to retrieve today’s prayer times.
- Formats the prayer times and loops through each prayer.
-
Wait Until Prayer Time:
- For each prayer, the workflow waits until the scheduled time.
-
Find Nearest Mosque:
- At prayer time, the workflow gets the current coordinates.
- Uses Overpass API to search for the nearest mosque.
-
Send Email Notification:
- Sends an email with the mosque’s location, name, and website (if available).
- Cron (Trigger at 10:00 AM)
- HTTP Request (IP address, Prayer Times, Overpass API)
- Function / Function Item (Format prayer times)
- Wait (Delay until each prayer)
- Email (Send mosque details)
- Clone the repo:
git clone https://github.com/<username>/n8n-nearest-mosque-finder-n8n.git