How positions are calculated

Astrelle calculates planet positions with open-source astronomy code, in the tropical zodiac. Birth charts use Placidus houses. Horoscopes are written by a language model from the positions calculated for their dates.

Methodology

Sky events and today's sky

Today's planet positions, retrograde stations and shadow periods, eclipses, new and full moons, sign ingresses, equinoxes and solstices come from astronomy-engine, an open-source astronomy library. Positions are geocentric, in the tropical zodiac on the true ecliptic of date, and computed in UTC.

A station is the moment a planet's motion along the ecliptic changes direction. The code checks each planet's speed once a day, and when the sign of the speed flips it narrows the moment down by bisection. For Mercury, Venus and Mars, the shadow starts when the planet first reaches the degree where it will later turn direct, and ends when it gets back to the degree where it turned retrograde.

Eclipses come from astronomy-engine's lunar and solar eclipse search, and moon phases from its moon quarter search. Times are given in UTC to the minute and degrees to the arc-minute.

Birth charts

Birth charts are calculated with circular-natal-horoscope-js, a JavaScript library built on Moshier's ephemeris. The settings are the tropical zodiac and Placidus houses, the same as in the signed-in app.

The birthplace is turned into coordinates through OpenStreetMap's Nominatim search. The time zone comes from those coordinates (tz-lookup), and daylight saving is applied as it stood on the birth date (moment-timezone). The local birth time is then converted to UTC, and the chart shows the zone and UTC offset it used.

Without a birth time, the chart is cast for 12:00 noon local time and leaves out the houses, the rising sign and the Midheaven. It also lists any planet that changed sign during the birth day.

Aspects are the five major ones: conjunction, opposition, trine, square and sextile.

Horoscopes

Horoscopes are written by a language model. Before it writes, Astrelle calculates the sky for the reading's dates: each planet's sign and retrograde status, new and full moons, eclipses and the Moon's sign changes. Those positions are part of the instructions the model gets.

Each draft is checked. If it puts a planet in a sign the planet does not visit during that period, or names a date outside the period, it is sent back once to be fixed, and a draft that still fails is not published.

Each reading is written the first time its page is opened and then stays the same.

Reference articles

Sign, planet, house, compatibility and glossary pages are written text stored in Astrelle's content library. They are the same for every visitor. Many list the astrology books they draw on.

Calculated or written

What is calculated and what is written
What you seeHow it is made
Planet signs, degrees and retrograde flags in a birth chartCalculated with circular-natal-horoscope-js
Houses, rising sign and MidheavenCalculated (Placidus), only when the birth time is known
Aspects in a chart or between two chartsCalculated from the positions
Retrograde, eclipse, moon phase and ingress dates and timesCalculated with astronomy-engine
Daily, weekly and monthly horoscopesWritten by a language model from calculated positions
Sign, planet, house and compatibility articlesWritten text from the content library