Create daily prayer and sunnah fasting reminders in Google Calendar using Aladhan API
Ready for 3.0What this workflow does
This workflow has 11 nodes and runs on a schedule (every day at 01:00). Along the way it connects Google Calendar. It also calls api.aladhan.com over HTTP.
How it runs
Trigger: On a schedule (every day at 01:00).
- Set City and Country (Edit Fields (Set)): sets 4 fields: city, country, end_day…
- Fetch Prayer Data (HTTP Request): calls an HTTP API
- Get Today Event (Google Calendar): get many
- reformat prayer (Code): runs custom JavaScript code
- Merge: merges the data from its input branches
- get hijri date (HTTP Request): calls api.aladhan.com
- If: checks a condition and branches into true / false
- detect ayamul bidh date (Code): runs custom JavaScript code
- Create an event (Google Calendar): uses Google Calendar
- merge (Code): runs custom JavaScript code
Services it uses
HTTP calls to: api.aladhan.com
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (7)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Google Calendar
n8n-nodes-base.googleCalendar - Code
n8n-nodes-base.code - Edit Fields (Set)
n8n-nodes-base.set - Merge
n8n-nodes-base.merge - If
n8n-nodes-base.if - HTTP Request
n8n-nodes-base.httpRequest
From the author
🕌 How it works This workflow automatically creates daily Islamic reminders in your Google Calendar based on your location 📍 It fetches real-time prayer times 🌐 and generates events for: • 🕌 Daily prayers (Subuh, Dzuhur, Ashar, Maghrib, Isya) • 🤲 Morning…