Celestial Time Engine avatar
Celestial Time Engine

Pricing

Pay per event

Go to Apify Store
Celestial Time Engine

Celestial Time Engine

Developed by

Visita AI & Automation

Visita AI & Automation

Maintained by Community

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.

FieldTypeDescription
locationsarrayA list of places or coordinates (e.g. "Cape Town, South Africa" or { "latitude": 21.42, "longitude": 39.82 })
datestringDate in YYYY-MM-DD format (defaults to today).
modulesarrayWhich modules to calculate (core, islamic, moon, weather, etc.).
config.islamic.methodstringCalculation method (ISNA, Makkah, Turkey, Dubai, etc.).
config.islamic.asrstringAsr method (Standard or Hanafi).
weatherApiKeystring ๐Ÿ”’ (secret)Your OpenWeatherMap API key (if Weather module is enabled).
flattenOutputbooleanFlatten output for easy CSV import.

๐Ÿงญ Preset locations

Quickly select from popular places:

PresetExample
๐Ÿ‡ธ๐Ÿ‡ฆ 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

  1. Open the Actor in Apify Console.
  2. Click Run โ†’ Input.
  3. Enter a list of locations or choose presets.
  4. (Optional) Add your OpenWeatherMap API key to enable weather data.
  5. Select modules you want (e.g. core, islamic, moon).
  6. 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

ModuleOptions
Islamic Prayer TimesMethod (ISNA, Makkah, Turkey, Dubai, etc.), Asr Method (Standard/Hanafi)
WeatherRequires OpenWeatherMap API Key
OutputToggle flattenOutput to make dataset spreadsheet-friendly
Batch ProcessingInput 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 โ˜€๏ธ๐ŸŒ™๐Ÿ•Œ