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
+24
View File
@@ -55,6 +55,12 @@ pub const SE_SIDM_YUKTESHWAR: i32 = 7;
pub const SE_SIDM_GALCENT_0SAG: i32 = 17;
pub const SE_SIDM_TRUE_CITRA: i32 = 27;
pub const SE_ECL_TOTAL: i32 = 4;
pub const SE_ECL_ANNULAR: i32 = 8;
pub const SE_ECL_PARTIAL: i32 = 16;
pub const SE_ECL_ANNULAR_TOTAL: i32 = 32;
pub const SE_ECL_PENUMBRAL: i32 = 64;
unsafe extern "C" {
pub fn swe_version(s: *mut c_char) -> *mut c_char;
pub fn swe_set_ephe_path(path: *const c_char);
@@ -100,6 +106,24 @@ unsafe extern "C" {
dret: *mut c_double,
serr: *mut c_char,
) -> i32;
/// Next (or previous) solar eclipse anywhere on Earth; `tret[0]` = maximum (UT).
pub fn swe_sol_eclipse_when_glob(
tjd_start: c_double,
ifl: i32,
ifltype: i32,
tret: *mut c_double,
backward: i32,
serr: *mut c_char,
) -> i32;
/// Next (or previous) lunar eclipse; `tret[0]` = maximum (UT).
pub fn swe_lun_eclipse_when(
tjd_start: c_double,
ifl: i32,
ifltype: i32,
tret: *mut c_double,
backward: i32,
serr: *mut c_char,
) -> i32;
pub fn swe_deltat_ex(tjd: c_double, iflag: i32, serr: *mut c_char) -> c_double;
pub fn swe_sidtime(tjd_ut: c_double) -> c_double;
}