krz/moonrise

Night-sky companion for iPhone, Apple Watch and Vision Pro: what's up tonight, the Moon, planets, launches and missions, and a Library of the solar system. SwiftUI app with a Cloudflare Workers backend. astronomy cloudflare-workers ios night-sky space swiftui visionos watchos

Commit 0eeda4418f

0eeda4418fc4febc6cafb6610a869d2554baa1ba

parent: 0f4cf2ab24

Unsigned

cmc <hello@cleberg.net> · 2026-10-21 19:17 UTC

PLAN: split v5 into versions (!91)

Splits the v5 roadmap into v4.1–v5.7 plus an on-hold list.

- v4.1: visionOS run, Siri phrase test on device, Artemis II replay, performance, typeface.
- v4.2: widgets and controls. v5.0: eclipse 2027, field test by remote testers.
- v5.1–v5.7: Sun, Sky, AR, System, Live Activities, observing, backend.
- On hold: smart telescopes, ascent visibility, light pollution.
- Data sources: SWPC RTSW solar wind. Open questions: AR removed.

Layout: unified · split

PLAN.org +69 −58
@@ -140,6 +140,7 @@ Checked 2026-10-17 against primary sources unless marked unconfirmed.
140140| Constellation lines: van der Sluys ConstellationLines v1.4 | Stick figures by HR number, bundled | CC BY 4.0. Credit: "Constellation lines: Marc van der Sluys, ConstellationLines (doi:10.5281/zenodo.10397192), CC BY 4.0." Stellarium (CC BY-SA, AGPL repo) and d3-celestial (no data licence) rejected. |
141141| OpenNGC | Messier and NGC object data | CC BY-SA 4.0; ShareAlike on the data file. Decide before M5. |
142142| NOAA SWPC JSON | Kp (=json/planetary_k_index_1m.json=), Kp forecast (=products/noaa-planetary-k-index-forecast.json=, array of objects), OVATION (=json/ovation_aurora_latest.json=, ~900 KB), GOES X-ray (=json/goes/primary/xrays-6-hour.json=), alerts (=products/alerts.json=) | No terms page; US government. =cache-control: max-age=60=: poll at most once a minute. |
143| NOAA SWPC RTSW | Solar wind: =json/rtsw/rtsw_mag_1m.json= (~1.5 MB), =json/rtsw/rtsw_wind_1m.json= (~2.5 MB), 1-minute rows from SOLAR-1, ACE or IMAP (=source=, =active=) | As SWPC JSON; =max-age=60=. Too large for the app; reduce on the Worker. |
143144| NASA SDO | =assets/img/latest/latest_{512,1024,...}_{0171,0193,0304,HMIIC}.jpg= | Not copyrighted unless noted. Credit: "Courtesy of NASA/SDO and the AIA, EVE, and HMI science teams." |
144145| JPL Horizons API | Spacecraft positions (Voyager 1 = -31) | No published limit; errors come back as HTTP 200, check payload. Cache server-side. |
145146| CelesTrak GP | =celestrak.org/NORAD/elements/gp.php?CATNR=25544&FORMAT=JSON= | Updates every 2 h; one download per update. >50 HTTP errors in 2 h blocks the IP. Fetch only from the Worker; stop on any non-200. |
@@ -459,77 +460,88 @@ Sky, System, Sun, Launches, Library core (above).
459460 pushes sent in slices of 200, recorded only once APNs answers; alerts
460461 pruned after 3 days, devices after 180.
461462
462** v5: next version
463Platforms
464- visionOS: run the app (globes, orrery volume, immersive star field) on a
465 visionOS simulator or a Vision Pro. It compiles but has never run.
466- Smart-telescope pointing (Seestar and similar).
467- AR camera overlay on the Sky tab. First measure draw time and pointing on
468 a device. Heading from the gyroscope with a one-object alignment, not the
469 compass; a pinhole projection matching the camera; refraction.
470- Widgets from the original plan: Kp and next launch on the Lock Screen,
471 Voyager distance and today's Sun image on the Home Screen. Widgets and
472 Control Center controls backed by the App Intents, with an App Group.
473- Siri on the Watch; phrase translations.
474
475Sky
476- Milky Way from ESA's "Gaia's sky in colour" (CC BY-SA), clipped before
477 projection. Gaia data itself is CC BY-NC and can't be used.
478- Comets from JPL SBDB, fetched daily by the Worker; needs a parabolic and
479 hyperbolic orbit solver. Then bright asteroids.
480- NGC objects and stars fainter than V 6.5, with a deeper zoom and eyepiece
481 field-of-view circles from the equipment inventory.
482- Horizon profile.
483
484System
485- Active missions on the orrery: Juno, Europa Clipper, JUICE, Psyche,
486 Parker Solar Probe, Lucy (JPL Horizons vectors).
487- Live coverage: add Artemis II and later missions to =server/src/live.ts=
488 (Horizons ID, window, phases) once their Horizons IDs are published.
489
490Sun
491- Solar wind from SOLAR-1 RTSW, reduced on the Worker; earlier aurora alerts
492 from Bz.
493- Active-region labels on the SDO image.
494- Sun path, golden and blue hour, day length.
495- CCOR-2 coronagraph loop, WSA-Enlil forecast line, solar cycle progress.
463** v4.1: run and check
464- visionOS: run the app (globes, orrery volume, immersive star field) in the
465 visionOS simulator. It compiles but has never run.
466- App Shortcuts phrases tested on a device.
467- Artemis II (Horizons =-1024=, 1–10 April 2026) in =server/src/live.ts= as
468 a past event for replay.
469- Performance: Sun tab first open still has frames over 100 ms (SwiftUI and
470 Charts start-up); RealityKit's first start (about 1.4 s) when switching to
471 3D, checked on a device; Sun snapshot OVATION grid compressed (156 KB to
472 about 90 KB).
473- Typeface: the design calls for Helvetica Neue; the app uses the system
474 font. Pick one after a design review, before App Store screenshots.
496475
497Launches and Live Activities
498- Seeing the ascent from the ground: needs a trajectory model per rocket;
499 Flight Club data needs an agreement with its author.
500- Push-to-start for followed launches: needs per-device tokens and a change
501 to the privacy policy.
502- Geomagnetic storm and meteor shower peak Live Activities.
503- Opt-in notification for a visible ISS pass in 15 minutes.
476** v4.2: widgets and controls
477- Lock Screen: Kp, next launch. Home Screen: Voyager 1 distance, today's Sun
478 image.
479- Widgets and Control Center controls backed by the App Intents, with an
480 App Group.
481- Opt-in notification for a visible ISS pass in 15 minutes (local).
504482
505Eclipse, 2 August 2027
483** v5.0: eclipse, 2 August 2027
506484- Watch haptics at second and third contact.
507485- Drive to totality: nearest point with 95% of the centre-line duration,
508486 handed to Apple Maps.
509487- Cloud climatology along the path (NASA MODIS or ERA5).
510488- Photographer cue mode: filter off and on cues, an exposure table.
511- Field test on the 6 February 2027 annular eclipse.
489- Field test on the 6 February 2027 annular eclipse by testers on the path
490 (Chile, Argentina, West Africa) with a TestFlight build.
512491
513Observing
514- Light pollution: Lorenz's atlas needs permission; otherwise a model from
515 NASA Black Marble (CC0).
492** v5.1: Sun
493- Solar wind from SWPC RTSW (=json/rtsw/rtsw_mag_1m.json=,
494 =rtsw_wind_1m.json=), reduced on the Worker; earlier aurora alerts from
495 Bz.
496- Active-region labels on the SDO image.
497- Sun path, golden and blue hour, day length.
498- CCOR-2 coronagraph loop, WSA-Enlil forecast line, solar cycle progress.
499
500** v5.2: Sky
501- Milky Way from ESA's "Gaia's sky in colour" (CC BY-SA), clipped before
502 projection. Gaia data itself is CC BY-NC and can't be used.
503- Comets in the Sky tab and the orrery from JPL SBDB, fetched daily by the
504 Worker. The orrery has periodic comets (Kepler.swift); needs parabolic and
505 hyperbolic orbits. Then bright asteroids.
506- Stars fainter than V 6.5, NGC objects, a deeper zoom and eyepiece
507 field-of-view circles from the equipment inventory. Catalogue not chosen:
508 Tycho-2 (VizieR licence question as BSC5) or HYG (CC BY-SA).
509- Horizon profile.
510
511** v5.3: AR camera overlay
512- First measure draw time and pointing on a device. Heading from the
513 gyroscope with a one-object alignment, not the compass; a pinhole
514 projection matching the camera; refraction.
515
516** v5.4: System
517- Juno, Europa Clipper, JUICE, Psyche, Parker Solar Probe, Lucy on the
518 orrery (Horizons =-61=, =-159=, =-28=, =-255=, =-96=, =-49=; all have
519 current ephemerides).
520- Later crewed and lunar missions in =server/src/live.ts= as they launch.
521
522** v5.5: Live Activities
523- Geomagnetic storm and meteor shower peak Live Activities.
524- Push-to-start for followed launches: needs per-device tokens stored on the
525 Worker, a privacy policy change and a matching App Store privacy label.
526
527** v5.6: Observing
516528- Meteor radiant altitude (radiant coordinates for the major showers).
529- IMO, COBS and AAVSO exports; a program log PDF.
517530- Astronomical League lists (Herschel 400, Double Star, Lunar, Binocular
518531 Messier) and Lunar 100 (Charles Wood, Sky & Telescope), with permission;
519532 user program files cover them meanwhile.
520- IMO, COBS and AAVSO exports; a program log PDF.
521
522Performance
523- Sun tab first open still has frames over 100 ms (SwiftUI and Charts
524 start-up).
525- RealityKit's first start (about 1.4 s) when switching to 3D; check on a
526 device.
527- Sun snapshot: compress the OVATION grid (156 KB to about 90 KB).
528533
529Backend and design
534** v5.7: backend
530535- App Attest verification on device registration.
531- Typeface: the design calls for Helvetica Neue; the app uses the system
532 font. Pick one.
536
537** on hold
538- Smart-telescope pointing (Seestar and similar): until there is a
539 telescope to test with. Protocol not chosen (ASCOM Alpaca or the vendor's
540 own).
541- Seeing the ascent from the ground: needs a trajectory model per rocket;
542 Flight Club data needs an agreement with its author.
543- Light pollution: Lorenz's atlas needs permission; otherwise a model from
544 NASA Black Marble (CC0).
533545
534546* before publishing
535547- App Store Connect: privacy policy URL https://krz.sh/privacy/moonrise/.
@@ -553,4 +565,3 @@ Backend and design
553565* open questions
554566- Fallback for APNs if Workers' HTTP/2 stops working: Containers sender
555567 vs. a separate small VPS. The M0 probe worked, so this is a contingency.
556- Whether the Sky tab needs AR camera overlay at all (current lean: no).