Moon and retrograde calendars, "today in the sky" on the own chart
New public pages: /holdnaptar (new and full moons, quarters, eclipses and the Moon's sign changes, month by month, with the Moon of today) and /retrograd (the retrograde periods of Mercury to Pluto with their shadows, and which planets are retrograde now), each with a page per year around the current one. The own chart gets a "Ma az égen" card: the Moon's sign, phase and natal house, the tightest transits to the chart in fixed sentences, and the retrograde planets. No AI, nothing stored. The events come from astro-engine (sampling and bisection, checked against swetest and the 2026 eclipses) through horoscope-api GET /v1/sky and /v1/sky/events; the backend serves them at /v1/public/sky… and keeps them in memory (the sky now for five minutes, a year's events for good). Links in the mobile menu, the footer, the sitemap and the free tools on the home page; the desktop header is unchanged (it is full at 1280 px). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
//! Client of the horoscope-api service (`POST /v1/natal`, `POST /v1/synastry`).
|
||||
//! Client of the horoscope-api service (charts, forecasts, the sky by date).
|
||||
//!
|
||||
//! Requests and responses are passed as JSON: the horoscope service validates
|
||||
//! the birth data itself, and its error objects are handed back unchanged so
|
||||
@@ -48,6 +48,16 @@ impl HoroscopeClient {
|
||||
self.post("/v1/forecast", request).await
|
||||
}
|
||||
|
||||
/// `GET /v1/sky`: the sky now (planets, retrograde ones, the Moon).
|
||||
pub async fn sky(&self) -> Result<Value, HoroscopeError> {
|
||||
self.get("/v1/sky", &[]).await
|
||||
}
|
||||
|
||||
/// `GET /v1/sky/events?year=`: a year's lunar phases, Moon sign changes and retrograde periods.
|
||||
pub async fn sky_events(&self, year: i32) -> Result<Value, HoroscopeError> {
|
||||
self.get("/v1/sky/events", &[("year", &year.to_string())]).await
|
||||
}
|
||||
|
||||
/// `GET /v1/countries`
|
||||
pub async fn countries(&self) -> Result<Value, HoroscopeError> {
|
||||
self.get("/v1/countries", &[]).await
|
||||
|
||||
Reference in New Issue
Block a user