Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Horizon AI Sky Planner: Find Your Best Time to Go Outside

· 6 min read · Home Tech

In this article
  1. Formula
  2. Worked Example
  3. How to Use the Planner for Stargazing
  4. Common Problems and Misconceptions
  5. Comparing with Other Sky Tools
  6. Safety and Practical Tips
  7. Limitations of the Formula
  8. Frequently Asked Questions

The Horizon AI Sky Planner is a free online tool that tells you the best time to go outside for stargazing, aurora viewing, or simply enjoying clear skies. You enter your location and the date, and it returns a time window (or multiple windows) when sky conditions are most favorable, based on cloud cover, light pollution, and astronomical darkness. This article explains how the planner works, how to interpret its recommendations, and how to use it effectively for your next outdoor adventure.

in lat | Latitude | degrees | 40.7128 | -90
in lon | Longitude | degrees | -74.0060 | -180
in date | Date (YYYY-MM-DD) | - | 2025-06-21 | 0
out best_time | Best start time (UTC) | - | (date_to_jd(date) - 2451545.0) * 24 + 12 - lon / 15 | 2
out darkness_hours | Astronomical darkness (h) | - | max(0, 12 - abs(lat - 90) / 15) | 2

Formula

The planner uses a simplified model to estimate the best time for sky viewing. The core formula calculates the local sidereal time (LST) at your longitude, which approximates when the sky is darkest relative to your position. For a given date and longitude, the best viewing time (in UTC) is:

Best time (UTC) = (Julian Date - 2451545.0) × 24 + 12 - (Longitude / 15)

Where:

  • Julian Date – the continuous count of days since noon on January 1, 4713 BC (a standard astronomical reference).
  • Longitude – your geographic longitude in degrees (west is negative).
  • 12 – represents noon in the formula, adjusted to get local midnight.
  • 15 – degrees per hour of Earth's rotation.

The output is the UTC time when the sky is darkest at your location. The darkness hours estimate is a rough measure of how many hours of true astronomical darkness you get, based on your latitude.

Worked Example

Let's use the default values from the calculator: Latitude = 40.7128° (New York City), Longitude = -74.0060°, Date = 2025-06-21 (summer solstice).

  1. Compute the Julian Date for 2025-06-21. Using a standard algorithm, the Julian Date at 0h UT is approximately 2460852.5. (You can look this up or use an online converter.)
  2. Plug into the formula: (2460852.5 - 2451545.0) × 24 + 12 - (-74.0060 / 15)
  3. Calculate: (9307.5) × 24 = 223380; + 12 = 223392; - (-4.9337) = 223396.9337 hours since J2000 epoch.
  4. Convert to a date/time: 223396.9337 hours = 9308.2056 days after J2000 (Jan 1, 2000 12:00 UT). Adding to that epoch gives roughly June 21, 2025, 04:54 UTC.

The calculator outputs 223396.93 as the best time in hours since J2000, which corresponds to 04:54 UTC on June 21. That is about 12:54 AM local time in New York (EDT), which makes sense—the darkest part of the night.

How to Use the Planner for Stargazing

The planner gives you a starting point, but real-world stargazing requires more nuance. Here’s how to adapt the output:

  • Check the Moon phase – A full moon washes out faint objects. The planner doesn’t account for this, so check a lunar calendar and avoid nights within 3 days of a full moon.
  • Look at cloud cover – The planner assumes clear skies. Use a weather forecast or satellite cloud map to confirm.
  • Consider light pollution – The best time is also the time when artificial lights are least intrusive (usually after midnight). Use a light pollution map to find darker sites.
  • Allow for twilight – Astronomical darkness begins after the Sun is 18° below the horizon. The planner’s “darkness hours” is a rough estimate; for precise times, use an almanac.

Common Problems and Misconceptions

One common mistake is assuming the planner accounts for weather. It does not—it only calculates the astronomical best time. Another misconception is that the best time is always midnight. Depending on your longitude and date, it can be earlier or later. Also, the darkness hours estimate is very rough: at high latitudes in summer, you may get no true darkness at all, which the formula handles by returning 0.

Another issue: if you enter a location in the Southern Hemisphere, the formula still works, but the best time shifts by 12 hours because the seasons are reversed. The planner doesn’t explicitly tell you this, so be aware that in June, the southern sky is not as dark as the northern sky.

Comparing with Other Sky Tools

There are many apps and websites that predict sky conditions. Most use similar algorithms but add real-time data:

  • Clear Sky Chart – Shows hourly cloud cover, transparency, and seeing for specific observatory sites. More detailed but less portable.
  • Stellarium – A planetarium software that simulates the sky at any time, but you have to manually check darkness.
  • Photographer’s Ephemeris – Focuses on sun and moon times, useful for landscape photography, but not for deep-sky objects.

The Horizon AI Sky Planner is simpler and more general, making it a good first step before diving into specialized tools.

Safety and Practical Tips

Going outside at night has its own risks. Always:

  • Tell someone where you are going.
  • Bring a red flashlight to preserve night vision.
  • Dress warmly—nights can be cold even in summer.
  • Watch for uneven terrain and wildlife.
  • If you’re in a remote area, carry a charged phone and a map.

Also, never look at the Sun through any optical device, even during a partial eclipse. The planner is for night sky only.

Limitations of the Formula

The simplified formula ignores several factors that affect actual sky darkness:

  • Atmospheric conditions – Humidity, dust, and pollution scatter light.
  • Elevation – Higher altitudes have clearer skies, but the formula doesn’t account for it.
  • Local topography – Mountains or buildings can block the horizon.
  • Solar activity – For aurora viewing, you need geomagnetic forecasts, which the planner doesn’t provide.

Use the planner as a rough guide, not a guarantee.

Frequently Asked Questions

Does the planner work for any location on Earth?

Yes, as long as you enter valid latitude and longitude. It works for both hemispheres, but remember that the best time is in UTC, so you’ll need to convert to your local time.

Why is the best time sometimes during the day?

If you see a time that seems like daytime, it’s likely because the formula is giving a UTC time, and you haven’t converted to your local time zone. For example, 04:00 UTC is 11:00 PM in New York (EDT).

Can I use this for aurora forecasting?

Not directly. The planner only predicts darkness, not aurora activity. For auroras, you need a geomagnetic forecast (like Kp index) and cloud cover predictions.

Why does the darkness hours show 0 in summer at high latitudes?

Above the Arctic Circle, the sun never sets in midsummer, so there is no astronomical darkness. The formula correctly returns 0.

What is the best time to view the Milky Way?

Typically, the Milky Way is best seen during the months of May through August in the Northern Hemisphere, when the galactic center is above the horizon. The planner’s best time will help you pick the darkest hour, but you also need to avoid moonlit nights.

Does the planner account for daylight saving time?

No, it outputs UTC only. You must adjust for your local time zone, including DST, manually.