Celestial Time Engine
Pricing
Pay per event
Celestial Time Engine
The Celestial Time Engine is an all-in-one astronomical and religious time calculator. It calculates sunrise, sunset, twilight phases, prayer times, Qibla direction, moon phases, weather data, and more โ for any location on Earth.
0.0 (0)
Pricing
Pay per event
0
2
1
Last modified
a day ago
๐ Celestial Time Engine โ Multi-Faith Astronomical & Prayer Time Calculator
The Celestial Time Engine v2 is an all-in-one astronomical and religious time calculator built for automation on Apify. It calculates sunrise, sunset, twilight phases, prayer times, Qibla direction, moon phases, weather data, and more โ for any location on Earth.
Provide place names, coordinates, or presets (e.g., ๐ Mecca, ๐ฟ๐ฆ Cape Town, ๐น๐ท Istanbul) and receive a detailed dataset of celestial and faith-based time events.
โจ What Celestial Time Engine can do
Main features
- โ๏ธ Core Sun Module โ sunrise, sunset, solar noon and midnight, day length.
- โ๏ธ Aviation Twilight โ civil, nautical and astronomical dawn and dusk.
- ๐ Islamic Prayer Times โ Fajr to Isha, Asr methods, and Qibla direction.
- ๐ธ Photography Hours โ golden and blue hour start and end times.
- ๐ Moon Phases and Rise/Set โ phase name, illumination, rise, and set.
- ๐ค๏ธ Weather Layer โ live conditions and cloud cover (via OpenWeatherMap API).
- โก๏ธ Jewish Zmanim โ Alot HaShachar and Tzeit HaKochavim.
- ๐งญ Magnetic Declination โ calculate magnetic north offset (geomagnetic model).
- ๐๏ธ Lunar Calendars โ Chinese and Hindu day data (optional).
Highlights
- Process multiple locations at once (batch input).
- Smart geocoding with automatic timezone detection.
- Works for any date โ past or future.
- Outputs are standard ISO timestamps, ideal for data pipelines or CSV exports.
๐ Why use Celestial Time Engine v2 on Apify?
Running the Engine on Apify gives you:
- Automation & Scheduling โ calculate times daily or hourly.
- API Access โ integrate directly with apps and dashboards.
- Proxy & Network Tools โ ensure geolocation accuracy.
- Scalable Batch Processing โ thousands of locations per run.
- Integrated Storage โ save and export datasets in JSON, CSV, or Excel.
Unlike local apps, Apify Actors run entirely in the cloud and scale automatically.
๐ฅ Input options
You can see all inputs under the Input tab in Apify Console.
| Field | Type | Description |
|---|---|---|
locations | array | A list of places or coordinates (e.g. "Cape Town, South Africa" or { "latitude": 21.42, "longitude": 39.82 }) |
date | string | Date in YYYY-MM-DD format (defaults to today). |
modules | array | Which modules to calculate (core, islamic, moon, weather, etc.). |
config.islamic.method | string | Calculation method (ISNA, Makkah, Turkey, Dubai, etc.). |
config.islamic.asr | string | Asr method (Standard or Hanafi). |
weatherApiKey | string ๐ (secret) | Your OpenWeatherMap API key (if Weather module is enabled). |
flattenOutput | boolean | Flatten output for easy CSV import. |
๐งญ Preset locations
Quickly select from popular places:
| Preset | Example |
|---|---|
| ๐ธ๐ฆ Mecca | "preset": "mecca" |
| ๐ฟ๐ฆ Cape Town | "preset": "cape_town" |
| ๐น๐ท Istanbul | "preset": "istanbul" |
| ๐ช๐ฌ Cairo | "preset": "cairo" |
| ๐ฆ๐ช Dubai | "preset": "dubai" |
๐ค Output example
Each location is saved as one item in the Actorโs default dataset.
{"resolved": {"name": "Cape Town, South Africa","latitude": -33.9249,"longitude": 18.4241},"date": "2025-11-07","timezone": "Africa/Johannesburg","modules": {"core_sun": {"sunrise": "2025-11-07T05:23:41+02:00","sunset": "2025-11-07T19:31:12+02:00","day_length_seconds": 50951},"islamic_prayer": {"fajr": "2025-11-07T04:21:00+02:00","dhuhr": "2025-11-07T12:08:00+02:00","asr": "2025-11-07T15:24:00+02:00","maghrib": "2025-11-07T19:31:00+02:00","isha": "2025-11-07T20:47:00+02:00","qibla_direction_degrees": 21.38},"moon": {"phase_name": "Waxing Crescent","illumination_percent": 23.4},"weather": {"conditions": "clear sky","temp_c": 23.8,"cloud_cover_percent": 0}}}
All datasets can be downloaded as JSON, CSV, HTML, or Excel from the dataset tab.
๐งฉ How to use Celestial Time Engine v2
- Open the Actor in Apify Console.
- Click Run โ Input.
- Enter a list of locations or choose presets.
- (Optional) Add your OpenWeatherMap API key to enable weather data.
- Select modules you want (e.g.
core,islamic,moon). - Click Run and watch the dataset populate in real time.
๐ฐ Pricing and usage expectations
This Actor uses Apifyโs pay-per-compute-unit (PPU) model. You pay only for the resources used during your run โ no fixed fee.
- Typical single-location run โ 0.01 CU (less than $0.001).
- Multi-location batch (100 entries) โ 1 CU.
- Includes all calculations and geocoding.
You can start for free on Apifyโs starter plan and scale as needed.
โ๏ธ Advanced configuration
| Module | Options |
|---|---|
| Islamic Prayer Times | Method (ISNA, Makkah, Turkey, Dubai, etc.), Asr Method (Standard/Hanafi) |
| Weather | Requires OpenWeatherMap API Key |
| Output | Toggle flattenOutput to make dataset spreadsheet-friendly |
| Batch Processing | Input multiple locations in one run |
๐ก Tips for best results
- Keep location names precise (e.g., โMecca, Saudi Arabiaโ).
- For the Weather module, use metric data (
units=metric). - Schedule daily runs to automatically generate prayer timetables.
- Combine this Actor with Apify Webhooks to send notifications at Fajr or Sunset.
๐งพ FAQ and support
Is Celestial Time Engine v2 accurate?
Yes โ it uses Astral and verified astronomical equations for the sun, plus standard ISNA/Makkah angles for prayers.
Is it free to use?
You can run small batches for free under Apifyโs free plan.
Can I add my own API keys or custom angles?
Yes โ you can extend the JSON config object in the input schema.
Where to get help?
If you face issues or want custom features (e.g., holiday calendar integration), open an issue in Apify Console or contact support.
๐ Integrations and use cases
- Generate daily Islamic prayer times for apps or IoT devices.
- Automate photography schedules based on golden hour.
- Sync moon phase data to lighting systems or agriculture tools.
- Export CSV timetables for religious websites or community boards.
Start now โ Run Celestial Time Engine v2 on Apify and get precise sun, moon, and prayer data for any place on Earth โ๏ธ๐๐
On this page
Share Actor:
