Sky and ISS views

Two new views, picked from mockups. `sky`: a star chart of the sky over
Zlín as seen lying on your back, with the planets, the moon in its phase,
tonight's darkness, cloud for the next 12 hours and the next visible ISS
pass. `iss`: a dotted world map with day and night, the ISS and its ground
track, and the next pass over Zlín with the cloud cover for that hour.

Positions are calculated locally with ephem; only the ISS orbit
(CelesTrak, every 6 h, retried gently) and cloud cover (Open-Meteo) are
fetched. The poller gained a per-source retry delay for that.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
rickzkmandClaude Opus 5.5 committed 2026-10-29 00:03:38 +01:00
1 parent 6c9a1420d2
commit 2132262896
28 files changed
+1342 -18

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
from datetime import datetime
from timeutil import from_utc, to_utc
def test_to_utc_in_winter_and_summer_time():
assert to_utc(datetime(2026, 10, 28, 19, 30), "Europe/Prague") == datetime(2026, 10, 28, 18, 30)
assert to_utc(datetime(2026, 10, 22, 12, 0), "Europe/Prague") == datetime(2026, 10, 22, 10, 0)
def test_from_utc_in_winter_and_summer_time():
assert from_utc(datetime(2026, 10, 28, 18, 30), "Europe/Prague") == datetime(2026, 10, 28, 19, 30)
assert from_utc(datetime(2026, 10, 22, 10, 0), "Europe/Prague") == datetime(2026, 10, 22, 12, 0)