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

+15
View File
@@ -81,3 +81,18 @@ def test_slow_fetch_does_not_block_reader():
finally:
release.set()
p.stop()
def test_failed_fetch_retries_within_a_minute_by_default():
p = Poller(lambda: 1, interval=6 * 3600)
assert p.wait_after(ok=True) == 6 * 3600
assert p.wait_after(ok=False) == 60
def test_retry_can_be_slower_for_sources_that_ban_eager_clients():
p = Poller(lambda: 1, interval=6 * 3600, retry=15 * 60)
assert p.wait_after(ok=False) == 15 * 60
def test_retry_never_waits_longer_than_the_interval():
assert Poller(lambda: 1, interval=30, retry=15 * 60).wait_after(ok=False) == 30