Twilight stages are defined by the sun's depression below the horizon: civil 0–6°, nautical 6–12°, astronomical 12–18°.
Weather: Open-Meteo (no key) · Sun, twilight, moon & sky positions: astronomy-engine v2.1.19
by Don Cross (cosinekitty, MIT) — all computed locally in your browser.