Yearly forecast: solar return, transits, progressions, profection, eclipses
CI / test (push) Successful in 56s
CI / build (push) Successful in 4m41s
CI / deploy (push) Skipped

- astro-engine: forecast module (solar return moment, slow-planet transits
  with exact dates and periods, natal house ingresses, secondary
  progressions, annual profection, eclipses via Swiss Ephemeris)
- horoscope-api: POST /v1/forecast, solar return chart cast for the place
  of the birthday
- backend: forecasts table, /v1/charts/{id}/forecasts, /v1/forecasts/{id}
  and its analyses using a new 'forecast' unit; current year of life open,
  the next one 30 days before the birthday
- packages: Páros and Család include forecasts (6 000 / 11 000 Ft),
  +1 éves előrejelzés add-on 2 500 Ft; Egy elemzés unchanged
- worker and prompt: forecast kind with five sections and forecast rules
  (trends, no event predictions); no birth data, place or exact age sent
- frontend: /kepletek/{id}/elorejelzes with the solar return wheel, the
  keys of the year, a monthly timeline, transit list and detailed forecast
- data export: forecasts added, model name removed

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL
This commit is contained in:
feco
2026-11-18 08:19:13 +00:00
co-authored by Claude Opus 5.5
parent 829c33e52f
commit f1bd34c394
42 changed files with 4764 additions and 85 deletions
+30
View File
@@ -109,6 +109,32 @@ pub struct EphemerisInfo {
pub license: String,
}
#[derive(Debug, Clone, Copy, PartialEq, Eq, Serialize)]
#[serde(rename_all = "snake_case")]
pub enum EclipseKind {
Solar,
Lunar,
}
#[derive(Debug, Clone, Copy, PartialEq, Eq, Serialize)]
#[serde(rename_all = "snake_case")]
pub enum EclipseType {
Total,
Annular,
/// Annular-total (hybrid) solar eclipse.
Hybrid,
Partial,
Penumbral,
}
/// An eclipse at its maximum.
#[derive(Debug, Clone, Copy, PartialEq)]
pub struct EclipseEvent {
pub kind: EclipseKind,
pub eclipse_type: EclipseType,
pub jd_ut: f64,
}
pub trait Ephemeris: Send + Sync {
fn info(&self) -> EphemerisInfo;
@@ -129,4 +155,8 @@ pub trait Ephemeris: Send + Sync {
/// Ayanamsa value in degrees.
fn ayanamsa(&self, jd_ut: f64, ayanamsa: Ayanamsa) -> Result<f64>;
/// Solar eclipses (all types) and lunar eclipses (partial and total, not
/// the barely visible penumbral ones) between two moments, in time order.
fn eclipses(&self, from_jd: f64, to_jd: f64) -> Result<Vec<EclipseEvent>>;
}